Skip to main content

Using Bash on Windows 10

Some quick tips on using Bash in Windows 10, based on my own experience.

First I followed the guide at HowToGeek to install Windows Subsystem on Linux (WSL). I picked the Ubuntu distro to install as I'm more familiar with apt-get.


After that, launch Ubuntu. It's only the shell, no GUI. That's fine for my usage though, I'm using it to batch rename files with regex, and command line programs to process audio for my Japanese learning.

Next I installed packages I needed. But you'll probably see error saying package not found.
The solution: (thanks to a post at SuperUser)
sudo apt update
Then only sudo apt-get install <package>

Packages I use when I process files for Japanese learning:
rename
sox
libsox-fmt-mp3
ffmpeg

I also bumped into an annoying detail when using the Bash shell: the blue is too hard to read! Whoever thought of the default dark blue on black is not thinking about readability at all -_-
The solution: change to a lighter blue. Thank goodness for this post on SuperUser, I changed the color to a lighter blue so I can actually read the text.

Some additional random tips:

1. Launching a bash shell:
either run the Ubuntu
or
at Windows Explorer, type in "bash"
- you'll need to do the blue color change again

2. To go to a path
Replace C:\ disk with /mnt/c
Replace \with /
Or just open Bash shell in Windows Explorer (my preferred method)

Comments

Popular posts from this blog

How To Find Out How Easy A Certain Japanese Text Would Be For You

Are you trying to up your Japanese reading skills? Have a set of electronic reading materials, but don't know which one to start with? One way to rate them is by how easy they would be for you to read, so you can pick the level you're comfortable with. To do that, you'll first need a text list of words you already know, and then use that as an input file to the Japanese Text Frequency Analyzer tool. An easy way to get the list is to use the Morphman plugin in Anki (I'm assuming you're using Anki. Find out how to export the list if you use another SRS/flashcard system). What you'll need: Anki Morphman Anki Plugin cb's Japanese Text Analysis Tool Steps: 1. Ensure your database of known words is up to date by forcing a Morphman Recalc. You can do this by using the Anki tools menu or the default shortcut Ctrl+M. If there are words you already know that are not in Anki, see this section of MorphMan Wiki . To make things easier for m...

Use a game controller for web browsing and more

I'm not a serious gamer, and little did I know that one day I would actually use a wireless gaming controller actively. Most of the time it's not for playing games though - I'm using it as a partial replacement of the keyboard and mouse, by mapping custom commands to the buttons. Shortcuts without even touching the keyboard? Bringing keyboard ninja skills to the next level ;) The wireless controller I use - Logitech F710 It all began when I started experiencing some pain in my wrist from too much mouse use. A friend loaned me a Logitech F710 wireless game controller*, and to my delight, I found that Logitech provides software to map the buttons to keystrokes and the analog sticks to the mouse. Since I use a lot a lot of keyboard shortcuts in my everyday computing, it was a great solution. Now I usually have my hands comfortably on the controller, only leaving it occasionally to type or when I need precision mousing. I even mapped Aero Flip so I could switch between d...

Creating Vocab Flashcards Easily with Firefox/Chrome Yomichan Add-on

Just a quick note on my current settings using Firefox/Chrome Yomichan Add-on (not to be confused with the older Anki Yomichan plugin ), when I'm reading Japanese material I can easily create Anki flashcards that has the sentence, the term I'm learning blanked out in the front (clozed), and audio replay. My Yomichan settings:  (I have the reading field but I don't actually display it in the card; I opted to use furigana on the term itself instead)   Example flashcard: