You can subscribe to this list here.
2001 |
Jan
(13) |
Feb
(24) |
Mar
(23) |
Apr
(11) |
May
(18) |
Jun
(90) |
Jul
(29) |
Aug
(26) |
Sep
(37) |
Oct
(10) |
Nov
(31) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(45) |
Feb
(18) |
Mar
(12) |
Apr
(7) |
May
(10) |
Jun
(62) |
Jul
(8) |
Aug
(40) |
Sep
(41) |
Oct
(43) |
Nov
(29) |
Dec
(36) |
2003 |
Jan
(25) |
Feb
(9) |
Mar
(11) |
Apr
(13) |
May
(19) |
Jun
(19) |
Jul
(11) |
Aug
(4) |
Sep
(109) |
Oct
(73) |
Nov
(69) |
Dec
(21) |
2004 |
Jan
(21) |
Feb
(33) |
Mar
(31) |
Apr
(25) |
May
(33) |
Jun
(42) |
Jul
(47) |
Aug
(12) |
Sep
(41) |
Oct
(47) |
Nov
(30) |
Dec
(19) |
2005 |
Jan
(6) |
Feb
(23) |
Mar
(21) |
Apr
(26) |
May
(21) |
Jun
(16) |
Jul
(17) |
Aug
(7) |
Sep
(8) |
Oct
(13) |
Nov
(7) |
Dec
(10) |
2006 |
Jan
(10) |
Feb
(3) |
Mar
|
Apr
(2) |
May
|
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(4) |
2007 |
Jan
(2) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(1) |
Jun
(6) |
Jul
(6) |
Aug
(8) |
Sep
(3) |
Oct
(21) |
Nov
(4) |
Dec
(6) |
2008 |
Jan
(11) |
Feb
(28) |
Mar
(26) |
Apr
(9) |
May
(2) |
Jun
(10) |
Jul
(1) |
Aug
(20) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(4) |
Feb
(10) |
Mar
(1) |
Apr
(24) |
May
(22) |
Jun
(18) |
Jul
(15) |
Aug
(21) |
Sep
(4) |
Oct
(7) |
Nov
(6) |
Dec
|
2010 |
Jan
|
Feb
(2) |
Mar
(13) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(4) |
Sep
(6) |
Oct
(1) |
Nov
(1) |
Dec
|
2011 |
Jan
(18) |
Feb
(2) |
Mar
(23) |
Apr
(4) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
|
Nov
(5) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
(31) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(6) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
(7) |
2014 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
(4) |
May
(7) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(4) |
Dec
|
2016 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe C. <jo...@vi...> - 2009-07-20 13:49:09
|
It's not a module. It's a theme. ;-) There is a get_theme_info function which returns the theme.info data, so you could do this, I guess: get_theme_info("virtual-server-theme"); I'm pretty sure there's a way to list available themes, as well, though I don't see it off-hand. Emmanuel Saracco wrote: > Hi, > > I was asking me why the "virtual-server-theme" module were not returned > by the "get_all_module_infos()" function. > > Is there any other webmin friendly way to obtain information about this > module? |
From: Emmanuel S. <esa...@us...> - 2009-07-20 08:06:45
|
Hi, I was asking me why the "virtual-server-theme" module were not returned by the "get_all_module_infos()" function. Is there any other webmin friendly way to obtain information about this module? Bye |
From: Joe C. <jo...@vi...> - 2009-07-20 01:08:49
|
Howdy all, Voting for the SourceForge Community Choice Awards is wrapping up on the 20th, so this is the last chance to vote for Webmin. As you may know, Webmin is a finalist, meaning it's already beat out thousands of projects to be in the final 10 in the"Best Tool or Utility for SysAdmins". If you haven't voted already, please do so! Here's the link: http://sourceforge.net/community/cca09/vote/?f=479 You don't need a SourceForge.net account, just a valid email address (and they won't spam you; SourceForge is totally legit). Lots of great projects this year. It's worth browsing around a bit to learn about some cool new Open Source projects. (But don't get distracted from voting!) There will be a Webmin/Virtualmin/Usermin/Cloudmin booth at OSCON in San Jose this year, and Jamie will be there, so it'd be awesome for Webmin to win the award this year (the awards are announced and given out on the last day of OSCON). He could bring it home personally. Speaking of OSCON, if anyone will be in the area, we'd love to meet you. We'll have a few hundred T-shirts to give away(which we expect will all be gone by the end of the event), as well as a quick reference card for one of our favorite new Open Source projects which we've recently begun using for Webmin and Virtualmin development. The Expo Hall passes are free, you just have to register. If you're feeling really enthusiastic about Webmin, we'd be happy to have some help in the booth (no big commitment, just let us know when you can be around and we'll put a T-shirt on you and put you to work). Thanks for voting! |
From: Jamie C. <jca...@we...> - 2009-07-07 06:43:15
|
There's no flag in webmin_links to control who it is visible to - however, it will be called for each user when the menu is being created, so you can use $remote_user to decide what webmin_links returned. Or better still, call virtual_server::master_admin() to check if the current user is root or equivalent. By the way, plugin docs are at : http://www.virtualmin.com/documentation/id,writing_virtualmin_plugins/ - Jamie On 06/Jul/2009 23:10 Tim Allingham wrote .. Hi Jamie, potentially quite a bit, as when the user has the statistics module enabled, doesn't take long at all to generate a few thousand rows, and after a few weeks into the 100K plus Yeah looks like the best solution will be to disable the user interface till setup, and include the config in admin page as a first-run type output up front. One other question, as the dev docs still seem to be down unfortunately. What setting can be used in the webmin_links sub to enforce a link to only be visible to the root user? It seems to be escaping me at the moment :) Cheers Tim -----Original Message----- From: Jamie Cameron <[1]jca...@we...> Reply-to: Webmin development list <web...@li...> To: Webmin development list <[2]web...@li...> Subject: Re: [webmin-devel] creating a database and random user/pass on module install Date: Mon, 6 Jul 2009 22:44:11 -0700 Hi Tim, How much data will your module be storing in this DB? If it isn't large, you may want to look into using text files instead of a database. This is what Webmin / Virtualmin does, specifically to avoid the problem of setting up dependencies like MySQL. However, if you really want to use a database, prompting the user the first time the module is accessed seems reasonable. You could call the mysql Webmin module to create the user and database. - Jamie On Jul 6, 2009, at 9:12 PM, Tim Allingham <[3]ti...@be...> wrote: > Hi All, > > I'm currently working on a virtualmin/webmin module that works off a > MySQL backend, and am trying to work out how to automate the > following during the module install > > 1) Create a database - name can be static in this case, though > either static or random will be fine > > 2) Import a MySQL dump to the database > > 3) Set up a user with random username and password, and return these > details to the script > > The database is universal, not domain specific for virtualmin, so I > don't believe its something to be handled by the feature_setup sub > in virtual_feature.pl. > > > Is this something that is possible to achieve, or should I include > an install.cgi page that is called if no database details found, for > the setup to be run initially? > > Cheers > > Tim Allingham > --- > --- > --- > --------------------------------------------------------------------- > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: [4]http://p.sf.net/sfu/blackberry > - > Forwarded by the Webmin development list at [5]web...@we... > To remove yourself from this list, go to > [6]http://lists.sourceforge.net/lists/listinfo/webadmin-devel ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: [7]http://p.sf.net/sfu/blackberry - Forwarded by the Webmin development list at [8]web...@we... To remove yourself from this list, go to [9]http://lists.sourceforge.net/lists/listinfo/webadmin-devel 1. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=Jamie 2. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=Webmin 3. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=tim%40beastpc%2Ecom%2Eau 5. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 8. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom |
From: Tim A. <ti...@be...> - 2009-07-07 06:10:19
|
Hi Jamie, potentially quite a bit, as when the user has the statistics module enabled, doesn't take long at all to generate a few thousand rows, and after a few weeks into the 100K plus Yeah looks like the best solution will be to disable the user interface till setup, and include the config in admin page as a first-run type output up front. One other question, as the dev docs still seem to be down unfortunately. What setting can be used in the webmin_links sub to enforce a link to only be visible to the root user? It seems to be escaping me at the moment :) Cheers Tim -----Original Message----- From: Jamie Cameron <jca...@we...> Reply-to: Webmin development list <web...@li...> To: Webmin development list <web...@li...> Subject: Re: [webmin-devel] creating a database and random user/pass on module install Date: Mon, 6 Jul 2009 22:44:11 -0700 Hi Tim, How much data will your module be storing in this DB? If it isn't large, you may want to look into using text files instead of a database. This is what Webmin / Virtualmin does, specifically to avoid the problem of setting up dependencies like MySQL. However, if you really want to use a database, prompting the user the first time the module is accessed seems reasonable. You could call the mysql Webmin module to create the user and database. - Jamie On Jul 6, 2009, at 9:12 PM, Tim Allingham <ti...@be...> wrote: > Hi All, > > I'm currently working on a virtualmin/webmin module that works off a > MySQL backend, and am trying to work out how to automate the > following during the module install > > 1) Create a database - name can be static in this case, though > either static or random will be fine > > 2) Import a MySQL dump to the database > > 3) Set up a user with random username and password, and return these > details to the script > > The database is universal, not domain specific for virtualmin, so I > don't believe its something to be handled by the feature_setup sub > in virtual_feature.pl. > > > Is this something that is possible to achieve, or should I include > an install.cgi page that is called if no database details found, for > the setup to be run initially? > > Cheers > > Tim Allingham > --- > --- > --- > --------------------------------------------------------------------- > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/blackberry > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry - Forwarded by the Webmin development list at web...@we... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Jamie C. <jca...@we...> - 2009-07-07 05:45:09
|
Hi Tim, How much data will your module be storing in this DB? If it isn't large, you may want to look into using text files instead of a database. This is what Webmin / Virtualmin does, specifically to avoid the problem of setting up dependencies like MySQL. However, if you really want to use a database, prompting the user the first time the module is accessed seems reasonable. You could call the mysql Webmin module to create the user and database. - Jamie On Jul 6, 2009, at 9:12 PM, Tim Allingham <ti...@be...> wrote: > Hi All, > > I'm currently working on a virtualmin/webmin module that works off a > MySQL backend, and am trying to work out how to automate the > following during the module install > > 1) Create a database - name can be static in this case, though > either static or random will be fine > > 2) Import a MySQL dump to the database > > 3) Set up a user with random username and password, and return these > details to the script > > The database is universal, not domain specific for virtualmin, so I > don't believe its something to be handled by the feature_setup sub > in virtual_feature.pl. > > > Is this something that is possible to achieve, or should I include > an install.cgi page that is called if no database details found, for > the setup to be run initially? > > Cheers > > Tim Allingham > --- > --- > --- > --------------------------------------------------------------------- > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/blackberry > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Tim A. <ti...@be...> - 2009-07-07 04:27:34
|
Hi All, I'm currently working on a virtualmin/webmin module that works off a MySQL backend, and am trying to work out how to automate the following during the module install 1) Create a database - name can be static in this case, though either static or random will be fine 2) Import a MySQL dump to the database 3) Set up a user with random username and password, and return these details to the script The database is universal, not domain specific for virtualmin, so I don't believe its something to be handled by the feature_setup sub in virtual_feature.pl. Is this something that is possible to achieve, or should I include an install.cgi page that is called if no database details found, for the setup to be run initially? Cheers Tim Allingham |
From: Jamie C. <jca...@we...> - 2009-07-03 18:44:06
|
Awesome, thanks again .. I will include this in Webmin 1.490. On 02/Jul/2009 17:20 Todd Kennedy wrote .. Here's the new patch...I fixed the index.cgi return that I missed in the save_zone.cgi and also I found that if you uninstall the zone but don't delete it and reinstall..."which I do allot of" you have to perform the manual sysidcfg. Instead of moving the created sysidcfg to the newzone prior to booting I replaced that with a copy command instead. This way if you do uninstall and reinstall without recreating the zone it's not an issue. Then when you delete the zone the sysidcfg in the /etc/webmin/zones directory will get removed. So it seems to work out. I have some more ideas that I want to do but might take some time, like install from a flar image and possibly watch the console messages as the zone boots. On Thu, Jul 2, 2009 at 3:00 PM, Jamie Cameron <[1]jca...@we...> wrote: Send me another patch that I can put "on top" of the previous one, as I have already applied it.. Thanks! - Jamie On 02/Jul/2009 11:11 Todd Kennedy wrote .. Hey Jamie, I sent that patch to you a bit prematurely. There was an additional add_footer missing an index.cgi and also it looks like the saving of the sysidcfg file isn't getting pushed into the zone's /etc/sysidcfg file. I am investigating it now. Hopefully I can track that down quickly. As far as the patch I sent you, do you want me to send an additional patch with just the new changes or do you want a full patch including all the changes? On Wed, Jul 1, 2009 at 1:46 AM, Jamie Cameron <[2]jca...@we...> wrote: On 30/Jun/2009 14:57 Todd Kennedy <[3]tod...@gm...> wrote .. > Hey Jamie, > > I finished making some changes to the Solaris Zones module. The biggest > change is so that it could support branding. I also fixed a few additional > issues: > > 1. Return link in the edit create and save pages were missing someplace to > return to, so I added index.cgi as a return point. Cool, thanks! > 2. The get_confirm_page subroutine in forms-lib.pl is using > Webmin::ConfirmPage with only one button. This produced the regular sized > button with the correct action label and also another button which should be > cancel but there wasn't any text defined. So the cancel button was really > small. Kind of looked like a radio button. So I fixed that... That's a bug .. thanks for fixing it. > 3. When using the ctrun command to boot a zone was causing webmin to > continue polling for a return. This was not a webmin problem, more of how > ctrun was invoked. The command { ctrun zoneadm -z some_zone boot } when run > from a console never exits for some reason. So I added an option to end when > the child command ends thus fixing the problem inside of webmin. This used > to drive me nutz. I'd boot a zone through webmin and it would never return > "done". Sometimes if I let it run for a long time in my browser, the browser > would hang and I'd have to force kill the browser. Awesome, thanks! > So anyway the patch is attached. > > There's one caveat to using zones in webmin. The first time you boot the > zone it runs sysconfig so you have to use zlogin in console mode to make the > selections before all the services will start properly. If you don't do this > you can still start the zone but it's in single user mode "hard to tell" and > inetd is waiting on sysconfig to finish. So I'm not sure if there is a way > to allow webmin to interact with zlogin. I think this would be like running > a telnet session from within webmin. not sure how to do that... Actually, I thought I had avoided this in Webmin by having it setup a sysidcfg file before booting the zone, so that Solaris wouldn't ask all those questions. But perhaps there is some entry from that file I am missing .. - Jamie > Havin' Fun with Code, > -Todd- > > > On Sun, Jun 28, 2009 at 10:13 PM, Jamie Cameron <[4]jca...@we...> wrote: > > > I see the bug - the ui_select functions 3rd arg needs to be an array ref, > > you you need to surround the list_brands call with [ ] > > > > - Jamie > > > > On Jun 28, 2009, at 4:34 PM, Todd Kennedy <[5]tod...@gm...> wrote: > > > > Jamie, > > > > maybe you can help me with something. I'm trying to add the branding > > functionality of zones to the Solaris Zone module. For some reason my select > > box in the create_form.cgi keeps coming up as empty. Here's the code that I > > added below. I know readdir only returns single file / directory > > entries...so I'm not sure it I'm populating the @rv array correctly. The @rv > > array should look like this I'm assuming: > > > > Since the directory entries under /usr/lib/brand are natvie, solaris8, > > solaris9 and the parent and current. I'm filtering out the parent and > > current which should leave me with the three remaining directories. So maybe > > you can point something out to me that I'm missing.... > > > > @rv = (native,solaris8,solaris9) > > > > ------------------create_form.cgi------------------- > > print &ui_table_row($text{'create_brand'}, > > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 : > > 0)); > > ----------------------------------------------------------- > > > > ------------------forms-lib.pl------------------------- > > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, > > $value ? 1 : 0); > > $section->add_input($text{'create_brand'}, $brand); > > ----------------------------------------------------------- > > > > ------------------zones-lib.pl------------------------ > > #list brands() > > #returns a list of valid brands > > sub list_brands > > { > > local @rv; > > opendir(BRND, "/usr/lib/brand"); > > foreach (readdir(BRND)) { > > if ($_ !~ /^\./){ > > push(@rv, $_); > > } > > } > > close(BRND); > > return @rv; > > } > > ------------------------------------------------------------ > > > > > > > > > > > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron < <[6]jca...@we...> > > [7]jca...@we...> wrote: > > > >> On 26/Jun/2009 06:22 Todd Kennedy < <[8]tod...@gm...> > >> [9]tod...@gm...> wrote .. > >> > Yeah I can add them to SVN....I guess once I have access I'll download > >> the > >> > files I need to change from SVN then upload them once the changes have > >> been > >> > made. > >> > >> Actually, it might be simpler if you just download Webmin 1.480, make your > >> changes, then send me a patch. > >> > >> > Also - There's a problem with the The breadcrumb link in Solaris Zones > >> that > >> > is suppose to get you back to the previous page...but what happens is > >> that > >> > when you click it it reruns the previous selection. So if you created a > >> zone > >> > and then selected the return to zones list link at the bottom of the > >> page it > >> > tries to create the zone again....I can hunt that down but might take me > >> > longer since I'm still trying to familiarize myself with that module. > >> > >> That sounds like a bug. Let me know if you find the cause.. > >> > >> - Jamie > >> > >> > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron < <[10]jca...@we...> > >> [11]jca...@we...> wrote: > >> > > >> > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > >> > > > >> > > Hey guys, > >> > > > >> > > I've been doing some work on the Solaris Zones module and have added a > >> few > >> > > features and plan on making a few more. Like the ability to define a > >> spare > >> > > root zone or whole root zone before the config, plus I plan adding the > >> > > template feature of zonecfg to the creation process as well. This > >> would help > >> > > out allot since Solaris zones support branding of sol8 and sol9. Once > >> I am > >> > > finished what is the best way to get patches to you Jamie? I've never > >> > > submitted anything before so I'm new to that part of it. > >> > > > >> > > Thanks > >> > > > >> > > Hi Todd, > >> > > > >> > > You can just email a patch to me directly at <[12]jca...@we...> > >> [13]jca...@we... , and I > >> > > will apply it for inclusion in the next Webmin release. The zones mode > >> > > hasn't been touched for a while, and so is overdue for some new > >> features. > >> > > > >> > > If you plan to do a lot of development, I can grant you commit access > >> to > >> > > the Webmin SVN repository.. > >> > > > >> > > - Jamie > >> > > > >> > > > >> > > > >> > > > >> ---------------------------------------------------------------------------- -- > >> > > > >> > > - > >> > > Forwarded by the Webmin development list at <[14]web...@we...> > >> [15]web...@we... > >> > > To remove yourself from this list, go to > >> > > <[16]http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > >> [17]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >> > > > >> > > > >> > >> > >> ---------------------------------------------------------------------------- -- > >> - > >> Forwarded by the Webmin development list at <[18]web...@we...> > >> [19]web...@we... > >> To remove yourself from this list, go to > >> <[20]http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > >> [21]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >> > > > > > > ---------------------------------------------------------------------------- -- > > > > - > > Forwarded by the Webmin development list at <[22]web...@we...> > > [23]web...@we... > > To remove yourself from this list, go to > > [24]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > ---------------------------------------------------------------------------- -- > > > > - > > Forwarded by the Webmin development list at [25]web...@we... > > To remove yourself from this list, go to > > [26]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > ---------------------------------------------------------------------------- -- - Forwarded by the Webmin development list at [27]web...@we... To remove yourself from this list, go to [28]http://lists.sourceforge.net/lists/listinfo/webadmin-devel -------------------------------------------------------------------------- ---- - Forwarded by the Webmin development list at [29]web...@we... To remove yourself from this list, go to [30]http://lists.sourceforge.net/lists/listinfo/webadmin-devel 1. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 29. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom |
From: Joe C. <jo...@vi...> - 2009-07-03 06:22:07
|
Howdy all, Webmin has been nominated by the Open Source community (that's you! thanks!) for a SourceForge Community Choice Award. Being a finalist means Webmin was among the ten most popular projects in its category (Best Tool or Utility for SysAdmins), and is in the final round of voting. So, that means we've all gotta go vote! Webmin consistently comes in 2nd or 3rd in the CCA, but I think we can win it this year. Webmin is more popular than ever (more than 2 million downloads each year!), and Jamie and many others (translators, third party module developers, patch submitters, supporters in the mailing list and forums, etc.) have been putting more effort into the project than ever before and it shows in both the quality of the software and the quality of the community. http://sourceforge.net/community/cca09/vote/?f=479 Note: This is the second round of voting. Even if you voted in the nominating round last month, you must vote again in order to be counted in the final voting! You don't need to have a SourceForge.net account to vote, but they will verify your email address before counting your vote (they won't spam you, so don't worry about giving them a real email address). Thanks to everyone who voted during the nomination round, and I hope you'll take just another couple of minutes to vote in the final round. There's a lot of other cool projects in the running, too, so it's a fun and interesting way to catch up on the latest in popular Open Source projects. Regards, Joe |
From: Todd K. <tod...@gm...> - 2009-07-03 04:11:37
|
Yeah I saw the sysidcfg entries in the module...When I boot the zone for the first time the only question it asked was which version of NFS did I want to use...NFS4, etc .... So maybe just the sysidcfg needs to be updated. I'll look at it and see what I can come up with. On Wed, Jul 1, 2009 at 1:46 AM, Jamie Cameron <jca...@we...> wrote: > On 30/Jun/2009 14:57 Todd Kennedy <tod...@gm...> wrote .. > > Hey Jamie, > > > > I finished making some changes to the Solaris Zones module. The biggest > > change is so that it could support branding. I also fixed a few > additional > > issues: > > > > 1. Return link in the edit create and save pages were missing someplace > to > > return to, so I added index.cgi as a return point. > > Cool, thanks! > > > 2. The get_confirm_page subroutine in forms-lib.pl is using > > Webmin::ConfirmPage with only one button. This produced the regular sized > > button with the correct action label and also another button which should > be > > cancel but there wasn't any text defined. So the cancel button was really > > small. Kind of looked like a radio button. So I fixed that... > > That's a bug .. thanks for fixing it. > > > 3. When using the ctrun command to boot a zone was causing webmin to > > continue polling for a return. This was not a webmin problem, more of how > > ctrun was invoked. The command { ctrun zoneadm -z some_zone boot } when > run > > from a console never exits for some reason. So I added an option to end > when > > the child command ends thus fixing the problem inside of webmin. This > used > > to drive me nutz. I'd boot a zone through webmin and it would never > return > > "done". Sometimes if I let it run for a long time in my browser, the > browser > > would hang and I'd have to force kill the browser. > > Awesome, thanks! > > > So anyway the patch is attached. > > > > There's one caveat to using zones in webmin. The first time you boot the > > zone it runs sysconfig so you have to use zlogin in console mode to make > the > > selections before all the services will start properly. If you don't do > this > > you can still start the zone but it's in single user mode "hard to tell" > and > > inetd is waiting on sysconfig to finish. So I'm not sure if there is a > way > > to allow webmin to interact with zlogin. I think this would be like > running > > a telnet session from within webmin. not sure how to do that... > > Actually, I thought I had avoided this in Webmin by having it setup a > sysidcfg > file before booting the zone, so that Solaris wouldn't ask all those > questions. > But perhaps there is some entry from that file I am missing .. > > - Jamie > > > Havin' Fun with Code, > > -Todd- > > > > > > On Sun, Jun 28, 2009 at 10:13 PM, Jamie Cameron <jca...@we...> > wrote: > > > > > I see the bug - the ui_select functions 3rd arg needs to be an array > ref, > > > you you need to surround the list_brands call with [ ] > > > > > > - Jamie > > > > > > On Jun 28, 2009, at 4:34 PM, Todd Kennedy <tod...@gm...> wrote: > > > > > > Jamie, > > > > > > maybe you can help me with something. I'm trying to add the branding > > > functionality of zones to the Solaris Zone module. For some reason my > select > > > box in the create_form.cgi keeps coming up as empty. Here's the code > that I > > > added below. I know readdir only returns single file / directory > > > entries...so I'm not sure it I'm populating the @rv array correctly. > The @rv > > > array should look like this I'm assuming: > > > > > > Since the directory entries under /usr/lib/brand are natvie, solaris8, > > > solaris9 and the parent and current. I'm filtering out the parent and > > > current which should leave me with the three remaining directories. So > maybe > > > you can point something out to me that I'm missing.... > > > > > > @rv = (native,solaris8,solaris9) > > > > > > ------------------create_form.cgi------------------- > > > print &ui_table_row($text{'create_brand'}, > > > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 > : > > > 0)); > > > ----------------------------------------------------------- > > > > > > ------------------forms-lib.pl------------------------- > > > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, > > > $value ? 1 : 0); > > > $section->add_input($text{'create_brand'}, $brand); > > > ----------------------------------------------------------- > > > > > > ------------------zones-lib.pl------------------------ > > > #list brands() > > > #returns a list of valid brands > > > sub list_brands > > > { > > > local @rv; > > > opendir(BRND, "/usr/lib/brand"); > > > foreach (readdir(BRND)) { > > > if ($_ !~ /^\./){ > > > push(@rv, $_); > > > } > > > } > > > close(BRND); > > > return @rv; > > > } > > > ------------------------------------------------------------ > > > > > > > > > > > > > > > > > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron < <jca...@we...> > > > jca...@we...> wrote: > > > > > >> On 26/Jun/2009 06:22 Todd Kennedy < <tod...@gm...> > > >> tod...@gm...> wrote .. > > >> > Yeah I can add them to SVN....I guess once I have access I'll > download > > >> the > > >> > files I need to change from SVN then upload them once the changes > have > > >> been > > >> > made. > > >> > > >> Actually, it might be simpler if you just download Webmin 1.480, make > your > > >> changes, then send me a patch. > > >> > > >> > Also - There's a problem with the The breadcrumb link in Solaris > Zones > > >> that > > >> > is suppose to get you back to the previous page...but what happens > is > > >> that > > >> > when you click it it reruns the previous selection. So if you > created a > > >> zone > > >> > and then selected the return to zones list link at the bottom of the > > >> page it > > >> > tries to create the zone again....I can hunt that down but might > take me > > >> > longer since I'm still trying to familiarize myself with that > module. > > >> > > >> That sounds like a bug. Let me know if you find the cause.. > > >> > > >> - Jamie > > >> > > >> > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron < < > jca...@we...> > > >> jca...@we...> wrote: > > >> > > > >> > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > > >> > > > > >> > > Hey guys, > > >> > > > > >> > > I've been doing some work on the Solaris Zones module and have > added a > > >> few > > >> > > features and plan on making a few more. Like the ability to define > a > > >> spare > > >> > > root zone or whole root zone before the config, plus I plan adding > the > > >> > > template feature of zonecfg to the creation process as well. This > > >> would help > > >> > > out allot since Solaris zones support branding of sol8 and sol9. > Once > > >> I am > > >> > > finished what is the best way to get patches to you Jamie? I've > never > > >> > > submitted anything before so I'm new to that part of it. > > >> > > > > >> > > Thanks > > >> > > > > >> > > Hi Todd, > > >> > > > > >> > > You can just email a patch to me directly at <jca...@we... > > > > >> jca...@we... , and I > > >> > > will apply it for inclusion in the next Webmin release. The zones > mode > > >> > > hasn't been touched for a while, and so is overdue for some new > > >> features. > > >> > > > > >> > > If you plan to do a lot of development, I can grant you commit > access > > >> to > > >> > > the Webmin SVN repository.. > > >> > > > > >> > > - Jamie > > >> > > > > >> > > > > >> > > > > >> > > > > >> > ------------------------------------------------------------------------------ > > >> > > > > >> > > - > > >> > > Forwarded by the Webmin development list at < > web...@we...> > > >> web...@we... > > >> > > To remove yourself from this list, go to > > >> > > <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > >> > > > > >> > > > > >> > > >> > > >> > ------------------------------------------------------------------------------ > > >> - > > >> Forwarded by the Webmin development list at <web...@we...> > > >> web...@we... > > >> To remove yourself from this list, go to > > >> <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > - > > > Forwarded by the Webmin development list at <web...@we...> > > > web...@we... > > > To remove yourself from this list, go to > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > - > > > Forwarded by the Webmin development list at web...@we... > > > To remove yourself from this list, go to > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > > ------------------------------------------------------------------------------ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Todd K. <tod...@gm...> - 2009-07-03 00:52:35
|
Here's the new patch...I fixed the index.cgi return that I missed in the save_zone.cgi and also I found that if you uninstall the zone but don't delete it and reinstall..."which I do allot of" you have to perform the manual sysidcfg. Instead of moving the created sysidcfg to the newzone prior to booting I replaced that with a copy command instead. This way if you do uninstall and reinstall without recreating the zone it's not an issue. Then when you delete the zone the sysidcfg in the /etc/webmin/zones directory will get removed. So it seems to work out. I have some more ideas that I want to do but might take some time, like install from a flar image and possibly watch the console messages as the zone boots. On Thu, Jul 2, 2009 at 3:00 PM, Jamie Cameron <jca...@we...> wrote: > Send me another patch that I can put "on top" of the previous one, as I > have already applied it.. > > Thanks! > > - Jamie > > On 02/Jul/2009 11:11 Todd Kennedy wrote .. > > Hey Jamie, > > I sent that patch to you a bit prematurely. There was an additional > add_footer missing an index.cgi and also it looks like the saving of the > sysidcfg file isn't getting pushed into the zone's /etc/sysidcfg file. I am > investigating it now. Hopefully I can track that down quickly. > > As far as the patch I sent you, do you want me to send an additional patch > with just the new changes or do you want a full patch including all the > changes? > > On Wed, Jul 1, 2009 at 1:46 AM, Jamie Cameron <jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom> > > wrote: > >> On 30/Jun/2009 14:57 Todd Kennedy <tod...@gm...<http://reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom>> >> wrote .. >> > Hey Jamie, >> > >> > I finished making some changes to the Solaris Zones module. The biggest >> > change is so that it could support branding. I also fixed a few >> additional >> > issues: >> > >> > 1. Return link in the edit create and save pages were missing someplace >> to >> > return to, so I added index.cgi as a return point. >> >> Cool, thanks! >> >> > 2. The get_confirm_page subroutine in forms-lib.pl is using >> > Webmin::ConfirmPage with only one button. This produced the regular >> sized >> > button with the correct action label and also another button which >> should be >> > cancel but there wasn't any text defined. So the cancel button was >> really >> > small. Kind of looked like a radio button. So I fixed that... >> >> That's a bug .. thanks for fixing it. >> >> > 3. When using the ctrun command to boot a zone was causing webmin to >> > continue polling for a return. This was not a webmin problem, more of >> how >> > ctrun was invoked. The command { ctrun zoneadm -z some_zone boot } when >> run >> > from a console never exits for some reason. So I added an option to end >> when >> > the child command ends thus fixing the problem inside of webmin. This >> used >> > to drive me nutz. I'd boot a zone through webmin and it would never >> return >> > "done". Sometimes if I let it run for a long time in my browser, the >> browser >> > would hang and I'd have to force kill the browser. >> >> Awesome, thanks! >> >> > So anyway the patch is attached. >> > >> > There's one caveat to using zones in webmin. The first time you boot the >> > zone it runs sysconfig so you have to use zlogin in console mode to make >> the >> > selections before all the services will start properly. If you don't do >> this >> > you can still start the zone but it's in single user mode "hard to tell" >> and >> > inetd is waiting on sysconfig to finish. So I'm not sure if there is a >> way >> > to allow webmin to interact with zlogin. I think this would be like >> running >> > a telnet session from within webmin. not sure how to do that... >> >> Actually, I thought I had avoided this in Webmin by having it setup a >> sysidcfg >> file before booting the zone, so that Solaris wouldn't ask all those >> questions. >> But perhaps there is some entry from that file I am missing .. >> >> - Jamie >> >> > Havin' Fun with Code, >> > -Todd- >> > >> > >> > On Sun, Jun 28, 2009 at 10:13 PM, Jamie Cameron <jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom>> >> wrote: >> > >> > > I see the bug - the ui_select functions 3rd arg needs to be an array >> ref, >> > > you you need to surround the list_brands call with [ ] >> > > >> > > - Jamie >> > > >> > > On Jun 28, 2009, at 4:34 PM, Todd Kennedy <tod...@gm...<http://reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom>> >> wrote: >> > > >> > > Jamie, >> > > >> > > maybe you can help me with something. I'm trying to add the branding >> > > functionality of zones to the Solaris Zone module. For some reason my >> select >> > > box in the create_form.cgi keeps coming up as empty. Here's the code >> that I >> > > added below. I know readdir only returns single file / directory >> > > entries...so I'm not sure it I'm populating the @rv array correctly. >> The @rv >> > > array should look like this I'm assuming: >> > > >> > > Since the directory entries under /usr/lib/brand are natvie, solaris8, >> > > solaris9 and the parent and current. I'm filtering out the parent and >> > > current which should leave me with the three remaining directories. So >> maybe >> > > you can point something out to me that I'm missing.... >> > > >> > > @rv = (native,solaris8,solaris9) >> > > >> > > ------------------create_form.cgi------------------- >> > > print &ui_table_row($text{'create_brand'}, >> > > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 >> : >> > > 0)); >> > > ----------------------------------------------------------- >> > > >> > > ------------------forms-lib.pl------------------------- >> > > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, >> > > $value ? 1 : 0); >> > > $section->add_input($text{'create_brand'}, $brand); >> > > ----------------------------------------------------------- >> > > >> > > ------------------zones-lib.pl------------------------ >> > > #list brands() >> > > #returns a list of valid brands >> > > sub list_brands >> > > { >> > > local @rv; >> > > opendir(BRND, "/usr/lib/brand"); >> > > foreach (readdir(BRND)) { >> > > if ($_ !~ /^\./){ >> > > push(@rv, $_); >> > > } >> > > } >> > > close(BRND); >> > > return @rv; >> > > } >> > > ------------------------------------------------------------ >> > > >> > > >> > > >> > > >> > > >> > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron < <jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom> >> > >> > > jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom>> >> wrote: >> > > >> > >> On 26/Jun/2009 06:22 Todd Kennedy < <tod...@gm...<http://reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom> >> > >> > >> tod...@gm...<http://reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom>> >> wrote .. >> > >> > Yeah I can add them to SVN....I guess once I have access I'll >> download >> > >> the >> > >> > files I need to change from SVN then upload them once the changes >> have >> > >> been >> > >> > made. >> > >> >> > >> Actually, it might be simpler if you just download Webmin 1.480, make >> your >> > >> changes, then send me a patch. >> > >> >> > >> > Also - There's a problem with the The breadcrumb link in Solaris >> Zones >> > >> that >> > >> > is suppose to get you back to the previous page...but what happens >> is >> > >> that >> > >> > when you click it it reruns the previous selection. So if you >> created a >> > >> zone >> > >> > and then selected the return to zones list link at the bottom of >> the >> > >> page it >> > >> > tries to create the zone again....I can hunt that down but might >> take me >> > >> > longer since I'm still trying to familiarize myself with that >> module. >> > >> >> > >> That sounds like a bug. Let me know if you find the cause.. >> > >> >> > >> - Jamie >> > >> >> > >> > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron < < >> jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom> >> > >> > >> jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom>> >> wrote: >> > >> > >> > >> > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. >> > >> > > >> > >> > > Hey guys, >> > >> > > >> > >> > > I've been doing some work on the Solaris Zones module and have >> added a >> > >> few >> > >> > > features and plan on making a few more. Like the ability to >> define a >> > >> spare >> > >> > > root zone or whole root zone before the config, plus I plan >> adding the >> > >> > > template feature of zonecfg to the creation process as well. This >> > >> would help >> > >> > > out allot since Solaris zones support branding of sol8 and sol9. >> Once >> > >> I am >> > >> > > finished what is the best way to get patches to you Jamie? I've >> never >> > >> > > submitted anything before so I'm new to that part of it. >> > >> > > >> > >> > > Thanks >> > >> > > >> > >> > > Hi Todd, >> > >> > > >> > >> > > You can just email a patch to me directly at < >> jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom> >> > >> > >> jca...@we...<http://reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom>, and I >> > >> > > will apply it for inclusion in the next Webmin release. The zones >> mode >> > >> > > hasn't been touched for a while, and so is overdue for some new >> > >> features. >> > >> > > >> > >> > > If you plan to do a lot of development, I can grant you commit >> access >> > >> to >> > >> > > the Webmin SVN repository.. >> > >> > > >> > >> > > - Jamie >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> >> ------------------------------------------------------------------------------ >> > >> > > >> > >> > > - >> > >> > > Forwarded by the Webmin development list at < >> web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> > >> > >> web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> > >> > > To remove yourself from this list, go to >> > >> > > <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> >> > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > >> > > >> > >> > > >> > >> >> > >> >> > >> >> ------------------------------------------------------------------------------ >> > >> - >> > >> Forwarded by the Webmin development list at <web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> > >> > >> web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> > >> To remove yourself from this list, go to >> > >> <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> >> > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > >> >> > > >> > > >> > > >> ------------------------------------------------------------------------------ >> > > >> > > - >> > > Forwarded by the Webmin development list at <web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> > >> > > web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> > > To remove yourself from this list, go to >> > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > >> > > >> > > >> > > >> ------------------------------------------------------------------------------ >> > > >> > > - >> > > Forwarded by the Webmin development list at web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> > > To remove yourself from this list, go to >> > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > >> > > >> >> >> ------------------------------------------------------------------------------ >> - >> Forwarded by the Webmin development list at web...@we...<http://reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom> >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > > > > ------------------------------------------------------------------------------ > > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: Jamie C. <jca...@we...> - 2009-07-02 19:34:41
|
Send me another patch that I can put "on top" of the previous one, as I have already applied it.. Thanks! - Jamie On 02/Jul/2009 11:11 Todd Kennedy wrote .. Hey Jamie, I sent that patch to you a bit prematurely. There was an additional add_footer missing an index.cgi and also it looks like the saving of the sysidcfg file isn't getting pushed into the zone's /etc/sysidcfg file. I am investigating it now. Hopefully I can track that down quickly. As far as the patch I sent you, do you want me to send an additional patch with just the new changes or do you want a full patch including all the changes? On Wed, Jul 1, 2009 at 1:46 AM, Jamie Cameron <[1]jca...@we...> wrote: On 30/Jun/2009 14:57 Todd Kennedy <[2]tod...@gm...> wrote .. > Hey Jamie, > > I finished making some changes to the Solaris Zones module. The biggest > change is so that it could support branding. I also fixed a few additional > issues: > > 1. Return link in the edit create and save pages were missing someplace to > return to, so I added index.cgi as a return point. Cool, thanks! > 2. The get_confirm_page subroutine in forms-lib.pl is using > Webmin::ConfirmPage with only one button. This produced the regular sized > button with the correct action label and also another button which should be > cancel but there wasn't any text defined. So the cancel button was really > small. Kind of looked like a radio button. So I fixed that... That's a bug .. thanks for fixing it. > 3. When using the ctrun command to boot a zone was causing webmin to > continue polling for a return. This was not a webmin problem, more of how > ctrun was invoked. The command { ctrun zoneadm -z some_zone boot } when run > from a console never exits for some reason. So I added an option to end when > the child command ends thus fixing the problem inside of webmin. This used > to drive me nutz. I'd boot a zone through webmin and it would never return > "done". Sometimes if I let it run for a long time in my browser, the browser > would hang and I'd have to force kill the browser. Awesome, thanks! > So anyway the patch is attached. > > There's one caveat to using zones in webmin. The first time you boot the > zone it runs sysconfig so you have to use zlogin in console mode to make the > selections before all the services will start properly. If you don't do this > you can still start the zone but it's in single user mode "hard to tell" and > inetd is waiting on sysconfig to finish. So I'm not sure if there is a way > to allow webmin to interact with zlogin. I think this would be like running > a telnet session from within webmin. not sure how to do that... Actually, I thought I had avoided this in Webmin by having it setup a sysidcfg file before booting the zone, so that Solaris wouldn't ask all those questions. But perhaps there is some entry from that file I am missing .. - Jamie > Havin' Fun with Code, > -Todd- > > > On Sun, Jun 28, 2009 at 10:13 PM, Jamie Cameron <[3]jca...@we...> wrote: > > > I see the bug - the ui_select functions 3rd arg needs to be an array ref, > > you you need to surround the list_brands call with [ ] > > > > - Jamie > > > > On Jun 28, 2009, at 4:34 PM, Todd Kennedy <[4]tod...@gm...> wrote: > > > > Jamie, > > > > maybe you can help me with something. I'm trying to add the branding > > functionality of zones to the Solaris Zone module. For some reason my select > > box in the create_form.cgi keeps coming up as empty. Here's the code that I > > added below. I know readdir only returns single file / directory > > entries...so I'm not sure it I'm populating the @rv array correctly. The @rv > > array should look like this I'm assuming: > > > > Since the directory entries under /usr/lib/brand are natvie, solaris8, > > solaris9 and the parent and current. I'm filtering out the parent and > > current which should leave me with the three remaining directories. So maybe > > you can point something out to me that I'm missing.... > > > > @rv = (native,solaris8,solaris9) > > > > ------------------create_form.cgi------------------- > > print &ui_table_row($text{'create_brand'}, > > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 : > > 0)); > > ----------------------------------------------------------- > > > > ------------------forms-lib.pl------------------------- > > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, > > $value ? 1 : 0); > > $section->add_input($text{'create_brand'}, $brand); > > ----------------------------------------------------------- > > > > ------------------zones-lib.pl------------------------ > > #list brands() > > #returns a list of valid brands > > sub list_brands > > { > > local @rv; > > opendir(BRND, "/usr/lib/brand"); > > foreach (readdir(BRND)) { > > if ($_ !~ /^\./){ > > push(@rv, $_); > > } > > } > > close(BRND); > > return @rv; > > } > > ------------------------------------------------------------ > > > > > > > > > > > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron < <[5]jca...@we...> > > [6]jca...@we...> wrote: > > > >> On 26/Jun/2009 06:22 Todd Kennedy < <[7]tod...@gm...> > >> [8]tod...@gm...> wrote .. > >> > Yeah I can add them to SVN....I guess once I have access I'll download > >> the > >> > files I need to change from SVN then upload them once the changes have > >> been > >> > made. > >> > >> Actually, it might be simpler if you just download Webmin 1.480, make your > >> changes, then send me a patch. > >> > >> > Also - There's a problem with the The breadcrumb link in Solaris Zones > >> that > >> > is suppose to get you back to the previous page...but what happens is > >> that > >> > when you click it it reruns the previous selection. So if you created a > >> zone > >> > and then selected the return to zones list link at the bottom of the > >> page it > >> > tries to create the zone again....I can hunt that down but might take me > >> > longer since I'm still trying to familiarize myself with that module. > >> > >> That sounds like a bug. Let me know if you find the cause.. > >> > >> - Jamie > >> > >> > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron < <[9]jca...@we...> > >> [10]jca...@we...> wrote: > >> > > >> > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > >> > > > >> > > Hey guys, > >> > > > >> > > I've been doing some work on the Solaris Zones module and have added a > >> few > >> > > features and plan on making a few more. Like the ability to define a > >> spare > >> > > root zone or whole root zone before the config, plus I plan adding the > >> > > template feature of zonecfg to the creation process as well. This > >> would help > >> > > out allot since Solaris zones support branding of sol8 and sol9. Once > >> I am > >> > > finished what is the best way to get patches to you Jamie? I've never > >> > > submitted anything before so I'm new to that part of it. > >> > > > >> > > Thanks > >> > > > >> > > Hi Todd, > >> > > > >> > > You can just email a patch to me directly at <[11]jca...@we...> > >> [12]jca...@we... , and I > >> > > will apply it for inclusion in the next Webmin release. The zones mode > >> > > hasn't been touched for a while, and so is overdue for some new > >> features. > >> > > > >> > > If you plan to do a lot of development, I can grant you commit access > >> to > >> > > the Webmin SVN repository.. > >> > > > >> > > - Jamie > >> > > > >> > > > >> > > > >> > > > >> ---------------------------------------------------------------------------- -- > >> > > > >> > > - > >> > > Forwarded by the Webmin development list at <[13]web...@we...> > >> [14]web...@we... > >> > > To remove yourself from this list, go to > >> > > <[15]http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > >> [16]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >> > > > >> > > > >> > >> > >> ---------------------------------------------------------------------------- -- > >> - > >> Forwarded by the Webmin development list at <[17]web...@we...> > >> [18]web...@we... > >> To remove yourself from this list, go to > >> <[19]http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > >> [20]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >> > > > > > > ---------------------------------------------------------------------------- -- > > > > - > > Forwarded by the Webmin development list at <[21]web...@we...> > > [22]web...@we... > > To remove yourself from this list, go to > > [23]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > ---------------------------------------------------------------------------- -- > > > > - > > Forwarded by the Webmin development list at [24]web...@we... > > To remove yourself from this list, go to > > [25]http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > ---------------------------------------------------------------------------- -- - Forwarded by the Webmin development list at [26]web...@we... To remove yourself from this list, go to [27]http://lists.sourceforge.net/lists/listinfo/webadmin-devel 1. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 2. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom 3. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 4. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom 5. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 6. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 7. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom 8. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=toddkenn%40gmail%2Ecom 9. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 10. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 11. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 12. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=jcameron%40webmin%2Ecom 13. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 14. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 17. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 18. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 21. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 22. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 24. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom 26. file://localhost/home/webmail/homes/jcameron/.tmp/reply_mail.cgi?new=1&to=webmin%2Ddevel%40webmin%2Ecom |
From: Todd K. <tod...@gm...> - 2009-07-02 18:12:29
|
Hey Jamie, I sent that patch to you a bit prematurely. There was an additional add_footer missing an index.cgi and also it looks like the saving of the sysidcfg file isn't getting pushed into the zone's /etc/sysidcfg file. I am investigating it now. Hopefully I can track that down quickly. As far as the patch I sent you, do you want me to send an additional patch with just the new changes or do you want a full patch including all the changes? On Wed, Jul 1, 2009 at 1:46 AM, Jamie Cameron <jca...@we...> wrote: > On 30/Jun/2009 14:57 Todd Kennedy <tod...@gm...> wrote .. > > Hey Jamie, > > > > I finished making some changes to the Solaris Zones module. The biggest > > change is so that it could support branding. I also fixed a few > additional > > issues: > > > > 1. Return link in the edit create and save pages were missing someplace > to > > return to, so I added index.cgi as a return point. > > Cool, thanks! > > > 2. The get_confirm_page subroutine in forms-lib.pl is using > > Webmin::ConfirmPage with only one button. This produced the regular sized > > button with the correct action label and also another button which should > be > > cancel but there wasn't any text defined. So the cancel button was really > > small. Kind of looked like a radio button. So I fixed that... > > That's a bug .. thanks for fixing it. > > > 3. When using the ctrun command to boot a zone was causing webmin to > > continue polling for a return. This was not a webmin problem, more of how > > ctrun was invoked. The command { ctrun zoneadm -z some_zone boot } when > run > > from a console never exits for some reason. So I added an option to end > when > > the child command ends thus fixing the problem inside of webmin. This > used > > to drive me nutz. I'd boot a zone through webmin and it would never > return > > "done". Sometimes if I let it run for a long time in my browser, the > browser > > would hang and I'd have to force kill the browser. > > Awesome, thanks! > > > So anyway the patch is attached. > > > > There's one caveat to using zones in webmin. The first time you boot the > > zone it runs sysconfig so you have to use zlogin in console mode to make > the > > selections before all the services will start properly. If you don't do > this > > you can still start the zone but it's in single user mode "hard to tell" > and > > inetd is waiting on sysconfig to finish. So I'm not sure if there is a > way > > to allow webmin to interact with zlogin. I think this would be like > running > > a telnet session from within webmin. not sure how to do that... > > Actually, I thought I had avoided this in Webmin by having it setup a > sysidcfg > file before booting the zone, so that Solaris wouldn't ask all those > questions. > But perhaps there is some entry from that file I am missing .. > > - Jamie > > > Havin' Fun with Code, > > -Todd- > > > > > > On Sun, Jun 28, 2009 at 10:13 PM, Jamie Cameron <jca...@we...> > wrote: > > > > > I see the bug - the ui_select functions 3rd arg needs to be an array > ref, > > > you you need to surround the list_brands call with [ ] > > > > > > - Jamie > > > > > > On Jun 28, 2009, at 4:34 PM, Todd Kennedy <tod...@gm...> wrote: > > > > > > Jamie, > > > > > > maybe you can help me with something. I'm trying to add the branding > > > functionality of zones to the Solaris Zone module. For some reason my > select > > > box in the create_form.cgi keeps coming up as empty. Here's the code > that I > > > added below. I know readdir only returns single file / directory > > > entries...so I'm not sure it I'm populating the @rv array correctly. > The @rv > > > array should look like this I'm assuming: > > > > > > Since the directory entries under /usr/lib/brand are natvie, solaris8, > > > solaris9 and the parent and current. I'm filtering out the parent and > > > current which should leave me with the three remaining directories. So > maybe > > > you can point something out to me that I'm missing.... > > > > > > @rv = (native,solaris8,solaris9) > > > > > > ------------------create_form.cgi------------------- > > > print &ui_table_row($text{'create_brand'}, > > > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 > : > > > 0)); > > > ----------------------------------------------------------- > > > > > > ------------------forms-lib.pl------------------------- > > > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, > > > $value ? 1 : 0); > > > $section->add_input($text{'create_brand'}, $brand); > > > ----------------------------------------------------------- > > > > > > ------------------zones-lib.pl------------------------ > > > #list brands() > > > #returns a list of valid brands > > > sub list_brands > > > { > > > local @rv; > > > opendir(BRND, "/usr/lib/brand"); > > > foreach (readdir(BRND)) { > > > if ($_ !~ /^\./){ > > > push(@rv, $_); > > > } > > > } > > > close(BRND); > > > return @rv; > > > } > > > ------------------------------------------------------------ > > > > > > > > > > > > > > > > > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron < <jca...@we...> > > > jca...@we...> wrote: > > > > > >> On 26/Jun/2009 06:22 Todd Kennedy < <tod...@gm...> > > >> tod...@gm...> wrote .. > > >> > Yeah I can add them to SVN....I guess once I have access I'll > download > > >> the > > >> > files I need to change from SVN then upload them once the changes > have > > >> been > > >> > made. > > >> > > >> Actually, it might be simpler if you just download Webmin 1.480, make > your > > >> changes, then send me a patch. > > >> > > >> > Also - There's a problem with the The breadcrumb link in Solaris > Zones > > >> that > > >> > is suppose to get you back to the previous page...but what happens > is > > >> that > > >> > when you click it it reruns the previous selection. So if you > created a > > >> zone > > >> > and then selected the return to zones list link at the bottom of the > > >> page it > > >> > tries to create the zone again....I can hunt that down but might > take me > > >> > longer since I'm still trying to familiarize myself with that > module. > > >> > > >> That sounds like a bug. Let me know if you find the cause.. > > >> > > >> - Jamie > > >> > > >> > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron < < > jca...@we...> > > >> jca...@we...> wrote: > > >> > > > >> > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > > >> > > > > >> > > Hey guys, > > >> > > > > >> > > I've been doing some work on the Solaris Zones module and have > added a > > >> few > > >> > > features and plan on making a few more. Like the ability to define > a > > >> spare > > >> > > root zone or whole root zone before the config, plus I plan adding > the > > >> > > template feature of zonecfg to the creation process as well. This > > >> would help > > >> > > out allot since Solaris zones support branding of sol8 and sol9. > Once > > >> I am > > >> > > finished what is the best way to get patches to you Jamie? I've > never > > >> > > submitted anything before so I'm new to that part of it. > > >> > > > > >> > > Thanks > > >> > > > > >> > > Hi Todd, > > >> > > > > >> > > You can just email a patch to me directly at <jca...@we... > > > > >> jca...@we... , and I > > >> > > will apply it for inclusion in the next Webmin release. The zones > mode > > >> > > hasn't been touched for a while, and so is overdue for some new > > >> features. > > >> > > > > >> > > If you plan to do a lot of development, I can grant you commit > access > > >> to > > >> > > the Webmin SVN repository.. > > >> > > > > >> > > - Jamie > > >> > > > > >> > > > > >> > > > > >> > > > > >> > ------------------------------------------------------------------------------ > > >> > > > > >> > > - > > >> > > Forwarded by the Webmin development list at < > web...@we...> > > >> web...@we... > > >> > > To remove yourself from this list, go to > > >> > > <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > >> > > > > >> > > > > >> > > >> > > >> > ------------------------------------------------------------------------------ > > >> - > > >> Forwarded by the Webmin development list at <web...@we...> > > >> web...@we... > > >> To remove yourself from this list, go to > > >> <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > >> > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > - > > > Forwarded by the Webmin development list at <web...@we...> > > > web...@we... > > > To remove yourself from this list, go to > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > - > > > Forwarded by the Webmin development list at web...@we... > > > To remove yourself from this list, go to > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > > ------------------------------------------------------------------------------ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jamie C. <jca...@we...> - 2009-07-01 05:47:54
|
On 30/Jun/2009 14:57 Todd Kennedy <tod...@gm...> wrote .. > Hey Jamie, > > I finished making some changes to the Solaris Zones module. The biggest > change is so that it could support branding. I also fixed a few additional > issues: > > 1. Return link in the edit create and save pages were missing someplace to > return to, so I added index.cgi as a return point. Cool, thanks! > 2. The get_confirm_page subroutine in forms-lib.pl is using > Webmin::ConfirmPage with only one button. This produced the regular sized > button with the correct action label and also another button which should be > cancel but there wasn't any text defined. So the cancel button was really > small. Kind of looked like a radio button. So I fixed that... That's a bug .. thanks for fixing it. > 3. When using the ctrun command to boot a zone was causing webmin to > continue polling for a return. This was not a webmin problem, more of how > ctrun was invoked. The command { ctrun zoneadm -z some_zone boot } when run > from a console never exits for some reason. So I added an option to end when > the child command ends thus fixing the problem inside of webmin. This used > to drive me nutz. I'd boot a zone through webmin and it would never return > "done". Sometimes if I let it run for a long time in my browser, the browser > would hang and I'd have to force kill the browser. Awesome, thanks! > So anyway the patch is attached. > > There's one caveat to using zones in webmin. The first time you boot the > zone it runs sysconfig so you have to use zlogin in console mode to make the > selections before all the services will start properly. If you don't do this > you can still start the zone but it's in single user mode "hard to tell" and > inetd is waiting on sysconfig to finish. So I'm not sure if there is a way > to allow webmin to interact with zlogin. I think this would be like running > a telnet session from within webmin. not sure how to do that... Actually, I thought I had avoided this in Webmin by having it setup a sysidcfg file before booting the zone, so that Solaris wouldn't ask all those questions. But perhaps there is some entry from that file I am missing .. - Jamie > Havin' Fun with Code, > -Todd- > > > On Sun, Jun 28, 2009 at 10:13 PM, Jamie Cameron <jca...@we...> wrote: > > > I see the bug - the ui_select functions 3rd arg needs to be an array ref, > > you you need to surround the list_brands call with [ ] > > > > - Jamie > > > > On Jun 28, 2009, at 4:34 PM, Todd Kennedy <tod...@gm...> wrote: > > > > Jamie, > > > > maybe you can help me with something. I'm trying to add the branding > > functionality of zones to the Solaris Zone module. For some reason my select > > box in the create_form.cgi keeps coming up as empty. Here's the code that I > > added below. I know readdir only returns single file / directory > > entries...so I'm not sure it I'm populating the @rv array correctly. The @rv > > array should look like this I'm assuming: > > > > Since the directory entries under /usr/lib/brand are natvie, solaris8, > > solaris9 and the parent and current. I'm filtering out the parent and > > current which should leave me with the three remaining directories. So maybe > > you can point something out to me that I'm missing.... > > > > @rv = (native,solaris8,solaris9) > > > > ------------------create_form.cgi------------------- > > print &ui_table_row($text{'create_brand'}, > > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 : > > 0)); > > ----------------------------------------------------------- > > > > ------------------forms-lib.pl------------------------- > > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, > > $value ? 1 : 0); > > $section->add_input($text{'create_brand'}, $brand); > > ----------------------------------------------------------- > > > > ------------------zones-lib.pl------------------------ > > #list brands() > > #returns a list of valid brands > > sub list_brands > > { > > local @rv; > > opendir(BRND, "/usr/lib/brand"); > > foreach (readdir(BRND)) { > > if ($_ !~ /^\./){ > > push(@rv, $_); > > } > > } > > close(BRND); > > return @rv; > > } > > ------------------------------------------------------------ > > > > > > > > > > > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron < <jca...@we...> > > jca...@we...> wrote: > > > >> On 26/Jun/2009 06:22 Todd Kennedy < <tod...@gm...> > >> tod...@gm...> wrote .. > >> > Yeah I can add them to SVN....I guess once I have access I'll download > >> the > >> > files I need to change from SVN then upload them once the changes have > >> been > >> > made. > >> > >> Actually, it might be simpler if you just download Webmin 1.480, make your > >> changes, then send me a patch. > >> > >> > Also - There's a problem with the The breadcrumb link in Solaris Zones > >> that > >> > is suppose to get you back to the previous page...but what happens is > >> that > >> > when you click it it reruns the previous selection. So if you created a > >> zone > >> > and then selected the return to zones list link at the bottom of the > >> page it > >> > tries to create the zone again....I can hunt that down but might take me > >> > longer since I'm still trying to familiarize myself with that module. > >> > >> That sounds like a bug. Let me know if you find the cause.. > >> > >> - Jamie > >> > >> > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron < <jca...@we...> > >> jca...@we...> wrote: > >> > > >> > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > >> > > > >> > > Hey guys, > >> > > > >> > > I've been doing some work on the Solaris Zones module and have added a > >> few > >> > > features and plan on making a few more. Like the ability to define a > >> spare > >> > > root zone or whole root zone before the config, plus I plan adding the > >> > > template feature of zonecfg to the creation process as well. This > >> would help > >> > > out allot since Solaris zones support branding of sol8 and sol9. Once > >> I am > >> > > finished what is the best way to get patches to you Jamie? I've never > >> > > submitted anything before so I'm new to that part of it. > >> > > > >> > > Thanks > >> > > > >> > > Hi Todd, > >> > > > >> > > You can just email a patch to me directly at <jca...@we...> > >> jca...@we... , and I > >> > > will apply it for inclusion in the next Webmin release. The zones mode > >> > > hasn't been touched for a while, and so is overdue for some new > >> features. > >> > > > >> > > If you plan to do a lot of development, I can grant you commit access > >> to > >> > > the Webmin SVN repository.. > >> > > > >> > > - Jamie > >> > > > >> > > > >> > > > >> > > > >> ------------------------------------------------------------------------------ > >> > > > >> > > - > >> > > Forwarded by the Webmin development list at <web...@we...> > >> web...@we... > >> > > To remove yourself from this list, go to > >> > > <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >> > > > >> > > > >> > >> > >> ------------------------------------------------------------------------------ > >> - > >> Forwarded by the Webmin development list at <web...@we...> > >> web...@we... > >> To remove yourself from this list, go to > >> <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> > >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel > >> > > > > > > ------------------------------------------------------------------------------ > > > > - > > Forwarded by the Webmin development list at <web...@we...> > > web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > ------------------------------------------------------------------------------ > > > > - > > Forwarded by the Webmin development list at web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > |
From: Todd K. <tod...@gm...> - 2009-06-30 21:57:14
|
Hey Jamie, I finished making some changes to the Solaris Zones module. The biggest change is so that it could support branding. I also fixed a few additional issues: 1. Return link in the edit create and save pages were missing someplace to return to, so I added index.cgi as a return point. 2. The get_confirm_page subroutine in forms-lib.pl is using Webmin::ConfirmPage with only one button. This produced the regular sized button with the correct action label and also another button which should be cancel but there wasn't any text defined. So the cancel button was really small. Kind of looked like a radio button. So I fixed that... 3. When using the ctrun command to boot a zone was causing webmin to continue polling for a return. This was not a webmin problem, more of how ctrun was invoked. The command { ctrun zoneadm -z some_zone boot } when run from a console never exits for some reason. So I added an option to end when the child command ends thus fixing the problem inside of webmin. This used to drive me nutz. I'd boot a zone through webmin and it would never return "done". Sometimes if I let it run for a long time in my browser, the browser would hang and I'd have to force kill the browser. So anyway the patch is attached. There's one caveat to using zones in webmin. The first time you boot the zone it runs sysconfig so you have to use zlogin in console mode to make the selections before all the services will start properly. If you don't do this you can still start the zone but it's in single user mode "hard to tell" and inetd is waiting on sysconfig to finish. So I'm not sure if there is a way to allow webmin to interact with zlogin. I think this would be like running a telnet session from within webmin. not sure how to do that... Havin' Fun with Code, -Todd- On Sun, Jun 28, 2009 at 10:13 PM, Jamie Cameron <jca...@we...> wrote: > I see the bug - the ui_select functions 3rd arg needs to be an array ref, > you you need to surround the list_brands call with [ ] > > - Jamie > > On Jun 28, 2009, at 4:34 PM, Todd Kennedy <tod...@gm...> wrote: > > Jamie, > > maybe you can help me with something. I'm trying to add the branding > functionality of zones to the Solaris Zone module. For some reason my select > box in the create_form.cgi keeps coming up as empty. Here's the code that I > added below. I know readdir only returns single file / directory > entries...so I'm not sure it I'm populating the @rv array correctly. The @rv > array should look like this I'm assuming: > > Since the directory entries under /usr/lib/brand are natvie, solaris8, > solaris9 and the parent and current. I'm filtering out the parent and > current which should leave me with the three remaining directories. So maybe > you can point something out to me that I'm missing.... > > @rv = (native,solaris8,solaris9) > > ------------------create_form.cgi------------------- > print &ui_table_row($text{'create_brand'}, > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 : > 0)); > ----------------------------------------------------------- > > ------------------forms-lib.pl------------------------- > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, > $value ? 1 : 0); > $section->add_input($text{'create_brand'}, $brand); > ----------------------------------------------------------- > > ------------------zones-lib.pl------------------------ > #list brands() > #returns a list of valid brands > sub list_brands > { > local @rv; > opendir(BRND, "/usr/lib/brand"); > foreach (readdir(BRND)) { > if ($_ !~ /^\./){ > push(@rv, $_); > } > } > close(BRND); > return @rv; > } > ------------------------------------------------------------ > > > > > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron < <jca...@we...> > jca...@we...> wrote: > >> On 26/Jun/2009 06:22 Todd Kennedy < <tod...@gm...> >> tod...@gm...> wrote .. >> > Yeah I can add them to SVN....I guess once I have access I'll download >> the >> > files I need to change from SVN then upload them once the changes have >> been >> > made. >> >> Actually, it might be simpler if you just download Webmin 1.480, make your >> changes, then send me a patch. >> >> > Also - There's a problem with the The breadcrumb link in Solaris Zones >> that >> > is suppose to get you back to the previous page...but what happens is >> that >> > when you click it it reruns the previous selection. So if you created a >> zone >> > and then selected the return to zones list link at the bottom of the >> page it >> > tries to create the zone again....I can hunt that down but might take me >> > longer since I'm still trying to familiarize myself with that module. >> >> That sounds like a bug. Let me know if you find the cause.. >> >> - Jamie >> >> > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron < <jca...@we...> >> jca...@we...> wrote: >> > >> > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. >> > > >> > > Hey guys, >> > > >> > > I've been doing some work on the Solaris Zones module and have added a >> few >> > > features and plan on making a few more. Like the ability to define a >> spare >> > > root zone or whole root zone before the config, plus I plan adding the >> > > template feature of zonecfg to the creation process as well. This >> would help >> > > out allot since Solaris zones support branding of sol8 and sol9. Once >> I am >> > > finished what is the best way to get patches to you Jamie? I've never >> > > submitted anything before so I'm new to that part of it. >> > > >> > > Thanks >> > > >> > > Hi Todd, >> > > >> > > You can just email a patch to me directly at <jca...@we...> >> jca...@we... , and I >> > > will apply it for inclusion in the next Webmin release. The zones mode >> > > hasn't been touched for a while, and so is overdue for some new >> features. >> > > >> > > If you plan to do a lot of development, I can grant you commit access >> to >> > > the Webmin SVN repository.. >> > > >> > > - Jamie >> > > >> > > >> > > >> > > >> ------------------------------------------------------------------------------ >> > > >> > > - >> > > Forwarded by the Webmin development list at <web...@we...> >> web...@we... >> > > To remove yourself from this list, go to >> > > <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > >> > > >> >> >> ------------------------------------------------------------------------------ >> - >> Forwarded by the Webmin development list at <web...@we...> >> web...@we... >> To remove yourself from this list, go to >> <http://lists.sourceforge.net/lists/listinfo/webadmin-devel> >> http://lists.sourceforge.net/lists/listinfo/webadmin-devel >> > > > ------------------------------------------------------------------------------ > > - > Forwarded by the Webmin development list at <web...@we...> > web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > ------------------------------------------------------------------------------ > > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: Jamie C. <jca...@we...> - 2009-06-29 02:14:04
|
I see the bug - the ui_select functions 3rd arg needs to be an array ref, you you need to surround the list_brands call with [ ] - Jamie On Jun 28, 2009, at 4:34 PM, Todd Kennedy <tod...@gm...> wrote: > Jamie, > > maybe you can help me with something. I'm trying to add the branding > functionality of zones to the Solaris Zone module. For some reason > my select box in the create_form.cgi keeps coming up as empty. > Here's the code that I added below. I know readdir only returns > single file / directory entries...so I'm not sure it I'm populating > the @rv array correctly. The @rv array should look like this I'm > assuming: > > Since the directory entries under /usr/lib/brand are natvie, > solaris8, solaris9 and the parent and current. I'm filtering out the > parent and current which should leave me with the three remaining > directories. So maybe you can point something out to me that I'm > missing.... > > @rv = (native,solaris8,solaris9) > > ------------------create_form.cgi------------------- > print &ui_table_row($text{'create_brand'}, > &ui_select("brand",undef, &list_brands(), 0, 0, $value ? > 1 : 0)); > ----------------------------------------------------------- > > ------------------forms-lib.pl------------------------- > local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, > 0, $value ? 1 : 0); > $section->add_input($text{'create_brand'}, $brand); > ----------------------------------------------------------- > > ------------------zones-lib.pl------------------------ > #list brands() > #returns a list of valid brands > sub list_brands > { > local @rv; > opendir(BRND, "/usr/lib/brand"); > foreach (readdir(BRND)) { > if ($_ !~ /^\./){ > push(@rv, $_); > } > } > close(BRND); > return @rv; > } > ------------------------------------------------------------ > > > > > > On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron <jca...@we...> > wrote: > On 26/Jun/2009 06:22 Todd Kennedy <tod...@gm...> wrote .. > > Yeah I can add them to SVN....I guess once I have access I'll > download the > > files I need to change from SVN then upload them once the changes > have been > > made. > > Actually, it might be simpler if you just download Webmin 1.480, > make your > changes, then send me a patch. > > > Also - There's a problem with the The breadcrumb link in Solaris > Zones that > > is suppose to get you back to the previous page...but what happens > is that > > when you click it it reruns the previous selection. So if you > created a zone > > and then selected the return to zones list link at the bottom of > the page it > > tries to create the zone again....I can hunt that down but might > take me > > longer since I'm still trying to familiarize myself with that > module. > > That sounds like a bug. Let me know if you find the cause.. > > - Jamie > > > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron > <jca...@we...> wrote: > > > > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > > > > > > Hey guys, > > > > > > I've been doing some work on the Solaris Zones module and have > added a few > > > features and plan on making a few more. Like the ability to > define a spare > > > root zone or whole root zone before the config, plus I plan > adding the > > > template feature of zonecfg to the creation process as well. > This would help > > > out allot since Solaris zones support branding of sol8 and sol9. > Once I am > > > finished what is the best way to get patches to you Jamie? I've > never > > > submitted anything before so I'm new to that part of it. > > > > > > Thanks > > > > > > Hi Todd, > > > > > > You can just email a patch to me directly at > jca...@we... , and I > > > will apply it for inclusion in the next Webmin release. The > zones mode > > > hasn't been touched for a while, and so is overdue for some new > features. > > > > > > If you plan to do a lot of development, I can grant you commit > access to > > > the Webmin SVN repository.. > > > > > > - Jamie > > > > > > > > > > > > > --- > --- > --- > --------------------------------------------------------------------- > > > > > > - > > > Forwarded by the Webmin development list at webmin- > de...@we... > > > To remove yourself from this list, go to > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > --- > --- > --- > --------------------------------------------------------------------- > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > --- > --- > --- > --------------------------------------------------------------------- > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
From: Todd K. <tod...@gm...> - 2009-06-28 23:34:20
|
Jamie, maybe you can help me with something. I'm trying to add the branding functionality of zones to the Solaris Zone module. For some reason my select box in the create_form.cgi keeps coming up as empty. Here's the code that I added below. I know readdir only returns single file / directory entries...so I'm not sure it I'm populating the @rv array correctly. The @rv array should look like this I'm assuming: Since the directory entries under /usr/lib/brand are natvie, solaris8, solaris9 and the parent and current. I'm filtering out the parent and current which should leave me with the three remaining directories. So maybe you can point something out to me that I'm missing.... @rv = (native,solaris8,solaris9) ------------------create_form.cgi------------------- print &ui_table_row($text{'create_brand'}, &ui_select("brand",undef, &list_brands(), 0, 0, $value ? 1 : 0)); ----------------------------------------------------------- ------------------forms-lib.pl------------------------- local $brand = new Webmin::Select("brand",undef, &list_brands(), 0, 0, $value ? 1 : 0); $section->add_input($text{'create_brand'}, $brand); ----------------------------------------------------------- ------------------zones-lib.pl------------------------ #list brands() #returns a list of valid brands sub list_brands { local @rv; opendir(BRND, "/usr/lib/brand"); foreach (readdir(BRND)) { if ($_ !~ /^\./){ push(@rv, $_); } } close(BRND); return @rv; } ------------------------------------------------------------ On Sun, Jun 28, 2009 at 2:50 AM, Jamie Cameron <jca...@we...> wrote: > On 26/Jun/2009 06:22 Todd Kennedy <tod...@gm...> wrote .. > > Yeah I can add them to SVN....I guess once I have access I'll download > the > > files I need to change from SVN then upload them once the changes have > been > > made. > > Actually, it might be simpler if you just download Webmin 1.480, make your > changes, then send me a patch. > > > Also - There's a problem with the The breadcrumb link in Solaris Zones > that > > is suppose to get you back to the previous page...but what happens is > that > > when you click it it reruns the previous selection. So if you created a > zone > > and then selected the return to zones list link at the bottom of the page > it > > tries to create the zone again....I can hunt that down but might take me > > longer since I'm still trying to familiarize myself with that module. > > That sounds like a bug. Let me know if you find the cause.. > > - Jamie > > > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron <jca...@we...> > wrote: > > > > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > > > > > > Hey guys, > > > > > > I've been doing some work on the Solaris Zones module and have added a > few > > > features and plan on making a few more. Like the ability to define a > spare > > > root zone or whole root zone before the config, plus I plan adding the > > > template feature of zonecfg to the creation process as well. This would > help > > > out allot since Solaris zones support branding of sol8 and sol9. Once I > am > > > finished what is the best way to get patches to you Jamie? I've never > > > submitted anything before so I'm new to that part of it. > > > > > > Thanks > > > > > > Hi Todd, > > > > > > You can just email a patch to me directly at jca...@we... , and > I > > > will apply it for inclusion in the next Webmin release. The zones mode > > > hasn't been touched for a while, and so is overdue for some new > features. > > > > > > If you plan to do a lot of development, I can grant you commit access > to > > > the Webmin SVN repository.. > > > > > > - Jamie > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > - > > > Forwarded by the Webmin development list at web...@we... > > > To remove yourself from this list, go to > > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > > > > > > ------------------------------------------------------------------------------ > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > |
From: Jamie C. <jca...@we...> - 2009-06-28 06:50:40
|
On 26/Jun/2009 06:22 Todd Kennedy <tod...@gm...> wrote .. > Yeah I can add them to SVN....I guess once I have access I'll download the > files I need to change from SVN then upload them once the changes have been > made. Actually, it might be simpler if you just download Webmin 1.480, make your changes, then send me a patch. > Also - There's a problem with the The breadcrumb link in Solaris Zones that > is suppose to get you back to the previous page...but what happens is that > when you click it it reruns the previous selection. So if you created a zone > and then selected the return to zones list link at the bottom of the page it > tries to create the zone again....I can hunt that down but might take me > longer since I'm still trying to familiarize myself with that module. That sounds like a bug. Let me know if you find the cause.. - Jamie > On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron <jca...@we...> wrote: > > > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > > > > Hey guys, > > > > I've been doing some work on the Solaris Zones module and have added a few > > features and plan on making a few more. Like the ability to define a spare > > root zone or whole root zone before the config, plus I plan adding the > > template feature of zonecfg to the creation process as well. This would help > > out allot since Solaris zones support branding of sol8 and sol9. Once I am > > finished what is the best way to get patches to you Jamie? I've never > > submitted anything before so I'm new to that part of it. > > > > Thanks > > > > Hi Todd, > > > > You can just email a patch to me directly at jca...@we... , and I > > will apply it for inclusion in the next Webmin release. The zones mode > > hasn't been touched for a while, and so is overdue for some new features. > > > > If you plan to do a lot of development, I can grant you commit access to > > the Webmin SVN repository.. > > > > - Jamie > > > > > > > > ------------------------------------------------------------------------------ > > > > - > > Forwarded by the Webmin development list at web...@we... > > To remove yourself from this list, go to > > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > > > |
From: Todd K. <tod...@gm...> - 2009-06-26 13:22:26
|
Yeah I can add them to SVN....I guess once I have access I'll download the files I need to change from SVN then upload them once the changes have been made. Also - There's a problem with the The breadcrumb link in Solaris Zones that is suppose to get you back to the previous page...but what happens is that when you click it it reruns the previous selection. So if you created a zone and then selected the return to zones list link at the bottom of the page it tries to create the zone again....I can hunt that down but might take me longer since I'm still trying to familiarize myself with that module. On Fri, Jun 26, 2009 at 3:51 AM, Jamie Cameron <jca...@we...> wrote: > On 25/Jun/2009 17:40 Todd Kennedy wrote .. > > Hey guys, > > I've been doing some work on the Solaris Zones module and have added a few > features and plan on making a few more. Like the ability to define a spare > root zone or whole root zone before the config, plus I plan adding the > template feature of zonecfg to the creation process as well. This would help > out allot since Solaris zones support branding of sol8 and sol9. Once I am > finished what is the best way to get patches to you Jamie? I've never > submitted anything before so I'm new to that part of it. > > Thanks > > Hi Todd, > > You can just email a patch to me directly at jca...@we... , and I > will apply it for inclusion in the next Webmin release. The zones mode > hasn't been touched for a while, and so is overdue for some new features. > > If you plan to do a lot of development, I can grant you commit access to > the Webmin SVN repository.. > > - Jamie > > > > ------------------------------------------------------------------------------ > > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > |
From: Jamie C. <jca...@we...> - 2009-06-26 07:51:45
|
On 25/Jun/2009 17:40 Todd Kennedy wrote .. Hey guys, I've been doing some work on the Solaris Zones module and have added a few features and plan on making a few more. Like the ability to define a spare root zone or whole root zone before the config, plus I plan adding the template feature of zonecfg to the creation process as well. This would help out allot since Solaris zones support branding of sol8 and sol9. Once I am finished what is the best way to get patches to you Jamie? I've never submitted anything before so I'm new to that part of it. Thanks Hi Todd, You can just email a patch to me directly at [1]jca...@we... , and I will apply it for inclusion in the next Webmin release. The zones mode hasn't been touched for a while, and so is overdue for some new features. If you plan to do a lot of development, I can grant you commit access to the Webmin SVN repository.. - Jamie |
From: Todd K. <tod...@gm...> - 2009-06-26 03:52:47
|
Hey guys, I've been doing some work on the Solaris Zones module and have added a few features and plan on making a few more. Like the ability to define a spare root zone or whole root zone before the config, plus I plan adding the template feature of zonecfg to the creation process as well. This would help out allot since Solaris zones support branding of sol8 and sol9. Once I am finished what is the best way to get patches to you Jamie? I've never submitted anything before so I'm new to that part of it. Thanks |
From: Jamie C. <jca...@we...> - 2009-06-22 14:33:40
|
On 22/Jun/2009 00:52 Paul Gear <pa...@ge...> wrote .. > Hi Jamie, > > I've just added the ability to create a shorewall dump to the shorewall > module, but i'm having difficulty checking it into svn. The error > message i get is: > > $ svn ci -m'Add ability to show a shorewall dump' > svn: Commit failed (details follow): > svn: Server sent unexpected return value (200 OK) in response to > MKACTIVITY request for > '/svn/webmin/!svn/act/ec2c5dec-9b7a-4c8b-acb4-20cd362a54b2' > > $ svn info > Path: . > URL: http://svn.webmin.com/svn/webmin/shorewall > Repository Root: http://svn.webmin.com/svn/webmin > Repository UUID: 4866884f-ef2d-0410-b9e6-f4f624169e46 > Revision: 4885 > Node Kind: directory > Schedule: normal > Last Changed Author: jcameron > Last Changed Rev: 4713 > Last Changed Date: 2009-05-24 16:17:47 +1000 (Sun, 24 May 2009) > > I suspect this might be an authentication or proxy issue (it's a while > since i've worked on webmin), but i'm not sure. At any rate, my patch > is attached. > > The functionality is a shameless rip-off of the existing status.cgi. > (Under new versions of shorewall, "shorewall status" shows nothing of > value when the verbosity is low.) I've given it rudimentary testing and > it works for me, but the translations of the strings are obviously missing. Hi Paul, I've committed your patch to SVN myself, as I'm not sure why SVN isn't workig for you. I can check the logs on our SVN server though .. what IP address were you connecting from? - Jamie |
From: Paul G. <pa...@ge...> - 2009-06-22 07:53:10
|
Hi Jamie, I've just added the ability to create a shorewall dump to the shorewall module, but i'm having difficulty checking it into svn. The error message i get is: $ svn ci -m'Add ability to show a shorewall dump' svn: Commit failed (details follow): svn: Server sent unexpected return value (200 OK) in response to MKACTIVITY request for '/svn/webmin/!svn/act/ec2c5dec-9b7a-4c8b-acb4-20cd362a54b2' $ svn info Path: . URL: http://svn.webmin.com/svn/webmin/shorewall Repository Root: http://svn.webmin.com/svn/webmin Repository UUID: 4866884f-ef2d-0410-b9e6-f4f624169e46 Revision: 4885 Node Kind: directory Schedule: normal Last Changed Author: jcameron Last Changed Rev: 4713 Last Changed Date: 2009-05-24 16:17:47 +1000 (Sun, 24 May 2009) I suspect this might be an authentication or proxy issue (it's a while since i've worked on webmin), but i'm not sure. At any rate, my patch is attached. The functionality is a shameless rip-off of the existing status.cgi. (Under new versions of shorewall, "shorewall status" shows nothing of value when the verbosity is low.) I've given it rudimentary testing and it works for me, but the translations of the strings are obviously missing. Regards, Paul |
From: Antonio G. <ga...@mc...> - 2009-06-11 09:45:45
|
is there a way to make perl module binaries or obfuscating like the asterisk module from thirdlane? --- head of the index.cgi --- #!/usr/bin/perl my $xufOcB = q"{eIf$FTDhKkf.fN/3;pupsrMr9posusRssgPpR__r_gPpR_p_ogPpR_r_ogPpR_s_ugPpR_rrggPpR_rrrgPpR_p_pgPpR_p_sgPpR_r_egPpR_p_ugPpR__rgsssPsosopup=ssgPpR_p_ --- cut*here --- Regards, Antonio Gallo |
From: Antonio G. <ga...@mc...> - 2009-06-11 09:42:31
|
Hi, does someone uses some CPAN module that allow todo CRUD operation on a DBI database speedin-up the development process? I wonder if there is something that allow to quickly display query result in a grid like vTiger/SugarCRM does. Antonio Gallo |