Category Archives: Debian

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… »

How to run a command or script after running apt-get command on a Debian or Ubuntu Linux

How do I run custom command after ‘apt-get upgrade‘ or ‘apt-get dist-upgrade‘ on a Debian or Ubuntu Linux based system? How do I hook a script to apt-get command on my Ubuntu Linux server? You can configure the apt-get command using /etc/apt/apt.conf file or place configuration in a special directory at /etc/apt/apt.conf.d/. More in nixCraft.… Read More: How to run a command or script after running apt-get… »