Category Archives: Linux

curl without password in command line

https://stackoverflow.com/questions/20803339/basic-authorization-command-for-curl Another way is to get Base64 encoded token of “username:password” from any online website like – https://www.base64encode.org/ and pass it as Authorization header of curl as follows: Here, dXNlcm5hbWU6cGFzc3dvcmQ= is Base64 encoded token of username:password.

Kubernetes #1 – Basic install

This is a first attempt to create a clustered/cloud application on virtual machines running on bare metal(s). Host machine may be any Linux distribution which supports KVM. I used Linux Mint 18 in this case as KVM host. You can use more physical machines with oVirt or other virtualization technology. On virtual machines (VMs) was… Read More: Kubernetes #1 – Basic install »

Tricks in command line

Serve current directory tree at http://$HOSTNAME:8000/ $ python -m SimpleHTTPServer Currently mounted filesystems in nice layout $ mount | column -t Get your external IP address / host / user agent / port from http://ifconfig.me/ $ curl ifconfig.meor$ curl ifconfig.me/ip$ curl ifconfig.me/host$ curl ifconfig.me/ua$ curl ifconfig.me/port Execute a command at one, given time $ echo… Read More: Tricks in command line »

Save file to your Nextcloud from bash

Sometimes you need to upload from command line to you Nextcloud storage. You can do it with a simple curl command. At first you have to create a shared directory in your Nextcloud with “Allow upload and editing” share option. You will get a share link for example: https://nextcloud.myserver.com/index.php/s/gz8BS7mtxGbwkQB The string “gz8BS7mtxGbwkQB” will be used… Read More: Save file to your Nextcloud from bash »

How to make password asterisks visible in the terminal window at sudo

When you run a command using sudo in Linux, the Terminal prompts you to type in your password with no visual feedback as you type. We’ll show a quick tweak that will show asterisks (*) when you type in your password in the Terminal. Just run visudo and set the row Defaults        env_reset to Defaults       … Read More: How to make password asterisks visible in the terminal window… »