-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
1,093 additions
and
1,989 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
== Work with good people | ||
|
||
> People don't quit their jobs; they quit their coworkers. |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
...erminal-velocity/_old/set-up-a-terminal/get-unix-linux/get-wsl2-on-windows.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
== Windows WSL2 | ||
|
||
Alright, listen up. You've got a Windows machine and dreams of running Linux without dealing with dual-boot nightmares or spinning up a resource-hogging virtual machine or dual-booting every time. Enter WSL2—your ticket to running Ubuntu seamlessly, like a hacker in a sci-fi flick. Here's how you get it up and running, no fluff, just action. | ||
|
||
=== Enable WSL | ||
|
||
First things first, open PowerShell. No, not PowerPoint, your terminal. Hit `Win` and start typing `powershell`. Then, fire this off: | ||
|
||
[source,bash] | ||
---- | ||
wsl --install | ||
---- | ||
|
||
This command does the heavy lifting: enabling WSL, installing the kernel, and grabbing a default Linux distribution, which should be Ubuntu. You will probably have to restart your computer. | ||
|
||
=== Upgrade to WSL2 | ||
|
||
If Windows decides to hand you WSL1 like it’s 2018, upgrade it manually: | ||
|
||
[source,bash] | ||
---- | ||
wsl --set-default-version 2 | ||
---- | ||
|
||
WSL2 is where the magic happens—full Linux kernel, better performance, and actual compatibility with modern tools. | ||
|
||
=== Install Ubuntu into WSL2 | ||
|
||
If Ubuntu didn't install during Step 1, snag it manually. Open the *Microsoft Store* (I know, gross) and search for "Ubuntu." When it's done, open it from the Start menu or run: | ||
|
||
[source,bash] | ||
---- | ||
wsl -d Ubuntu | ||
---- | ||
|
||
=== Hacker's perspective | ||
|
||
WSL2 isn't just fast—it's a game-changer for anyone running Linux on Windows. It ditches the clunky syscall translation of WSL1 and fires up a real Linux kernel inside a stripped-down virtual machine, delivering near-native speed and full compatibility. It's like hacking two systems at once—Windows and Linux—without rebooting or splitting your workflow. Files, networks, and apps flow seamlessly between the two worlds, letting you script, code, and test with zero friction. Add in GPU acceleration and container support, and WSL2 turns your Windows box into a double agent: a Linux powerhouse hiding in plain sight. |
11 changes: 11 additions & 0 deletions
11
adoc/terminal-velocity/_old/set-up-a-terminal/get-unix-linux/index.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[[get-unix-linux]] | ||
== Get Unix or Linux | ||
|
||
Let's make this short. If you have a Mac you're done. If you have Windows, install WSL2 and you're in the game. That's it. Both of these are mandatory learning for any hacker. Add them to your `TODO` lists now. | ||
|
||
include::whats-your-distro.adoc[] | ||
|
||
include::mac-is-unix.adoc[] | ||
|
||
include::get-wsl2-on-windows.adoc[] | ||
|
4 changes: 2 additions & 2 deletions
4
...-velocity/get-unix-linux/mac-is-unix.adoc → ...-terminal/get-unix-linux/mac-is-unix.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
== Mac _is_ Unix | ||
=== Mac _is_ Unix | ||
|
||
Let's clear something up right now: if you're using a Mac, you're already halfway to the promised land. macOS isn't just Unix-based—it's _**certified Unix**_. That's right, your shiny aluminum rectangle is running on the world's largest Unix distribution. Feel powerful yet? You should. | ||
|
||
macOS traces its lineage back to BSD (Berkeley Software Distribution), one of the OG Unix offshoots. It's like the refined, Ivy-League sibling of Linux. Behind the polished GUI is a terminal waiting to get its hands dirty. Fire it up, and you've got access to all the Unix tools hackers and coders swear by—`ls`, `grep`, `awk`, you name it. It's a full-time Unix machine moonlighting as a consumer-friendly OS. | ||
|
||
And here's the kicker: Apple pays to keep it certified. That means when you're typing commands in your Mac terminal, you're not just running "like" Unix—you're running the real deal. It's the same foundation that powers servers, supercomputers, and everything in between. The same philosophy of small, composable tools, the same file hierarchy, the same command-line DNA. | ||
|
||
=== Hacker's perspective | ||
==== Hacker's perspective | ||
|
||
So why does this Mac stuff matter? Because it means if you've got a Mac, you already own one of the best Unix environments out there. You don't need to dual-boot Linux, spin up a VM, or SSH into a remote box just to get started. It's all right there, preinstalled, waiting for you to discover it. Sure, Linux might feel more hardcore—and we'll get to that—but don't let anyone tell you your Mac can't play with the 1337. It already is. Only a time-wasting moron would challenge that. Unix was a thing way before Linux was a pipe dream and it still is. Torvalds admits he never would have made Linux had he known BSD was a thing. Yet here we are. |
File renamed without changes.
File renamed without changes.
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
64 changes: 64 additions & 0 deletions
64
adoc/terminal-velocity/_old/set-up-a-terminal/install-wslu.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
== Install wslu | ||
|
||
Running Linux on WSL2 is solid, but let's be real—without wslu, it's like bringing a knife to a gunfight. `wslu` is the toolkit you didn't know you needed. It bridges the gap between Linux and Windows, giving you seamless integration to blur the lines between the two systems. Want to open a file in Notepad from WSL? Done. Need a Windows app to handle a Linux file? No problem. This is how you make WSL more than just a sandbox—it becomes a weapon. | ||
|
||
=== What Is wslu? | ||
|
||
`wslu` stands for WSL Utilities, a set of command-line tools designed to connect WSL and Windows. With commands like `wslview`, `wslupath`, and `wslvar`, you get superpowers to interact with the Windows file system, environment variables, and applications—all without leaving the Linux terminal. | ||
|
||
=== Step-by-Step Installation | ||
|
||
Let's get wslu installed so you can stop pretending WSL is just Linux Lite. | ||
|
||
==== 1. Update Your Linux Distro | ||
|
||
First things first: make sure your WSL2 Linux distro is up-to-date. | ||
|
||
[source,bash] | ||
---- | ||
sudo apt update && sudo apt upgrade -y | ||
---- | ||
|
||
==== 2. Add the wslu Repository | ||
|
||
wslu isn't bundled with most distros, so you'll need to add its repository manually: | ||
|
||
[source, bash] | ||
---- | ||
sudo apt install software-properties-common -y | ||
sudo add-apt-repository ppa:wslutilities/wslu | ||
sudo apt update | ||
---- | ||
|
||
=== 3. Install wslu | ||
Now for the good part: | ||
```bash | ||
sudo apt install wslu -y | ||
``` | ||
|
||
=== 4. Verify the Installation | ||
Check that everything's installed and ready: | ||
```bash | ||
wslview --version | ||
``` | ||
You should see the installed version pop up. That's how you know you're in business. | ||
|
||
== What Can You Do with wslu? | ||
Here's how wslu flips the script on your workflow: | ||
- **wslview**: Open files or URLs in Windows apps directly from WSL. Need to edit a config in Notepad? Just run: | ||
```bash | ||
wslview config.txt | ||
``` | ||
- **wslupath**: Translate Linux paths into Windows paths. Perfect for file-sharing across environments. | ||
```bash | ||
wslupath /home/user/file.txt | ||
``` | ||
- **wslvar**: Access Windows environment variables directly from Linux. No more guesswork. | ||
```bash | ||
wslvar USERPROFILE | ||
``` | ||
|
||
== The Power of Integration | ||
Installing wslu makes WSL2 more than just a Linux playground. It turns it into a bridge, a unified environment where you can flow seamlessly between Linux and Windows. It's the missing link, the glue that binds your dual-system setup into a single, unstoppable machine. | ||
|
||
So, what are you waiting for? Install wslu, and turn your WSL2 into the hacker's dream it was meant to be. |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...y/start-using-terminal/learn-alt-tab.adoc → ..._old/set-up-a-terminal/learn-alt-tab.adoc
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.