Waclaw Chrabaszcz
... there is no spoon ...

Easter egg – OMG^2 the true PowerShell in bash window

Friday, April 18, 2014 7:16 AM

Let's continue this crazy experiment. More or less it should works on any distro in my case it is Ubuntu 13.

The idea is to use wine (Wine Is Not an Emulator J) to install Powershell 2.0 for Windows XP. Wine can emulate W7 or W8 however it refuses to install .MSU packages. To reach our goal we will need to use experimental wine 1.7 or above and EXE file so …

For the science!!!

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7 winetricks
wget http://kegel.com/wine/winetricks
bash winetricks -q msxml3 dotnet35sp1
bash winetricks lucida
taskset -c 0 bash winetricks windowscodecs
wget -O ~/.cache/winetricks/WindowsXP-KB968930-x86-ENG/WindowsXP-KB968930-x86-ENG.exe http://download.microsoft.com/download/E/C/E/ECE99583-2003-455D-B681-68DB610B44A4/WindowsXP-KB968930-x86-ENG.exe
cd '~/.cache/winetricks/WindowsXP-KB968930-x86-ENG'
wine ./WindowsXP-KB968930-x86-ENG.exe


wine powershell

Happy Easter!




Feedback

# re: Easter egg – OMG^2 the true PowerShell in bash window

I get a "Invalid handle." error that pops up in a window at the end of the installation and then "Windows Management Framework Core installation did not complete." popup. It looks like version Powershell v1.0 installed, but not version 2.0. 5/30/2015 4:39 PM | DD

# re: Easter egg – OMG^2 the true PowerShell in bash window

Yes WINE stuck on XP SP3 level. So you won't be able to install any .MSU packets. This is a strong limitation. But there is a better way - it's a visualization. For local applications I would recommend you WMware player with Windows7 in unity mode. for remote (it performs much better) a good old Citrix XenApp. Using both methods I can enjoy the Compiz experience and write and execute PoSH scripts in PowerShell ISE. I think Wine is the sign of past. You can execute few simple apps on it. Thanks to VMware unity I've got for example Office 2013 "on" linux. 6/12/2015 1:51 PM | wchrabaszcz

Post a comment