Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
guides:webminidisc [2023/04/12 20:14] – "the the" fixed alonsoguides:webminidisc [2023/04/14 20:03] (current) hien34
Line 102: Line 102:
  
 The Safari web browser is not currently supported. Use Chrome or Edge instead. The Safari web browser is not currently supported. Use Chrome or Edge instead.
 +
 +
 +==== WSL2 on Windows ====
 +
 +For those that need or prefer to live in Windows without installing Zadig's utility, WSL2 is a solution that can work with some extra steps. It can certainly be automated/scripted better if used often. 
 +
 +Commands referred to are entered either in a Windows Adminstrator PowerShell window or Ubuntu/WSL2 terminal as directed.
 +
 +1. Install WSL2 under Windows 10/11.
 +Open a PowerShell prompt under Windows 11 by right-clicking on the Start button and choosing Windows Terminal (Admin). Accept the warning and you'll see the PowerShell window pop up with "Administrator" in the top left.
 +
 +Next, install WSL by typing the following in the PowerShell window:
 +<code>
 +wsl --install
 +</code>
 +Just wait a few minutes and after it's complete, reboot when you're ready.
 +
 +
 +2. Set up your instance of Ubuntu/WSL2.
 +After a reboot, you'll see terminal window that asks you to set a username and password. These are for the instance of Ubuntu running in the WSL, so they don't need to correlate to your Windows login.
 +Update the packages
 +<code>
 +sudo apt update
 +</code>
 +
 +
 +3. Install USB support for WSL2 - this is required for USB devices to be seen within your Ubuntu instance.
 +
 +In Windows: Download the .msi from [[https://github.com/dorssel/usbipd-win/releases |here]] and install it.
 +In Ubuntu/WSL2:
 +<code>
 +sudo apt install linux-tools-generic hwdata
 +sudo update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/*-generic/usbip 20
 +</code>
 +
 +
 +4. Verify your device can be seen in Windows and link it to Ubuntu/WSL2.
 +In Windows:
 +<code>
 +usbipd wsl list
 +</code>
 +
 +Note the BUSID (in this case, it's 2-2)
 +<code>
 +PS C:\Users\YourUserID> usbipd wsl list
 +BUSID  VID:PID    DEVICE                                                        STATE
 +1-3    8087:0029  Intel(R) Wireless Bluetooth(R)                                Not attached
 +1-4    0c45:672c  Integrated Webcam                                             Not attached
 +2-1    046d:c332  USB Input Device                                              Not attached
 +2-2    054c:00c9  Net MD Walkman                                                Not attached
 +</code>
 +
 +Attach it in Windows (replace the busid parameter with yours, in the example above it is 2-2):
 +<code>
 +usbipd wsl attach --busid <busid>
 +</code>
 +
 +Now see if it's attached in Ubuntu/WSL.
 +<code>
 +user@PCname:~$ lsusb
 +Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 +Bus 001 Device 002: ID 054c:00c9 Sony Corp. Net MD
 +Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 +</code>
 +
 +
 +5. Since it's WSL2, we need to run udev so we can manage the device (important for the next step).
 +<code>
 +sudo /lib/systemd/systemd-udevd --daemon
 +</code>
 +
 +
 +6. Follow the Linux instructions listed [[guides:webminidisc|above]]. Note your ID output from "lsusb" (in this case, 054c:00c9)
 +
 +7. Install a chromium-based browser of your choice (I used Google Chrome) and then navigate to [[https://web.minidisc.wiki/|Web Minidisc Pro]].
 +
 +8. Push Connect and select your device!
 +
 +Additional efficiencies and automations may be listed later. 
 +
 +After a reboot, reload you will have to repeat the "attach" (step 4) and udev (step 5) steps above and finally, 
 +<code>
 +sudo udevadm trigger
 +</code>
 +
  
 ===== Launching Web MiniDisc Pro ===== ===== Launching Web MiniDisc Pro =====
  • guides/webminidisc.txt
  • Last modified: 13 months ago
  • by hien34