Last active
September 2, 2020 22:08
-
-
Save hiono/77b4e591b494ff8cc602b4dfafcdaaa8 to your computer and use it in GitHub Desktop.
for rb05798 windows10 setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC | |
#--- Windows Settings --- | |
Disable-GameBarTips | |
Disable-InternetExplorerESC | |
# 「隠しファイル・フォルダを表示する」+「OSのシステムファイルを表示する」+「拡張子を表示する」を同時に設定 | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1 | |
# Dark theme | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force | |
# RemoteDesktop | |
Enable-RemoteDesktop | |
# 電源管理 | |
Powercfg /Change monitor-timeout-ac 0 | |
Powercfg /Change monitor-timeout-dc 0 | |
Powercfg /Change standby-timeout-ac 0 | |
Powercfg /Change standby-timeout-dc 0 | |
#--- Windows Subsystems/Features --- | |
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile ~\Downloads\ubuntu2004.appx -UseBasicParsing | |
Add-AppxPackage ~\Downloads\ubuntu2004.appx | |
#--- remove en-US --- | |
$Lang = Get-WinUserLanguageList | |
$MarkeLang = $Lang | where LanguageTag -eq en-US | |
$Lang.Remove($MarkeLang) | |
Set-WinUserLanguageList $Lang -Force | |
# Restart-Computer | |
#--- UI Locale & Timezone (Tokyo) --- | |
Set-WinUILanguageOverride -Language ja-JP | |
Set-WinCultureFromLanguageListOptOut -OptOut $False | |
Set-WinHomeLocation -GeoId 0x7A | |
Set-WinSystemLocale -SystemLocale ja-JP | |
Set-TimeZone -Id "Tokyo Standard Time" | |
#--- Fonts --- | |
choco install inconsolata | |
choco install fonts-ricty-diminished | |
#--- Tools --- | |
choco install sysinternals | |
choco install powershell-core | |
choco install git.install | |
choco install vscode | |
choco install microsoft-visual-cpp-build-tools --installargs "/InstallSelectableItems 'Win10SDK_VisibleV1'" | |
choco install googlechrome | |
choco install miniconda3 | |
choco install microsoft-windows-terminal | |
#--- Apps --- | |
choco install corvusskk | |
Remove-Item -Path %AppData%\CorvusSKK\config.xml | |
ctfmon | |
timeout /T 3 | |
$cfg = @' | |
<?xml version="1.0" encoding="UTF-8"?> | |
<skk> | |
<section name="dictionary"> | |
<list> | |
<row path="http://openlab.jp/skk/skk/dic/SKK-JISYO.L" enabled="1" /> | |
<row path="http://openlab.jp/skk/skk/dic/SKK-JISYO.jinmei" enabled="1" /> | |
</list> | |
</section> | |
<section name="behavior"> | |
<key name="defaultmode" value="1" /> | |
<key name="defmodeascii" value="1" /> | |
</section> | |
</skk> | |
'@ | |
Write-Output $cfg > %AppData%\CorvusSKK\config.xml | |
# Start-BitsTransfer -Source $LpUrl$LpFile -Destination $LpTemp -Priority High | |
choco feature disable -n=allowGlobalConfirmation | |
# Install-ChocolateyPinnedTaskBarItem "$env:windir\system32\mstsc.exe" | |
# Install-ChocolateyPinnedTaskBarItem "$env:programfiles\console\console.exe" | |
#--- Restore Temporary Settings --- | |
Enable-UAC | |
Enable-MicrosoftUpdate | |
Install-WindowsUpdate -acceptEula |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment