Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 26 2018 18:09
    @ferventcoder banned @Mikewazovsk1
Paul Broadwith
@pauby
@/all We're performing maintenance on https://chocolatey.org - bear with us while the site is offline. Back shortly! Status page https://status.chocolatey.org #chocolatey
Paul Broadwith
@pauby
@/all Maintenance complete. Thanks for bearing with us! Status page https://status.chocolatey.org #chocolatey
Paul Broadwith
@pauby
@/all The Chocolatey.org website will be unavailable for approximately 3 hours on Wednesday 15 April from 4am UTC due to essential maintenance. We apologise for any inconvenience this causes. Status page https://status.chocolatey.org #chocolatey
Paul Broadwith
@pauby
@/all As a reminder: The Chocolatey.org website will be unavailable for approximately 3 hours tomorrow (15 April) from 4am UTC due to essential maintenance. We apologise for any inconvenience this causes. Status page https://status.chocolatey.org #chocolatey
Paul Broadwith
@pauby
@/all As announced earlier, the Chocolatey.org website will be unavailable for approximately 3 hours from now due to essential maintenance. We apologise for any inconvenience this causes. Status page https://status.chocolatey.org #chocolatey
Paul Broadwith
@pauby
@/all Maintenance complete. Thanks for bearing with us! Status page https://status.chocolatey.org #chocolatey
Erik Karlsson
@McDoit
Hello Boxstarters, do anyone have any experience with boxstarting and sysprepping?
When I boxstart with some updates etc and then do a sysprep on AWS EC2 i get some strange behavior like loss of search in start menu and powershell icons dissapearing and normal blue powershell getting replaced with the black version of boxstarter etc
Paul Broadwith
@pauby
@McDoit Does chocolatey/boxstarter#92 help at all?
Erik Karlsson
@McDoit
@pauby No the issue is rather the oposite, after sysprep boxstarter shell is the only icon i can still see and use :P
will try to narrow it down a bit
Paul Broadwith
@pauby
@McDoit Thinking out loud - are the icons that are missing part of the 'Public User' (ie. stored under c:\programdata ?)
Erik Karlsson
@McDoit
its not only icons, but the itmes and links themselves are missing
first i taught it was something with the Path variable getting messed up in my own script, but havnt been able to pinpoint it
Erik Karlsson
@McDoit
Rob Reynolds
@ferventcoder
@/all If you are interested, we'll be showing off a demo of Chocolatey Central Management Deployments in about 10 minutes at https://twitch.tv/gep13 (announcement at https://chocolatey.org/blog/announcing-deployments)
Rob Reynolds
@ferventcoder
For those that couldn't make it for the Chocolatey Central Management Deployments Demo, the recording up at https://www.twitch.tv/videos/631756984
Matthew McKinnon
@mmckinnon_gitlab

I am not sure if this is Boxstarter related or Chocolatey but it occurs when using Boxstarter command and I cannot find any related issues in the issue tracker.

I have been evaluating BoxStarter and Chocolatey and have been testing the Install-BoxStartPackage -ComputerName function to install packages remotely. But I have noticed that boxstarter/chocolatey are not using the "local" source added to chocolatey (Disbaled public repository and added an internal one) and used Set-BoxstarterConfig -NugetSources to set local source.

But packages are still installed from the "Public" Repositoy. Is this a bug or something I am doing wrong?

Sources for Chocolatey and Boxstarter are set both to a local repository on the local and remote machine with the "community" repository disabled.

Gary Ewan Park
@gep13
I think @mwallner might be able to provide some guidance here.
Paul Broadwith
@pauby
@mmckinnon_gitlab When you say the "local" source are you expecting Boxstarter to install packages from the "local" source that is configured on the remote computer?
Matthew McKinnon
@mmckinnon_gitlab

@pauby I am expecting it to use the source I have set by using the choco source command or the Set-BoxStarterConfig. I have disabled the "community" repo and I have set private repos as we have packaged only the software we need.

But it keeps pulling software from the Community repositories even though these have been disabled, and If I tell it to install a package that is not in the community repo but in our private repo as we have packaged it our self as it is internal software it says it cannot find the package.

Matthew McKinnon
@mmckinnon_gitlab
I downloaded the Boxstarter Code Repo from Github and pulled it a part the code to have a look at what it was doing. It looks like I need to use the DelegateChocoSources Switch. This will use the sources configured on the machine that is attempting to connect to the remote machine. This appears to be achieving what I need.
Paul Broadwith
@pauby
@mmckinnon_gitlab Just to be clear, and it's important so I'm asking again, are you expecting Boxstarter to use the "local" source on the REMOTE computer (ie. the one you are connecting to)? If that is the case then it won't. Boxstarter creates it's own local source from the local computer and uses that to install packages on the remote computer. So what you have configured on the remote computer doesn't affect this. See https://boxstarter.org/InstallingPackages#RemoteInstallations

This appears to be achieving what I need.

Can I ask a favour? Could you raise an issue for this at https://github.com/chocolatey/boxstarter/issues and we can get that documentation updated?

Matthew McKinnon
@mmckinnon_gitlab

@pauby I want it to use the sources configured on the SERVER that is pushing to the client.

My Choco Source on the server has this

PS C:\> choco source
Chocolatey v0.10.15
chocolatey [Disabled] - https://chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
Trio - http://choco.tbt.net.au/nuget/trio | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.

When I run the command PS C:> Install-BoxstarterPackage -ComputerName WIN10PC -PackageName MicronetODBC I get

Boxstarter: Configuring local PowerShell Remoting settings...
Boxstarter: Configuring CredSSP settings...
Boxstarter: Testing remoting access on WIN10PC...
Boxstarter: Remoting is accessible on WIN10PC
Boxstarter: Copying Boxstarter Modules and LocalRepo packages at C:\ProgramData\Boxstarter to C:\Users\ADMINI~1.TRI\AppData\Local\Temp\2 on WIN10PC...
Boxstarter: Running remote install...
[WIN10PC]Boxstarter: Installing package MicronetODBC
[WIN10PC]Boxstarter: Disabling Automatic Updates from Windows Update
[WIN10PC]++ Boxstarter starting Calling Chocolatey to install MicronetODBC. This may take several minutes to complete...Installing the following packages:
MicronetODBC
By installing you accept licenses for the packages.
MicronetODBC not installed. The package was not found with the source(s) listed.

But when I attach the -DelegateChocoSources to the command it works

Boxstarter Version 2.12.0
(c) 2018 Chocolatey Software, Inc, 2012 - 2018 Matt Wrock. https://boxstarter.org

Boxstarter: Configuring local PowerShell Remoting settings...
Boxstarter: Configuring CredSSP settings...
Boxstarter: Testing remoting access on WIN10PC...
Boxstarter: Remoting is accessible on WIN10PC
Boxstarter: Copying Boxstarter Modules and LocalRepo packages at C:\ProgramData\Boxstarter to C:\Users\ADMINI~1.TRI\AppData\Local\Temp\2 on WIN10PC...
Boxstarter: Delegating Boxstarter NugetSources to remote host...
Boxstarter: Running remote install...
[WIN10PC]Boxstarter: Installing package MicronetODBC
[WIN10PC]Boxstarter: Disabling Automatic Updates from Windows Update
[WIN10PC]++ Boxstarter starting Calling Chocolatey to install MicronetODBC. This may take several minutes to complete...
Installing the following packages:
MicronetODBC
By installing you accept licenses for the packages.
[NuGet] Installing 'MicronetODBC 2.7'.
[NuGet] Successfully installed 'MicronetODBC 2.7'.

I would have thought that because the community repo is disabled that boxstarter/chocolatey would not use it but they still do.

Manfred Wallner
@mwallner
Hey @mmckinnon_gitlab , I've been away for a while - looks like you've worked it out / found a solution that is working for your setup?
Matthew McKinnon
@mmckinnon_gitlab
@mwallner Yeah looks like I have. From what I have worked out I just needed to add the -DelegateChocoSources argument so it uses the choco srouces configured on the machine. Otherwise it uses Boxstarter Local Source and then goes out to the community repo.
Manfred Wallner
@mwallner
Awesome, nice to know I'm not the only one using that switch :smile:
Paul Broadwith
@pauby
I've added issue chocolatey/boxstarter#435 to add this to the documentation. @mwallner I've assigned this to you as it was your PR that added it?
Manfred Wallner
@mwallner
yup, will see to it at some point this week :thumbsup:
Paul Broadwith
@pauby
:+1:
Matthew McKinnon
@mmckinnon_gitlab
@mwallner Yeah I couldn't see it in the documentation. I pulled apart the source looking for how it was passing the "sources" to the remote machine and came across that function, that led me to the pull request on it so learned some more on it. Tested it and found it was what I needed. :D
Paul Broadwith
@pauby
@/all Join Paul Broadwith and Derek Campbell on Wednesday 29 July at 3.30pm UTC to learn more about Automating your Infrastructure & Applications with Octopus Runbooks and Chocolatey. Registration is at https://octopus.zoom.us/webinar/register/6915929055694/WN_AoZiSPIzQw6Y0nz_Lco60A
Paul Broadwith
@pauby
@/all A reminder of our webinar tomorrow with Octopus - Automating your Infrastructure & Applications with Octopus Runbooks and Chocolatey with myself and Derek Campbell starts at 3.30pm UTC. Register now at https://octopus.zoom.us/webinar/register/6915929055694/WN_AoZiSPIzQw6Y0nz_Lco60A - all registrants will receive a link to the video recording so even if you can't make it you'll still be able to watch it back later!
William Higgs
@whiggs_gitlab

Hey everyone. I had a question about the instructions in "Contributing.md". Specifically the part about adding the upstream fork and then running git fetch. I am getting an error when running git fetch after adding the upstream fork:

Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Is this what is supposed to happen? Is there some step that I missed?

Gary Ewan Park
@gep13
@whiggs_gitlab if you run git remote -v can you show what is output?
William Higgs
@whiggs_gitlab
@gep13 sure. here you go:
origin  https://github.com/demdante/boxstarter (fetch)
origin  https://github.com/demdante/boxstarter (push)
upstream        git@github.com:chocolatey/boxstarter.git (fetch)
upstream        git@github.com:chocolatey/boxstarter.git (push)
Gary Ewan Park
@gep13
Ah, I think I see the problem....

Do

git remote remove upstream

followed by:

git remote add upstream https://github.com/chocolatey/boxstarter.git
The git@github URL assumes that you are using an SSH key, which it doesn't look like you are
William Higgs
@whiggs_gitlab
ah... I think I see where you are going. The documentation demonstrates adding the upstream remote using ssh, not https, right?
Gary Ewan Park
@gep13
Which explains the permissions error you are seeing
Yes, exactly that
A good PR would be to clarify that in the docs :smile:
William Higgs
@whiggs_gitlab
I can certainly do that if you would like
Gary Ewan Park
@gep13
:+1:
William Higgs
@whiggs_gitlab
Hey @gep13 . Quick question about commits. If we are modifying multiple files for different reasons, do we have to stage multiple commits or can it all be grouped into one. For example, I have modified three files in the boxstarter repo: 2 are related to an issue that I opened, and one being the modification to Contributing.md to make instructions more clear. Do I need to create a commit for the issue resolution and the Contributing.md modification, or can it all be one commit?
Paul Broadwith
@pauby
@whiggs_gitlab You would need two entirely separate issues and PR's for that as they are separate 'things'.
If the issue is related to chocolatey/boxstarter#443 can you please make sure you correct the issue itself first as requested in the comments? Thanks.
William Higgs
@whiggs_gitlab
@gep13 One last question. The contributing.md file mentions that the commits need to configured so that the text wraps at 72 characters. Does the commit editor in VScode do this by default, or does that need to be configured? If it is the latter, how is that done?
Paul Broadwith
@pauby
New version 2.13 of Boxstarter has been released and includes a fix for user permissions on the default Boxstarter folder. You can install / upgrade via Chocolatey or via the Boxstarter website.