Pavlin
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    3
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Linux Tools for Windows Users [TOC] ## :hammer_and_wrench: --- Basic tools --- Over the years, Windows became more and more friendly with respect to interaction with Linux environment. Recent implementation of "Windows Subsystem for Linux - version 2" [WSL2](https://docs.microsoft.com/en-us/windows/wsl/install-win10) is a significant step toward this direction and perhaps might be one of the best approach in the near feature. Despite that, there are tools that have became essential over the time and are more than enough for the purpose of effective interaction with Linux. :::success **Advise:** :pencil: - If you are a beginner - install and use [MobaXterm](https://hackmd.io/@pmitev/Linux4WinUsers#MobaXterm). - If you are familiar with Linux in general, perhaps, the most flexible setups is [WSL2](https://hackmd.io/@pmitev/Linux4WinUsers#Windows-Subsystem-for-Linux-WSL2) + X11 server. ::: --- ### ![](https://mobaxterm.mobatek.net/img/moba/xterm_logo.png) [MobaXterm](https://mobaxterm.mobatek.net/) >[color=#907bf7] Enhanced terminal for Windows with X11 server, tabbed SSH client, network tools and much more - it has [everything](https://mobaxterm.mobatek.net/features.html) you need to start. :::spoiler YouTube - MobaXTerm intro {%youtube KRpgYS-eHj8 %} ::: :::spoiler Advantages - All tools in one place, simple installation, ready to go. - **X11 server with most important configurations in the GUI!!!** - Available as portable installation. - One can install additional packages. ::: :::spoiler Disadvantages - Not the best way to transfer large files - WinSCP is one of the right choices. - Tools might get names with `.exe` at the end, that might need fixes to your bash scripts to be able to work. ::: ### ![](https://winscp-static-746341.c.cdn77.org/assets/images/logos/logo@2x.png?v=6336 =48x) [WinSCP](https://winscp.net/eng/index.php) >[color=#907bf7] With WinSCP you can copy file between a local computer and remote servers using FTP, FTPS, SCP, SFTP, WebDAV or S3 file transfer protocols. WinSCP includes also **PuTTY** in the installation. :::spoiler YouTube - How to Use WinSCP FTP Client {%youtube xW0BQIaz7Ic %} ::: :::spoiler Advantages - It simply works and supports all possible variants for file transport to common Linux and other platforms. - Supports [transfer resuming](https://winscp.net/eng/docs/resume) - [Transfer Queue / Background Transfers](https://winscp.net/eng/docs/transfer_queue) ::: ### ![](https://upload.wikimedia.org/wikipedia/commons/b/b6/PuTTY_icon_128px.png =54x) [Putty](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) > Note: The PuTTY program is included in the WinSCP installation Download and install the .msi package. If for some reason you are restricted and cannot use the installer - download the 64-bit executable `putty.exe` and `pageant.exe` and save it for convenience on your Desktop. :::spoiler YouTube - PuTTY Tutorial for beginners {%youtube GMuMXSAC0D4 %} ::: :::spoiler Advantages - Perhaps the best lightweight SSH client around. - Excellent tool for port forwarding. ::: ### ![](https://i.imgur.com/Reqq2hT.png =54x) [GWSL](https://opticos.github.io/gwsl/) >[color=#907bf7] The Feature-Packed, Highly-Integrated Windows 10 XServer GWSL automates the process of running X on top of WSL and over SSH: * It lets you easily run graphical Linux apps on Windows 10. * It lets you run graphical apps located on remote Linux machines. * It provides a simple UI for launching Linux apps, managing them graphically, and creating customized Windows shortcuts for them. * All this at the click of a button! No memorization of commands necessary. Easy! > **Warning:** Make sure you are not running multiple X servers (MobaXterm, VcXsrv, or GWSL) simultaneously, since they will conflict each other. ### ![](https://upload.wikimedia.org/wikipedia/commons/0/01/Windows_Terminal_Logo_256x256.png =50x) [Windows Terminal](https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701) >[color=#907bf7] The Windows Terminal is a modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, **PowerShell**, and **WSL**. If you need `ssh` only, this might be enough + some extras. </br> ## :atom_symbol: --- Advanced tools --- ### ![](https://seeklogo.net/wp-content/uploads/2015/11/microsoft-windows-logo-vector-download.jpg =50x) ![](https://seeklogo.com/images/L/Linux_Tux-logo-DA252F3C21-seeklogo.com.png =35x) Windows Subsystem for Linux [WSL2](https://learn.microsoft.com/en-us/windows/wsl/install) Make sure you get [WSL2](https://docs.microsoft.com/en-us/windows/wsl/install-win10) since the older version 1 is outdated. You get lightweight virtual Linux environment which is really capable in contrast to the old version. **[GWSL](https://opticos.github.io/gwsl/) is designed and works very well with WSL 2 - one of the best combination to have Linux environment running on your Windows computer.** Alternatively, combined with X11 server ( [VcXsrv Windows X Server](https://sourceforge.net/p/vcxsrv/wiki/Home/) or the built-in X11 server from [MobaXterm](https://mobaxterm.mobatek.net/) ) :::spoiler YouTube - WSL 2: Getting started {%youtube _fntjriRe48 %} ::: </br> :::spoiler WSL2 with X11 MobaXterm > You need to set "on-demand" or "didsabled" /be careful/ for the "X11 remote access" or fiddle with `xhost +ip_address`. ![](https://i.imgur.com/uPxYjeU.png) ::: :::spoiler WSL2 and X11 complications (solved with GWSL) The WSL2 virtual machines are running into separate virtual network space and the default DISPLAY environment is not properly setup. The easiest way to get the virtual network adapter IP address (172.19.16.1 in this example) for your instance is via: - `Windows power shell` or `Command Prompt` ``` bash PS C:\> ipconfig.exe Windows IP Configuration ... Ethernet adapter vEthernet (WSL): Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe10::d03e:1243:9d6:b2df%65 IPv4 Address. . . . . . . . . . . : 172.19.16.1 Subnet Mask . . . . . . . . . . . : 255.255.240.0 Default Gateway . . . . . . . . . : ``` - From the WSL2 instance itself ``` bash $ip route default via 172.19.16.1 dev eth0 172.19.16.0/20 dev eth0 proto kernel scope link src 172.19.27.121 ``` Then the correct `DISPLAY` environment to export is: ``` export DISPLAY=172.19.16.1:0.0 ``` ::: ### ![](https://www.virtualbox.org/graphics/vbox_logo2_gradient.png =50x) [VirtualBox](https://www.virtualbox.org/) >[color=#907bf7] VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. As such, one can install fully virtualized Linux environment which gives you the closest Linux experience. Effectively you get access to real Linux environment while sharing the CPUs and reserve RAM on your computer. </br> ## :gear: --- Other tools --- ### ![](https://sourceforge.net/p/vcxsrv/wiki/Home/attachment/x-3d-shadow-50px.png =50x) [VcXsrv Windows X Server](https://sourceforge.net/p/vcxsrv/wiki/Home/) >[color=#907bf7] VcXsrv is an X Server for WinNT. In order to be able to start the graphical (GUI) version of programs (e.g. xstata = X window version of STATA) on Unix servers (e.g. of the bwHPC network) under Windows, you need an X server that is on your local Computer must be installed (e.g. for Putty, Kitty, Smartty or other ssh-forwarting or in Windows 10 as X-Server Host for Linux Subsystem's). :::spoiler YouTube - Installing VcXsrv X Server {%youtube 4SZXbl9KVsw %} ::: </br> **Hint:** use this settings to start the program `"C:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto` :::warning Keep in mind that `-ac` option disables the *access control restrictions*, which is a security concern. ::: :pencil: Opinion: The MobaXterm's build in X11 server is perfectly capable alternative. ### ![](https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Cygwin_logo.svg/240px-Cygwin_logo.svg.png =50x) [Cygwin](https://www.cygwin.com/) >- a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows. >- a DLL (cygwin1.dll) which provides substantial POSIX API functionality. Unless, you need explicitly Cygwin, MobaXterm will be more than an adequate replacement. </br> ## :anchor: --- Related tools --- ### ![](https://www.cendio.com/website/static/img/logo_mono.png =100x) [ThinLinc](https://www.cendio.com/) >[color=#907bf7] ThinLinc is a software that enables organizations to implement a Linux server-based computing (SBC) infrastructure. ThinLinc graphical connection user guide [@UPPMAX](https://www.uppmax.uu.se/support/user-guides/thinlinc-graphical-connection-guide/) </br> ## Contacts: - [Pavlin Mitev](https://katalog.uu.se/profile/?id=N3-1425) - [UPPMAX](https://www.uppmax.uu.se/) - [SNIC AE@UPPMAX - related documentation](/8sqXISVRRquPDSw9o1DizQ) ![](https://snic.se/digitalAssets/603/c_603880-l_1-k_image.png =122x38) ![](https://live.webb.uu.se/digitalAssets/207/c_207717-l_3-k_bg-city.png) ###### tags: `UPPMAX`, `SNIC`, `User practices`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully