MSYS2

MSYS2 is a collection of tools and libraries providing you with an easy-to-use environment for building, installing and running native Windows software.

Download the installer

MSYS2

• Run the installer.
• Enter your desired Installation Folder.
• MSYS2 is ready!
• You are ready to use MSYS2 terminal for the UCRT64 environment.
• It’s time to install some tools. Run the following command:

pacman -S mingw-w64-ucrt-x86_64-gcc

• When it’s complete you can call gcc to verify your installation.

gcc --version

gcc.exe (Rev10, Built by MSYS2 project) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

• To update all packages run the following command:

pacman -Suy

• Pruning the package cache

paccache -r

• Finding a package (for example vim)

pacman -Ss vim

• Installing a package

pacman -S vim

• Uninstalling a package

pacman -U vim

• Finding dependencies of a package

pactree vim

It consists of a command line terminal called mintty, bash, version control systems like git and subversion, tools like tar and awk and even build systems like autotools, all based on a modified version of Cygwin. Despite some of these central parts being based on Cygwin, the main focus of MSYS2 is to provide a build environment for native Windows software and the Cygwin-using parts are kept at a minimum. MSYS2 provides up-to-date native builds for GCC, mingw-w64, CPython, CMake, Meson, OpenSSL, FFmpeg, Rust, Ruby, just to name a few.

The best command line download utility [ aria2 ]

Yes, this is a good idea to drop a post about. What is my personally favourite told to download files on any terminal/command line.
There is no doubt about it always go with aria2, ok there are very rare cases I need to use wget.

aria2 is the best too you can have, it can download everything, you name it (even magnet links faster than any client).
Anyway, we are not here about to talk about downloading any illegal copyrighted torrent files, I’m just saying it can, and does it fast.
I strongly recommend you reading its documentation before you say it’s useless.

Just an example let’s say you want to download a t0rr3nt file. Probably 99% you will end up with an error message, it’s all because you don’t know the command.
Ok here is the right one [the magnet link goes between those “”]:
aria2c –enable-dht=true “magnet:?xt=urn:btih:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”
This will work, but if you ever attempt such things, do not forget about encryption! Encrypt the whole payload using ARC4.

OK, I already crossed the line with the stuff above there are actually totally other reason why I am using it. Just few really common once:

  • HTTP/FTP/SFTP Options
  • HTTP Specific Options
  • FTP/SFTP Specific Options
  • Metalink Specific Options
  • RPC Options
  • URI, MAGNET, TORRENT_FILE, METALINK_FILE
  • Resuming Download
  • Event Hook
  • aria2 is the download utility I am using on command line.
    aria2 On Black Duck Open Hub

    for example, on my mac I have created aria2.conf file under /Users/yourusername/.aria2/aria2.conf and added the following line.
    file-allocation=trunc instead of file-allocation=none.

    You can add many useful things. Soon, I will add a list in my next post.

    Using trunc seemingly allocates disk space very quickly, but what it actually does is that it sets file length metadata in file system, and does not allocate disk space at all. This means that it does not help avoiding fragmentation.

    How to Enable and Disable Root Login in Ubuntu [for those 32 individuals asked this in the last 12 months]

    OK, well, this is not one of those post I’d like to publish, but just counted how many time people asked this question in the last 12 months. I found 32 emails.
    I’ll give you the simplest, permanent UNSAFE solution. Use this if you need after finishing you server installation.DO NOT LEAVE ENABLED ON A LIVE RUNNING SERVER.
    There are options to enable it temporarily, or set and expire time.
    Be safe!

    lnrsoft@server:~$ sudo su
    [sudo] password for lnrsoft: 
    root@server:/home/lnrsoft# sudo passwd root
    New password: 
    Retype new password: 
    passwd: password updated successfully
    root@server:/home/lnrsoft# whoami
    root
    root@server:/home/lnrsoft# 
    

    How to login and connect to NordVPN on Ubuntu Server

    Installing the latest NordVPN by opening the terminal, writing the command below, and following any on-screen instructions:

    sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh)

    Note: If you do not have a curl package, evidenced by the fact that the above does not work, you can alternatively use this command:

    sh <(wget -qO - https://downloads.nordcdn.com/apps/linux/install.sh)

    Additionally, if you receive the following issue:
    Whoops! Permission denied accessing /run/nordvpn/nordvpnd.sock, all you need to do is write the following command:

    sudo usermod -aG nordvpn $USER # and then reboot your device.

    After installing NordVPN Linux Client you might get the following message when you try to login “nordvpn login”:
    Continue in the browser

    server@server:~$ nordvpn login
    Continue in the browser: https://zwyr157wwiu6eior.com/v1/users……

    There is a simple solution:
    nordvpn login –legacy

    server@server:~$ nordvpn login –legacy
    Please enter your login details.
    Email:

    or even:
    nordvpn login –username username –password password