How can I get an interactive login with Windows 10 IoT Core running on a Raspberry Pi? - powershell

I just installed Windows 10 onto a Raspberry Pi. It started up fine and I can connect (using PowerShell) from my laptop.
I can connect a keyboard and mouse to the Pi but I can't get a login window. All that I can do is change the timezone and reboot. Is there a way to login directly to the device?
I don't need fancy graphical windows. A command line session (à la Linux or PowerShell) would be fine.
If it isn't possible with the core install, does anyone know if Microsoft, or a third party provider, plans to add this feature?

No there is not a command line presented on the local display. The only way to run commands on Win10 IoT is to use PowerShell as described by Keith in this thread or you can use SSH or Telnet. You can interact with applications run on the device via the local display, keyboard and mouse.
Mark Radbourne [MSFT]

You can use PowerShell remoting from another Windows box to do stuff on Windows 10 IoT Core. I've tested this procedure on Windows 10 PowerShell, works fine. Be sure to follow the step to "Remove-Module PSReadline". I was trying to use setcomputername to rename my RPi2 and the command would fail with a command not found error. Once I removed the PSReadline module, the command started working. Hopefully Jason gets this fixed as PSReadline is just too valuable to remove for long. :-)

Related

Visual Studio Code remote access to a WSL2:ubuntu on my desktop from my macbook

've looked around and can't seem to find the answer to this - probably because the feature is pretty new.
I tried the remote WSL:ubuntu connection on my windows desktop machine to connect to my WSL2 Ubuntu running on the same machine. This is pretty much perfect as it allows access to my Nvidia GPU under linux
Is there anyway I can do the same trick from my macbook? I can connect to the windows side of the desktop using the new remote tunnel feature but I'm drawing a blank on how to do for the WSL buried in that machine. It looks like it's just using the same remote connection feature so I'm thinking it should be possible but WSL2 network is not exposed the same way you can with a VM or other machine.
The desktop has way more everything than my macbook including a nvidia GPU I want to use for some machine learning.
I can do it from the desktop itself - but it's nice to be able to use that machine from my macbook at certain times of day.
I have recently started using VSCode so I'm on the learning curve with it - it may well be that it's not possible using the new remote tunnels - or requires some messing with adding a new hyper-v bridged adapter to the WSL installation. I'm hoping against hope there's an easy solve that I've somehow missed.
I tried setting up the remote tunnel as per https://code.visualstudio.com/blogs/2022/12/07/remote-even-better but it seems to setup a server to access windows not the WSL2 service.
Thanks for any help!
I had a similar problem and found this github issue. While the developers are looking into including this feature, you currently will need to install the VSCode CLI directly in WSL. You can find the downloads here
Notes
I would recommend the x64 CLI download in the Linux section. It will download a tar.gz file which will have a file named code in it when extracted.
The tunnel will launch from wherever you place that code file, so I put mine in the ~/ (home) directory.
You can then open a tunnel using the command ./code tunnel from that location. You can replace the . with the path to the code file to open the tunnel while in a different directory, i.e. ~/code.
You can still launch a tunnel from Windows with code tunnel. (note that this command does not have ./)

is it possible to host windows powershell on a .netcore app

i was wondering if it is possible to host Windows PowerShell on a .NetCore application assuming that i'm gonna use it on Windows OS, but couldn't find an answer for that.
anyone knows if there's a way to do that?
No it is not possible.
Windows PowerShell only runs on Windows, PowerShell Core runs on Windows, Mac OS and Linux.
You'll find more information about that in this article: https://www.ghacks.net/2018/01/12/powershell-vs-powershell-core-what-you-need-to-know/

How do I run eclipse remotely using Cygwin?

I'm running on Windows 7 and I want to be able to access the remote linux server at my school to run eclipse and do my programming assignments.
I installed cygwin, and ssh into the server, but whenever I run the "eclipse" command, it says "Eclipse: Cannot open display".
Is there any additional software I need to do, or commands I need to run in order to display the gui from my windows 7 computer?
aside from just running eclipse on my own computer, I want to do it remotely.
thank you
You need to:
Run an X server on your Windows machine; there's an xorg-server package in cygwin, use that (or the independent Xming).
Configure your ssh client to forward X11 traffic to the X server on your windows machine.
Here's a more detailed tutorial on doing this.

Run a program on Mac OS host from Windows running as parallels guest

On a MacBook Pro running Windows 7 in Parallels 7, I need to run a Unix Executable File on the Mac side via a command line invocation on the Windows side. In Windows Explorer, I can use Open on Mac, but I need a way to do this via a batch file or anything else that can be expressed on a command line. I was hoping that Parallels Tools might have a command that can do this, but I can't find anything.
This seems like it should be pretty straightforward, but my searches have turned up nothing.
I also tried creating an alias on the Mac side, which I added to my Applications folder. I was hoping that it would appear in Start > All Programs > Parallels Shared Applications, which might allow me to access it with a batch file. However, I don't see it. I'm not sure what it takes to add new entries to Parallels Shared Applications. Maybe a reboot would do it, but I have not tried that yet.
Thanks for any advice.
It seems like the Platypus app might be able to help with this. It wraps a shell script into a Mac App. Unfortunately I can't get Parallels to provide access to the Platypus generated app the same way it provides access to the other Mac apps.

Install device driver silently on Windows XP

Is there a way to programmatically install device driver silently without cat file and without connecting the device on Windows Xp?
I'm using DriverPackageInstall function from Windows Driver Kit. And I can install driver only if device is attached. In other case I get an error: ERROR_NO_SUCH_DEVINST. But that method works fine with Windows Vista.
Another problem is warning dialog that asks user to continue or stop installation because cat file is missing . It shows on both OSes.
Any ideas?
You're not going to get past the signing prompt, as this is baked pretty far into windows, but there is a tool in the DDK called devinst that works well for device installations.
There's Source Code included with it.
The only way to avoid any UI interaction caused by your driver being unsigned is to hackishly preinstall the driver by modifying the registry directly.
Yes, it can be done. You'd have to modify the ACLs on the HKLM\System\CurrentControlSet\Enum registry key run as SYSTEM (by installing yourself as a service or using Sysinternals psexec -s), and add all the registry keys which Windows device installation would usually add - on your own. This will only work if you can predict precisely what your device's Device Instance ID would be -- e.g. in case of a USB device, the precise port it'd be connected to etc.
This is hacky, but the result would be the device being essentially "preinstalled". It'll be a lot of work, and it'll break on Windows Vista.
Microsoft really wants you to go the WHQL way on Windows XP, sorry :(