Wednesday, 23 April 2025

Installing Minikube on Ubuntu 22.04 LTS

 Step 1. Installing Docker



# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

 

 Step 2. Updating system packages and installing dependencies

 

$ sudo apt update
$ sudo apt install -y curl wget apt-transport-https
 

 Step 3. Installing Minikube

 
$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
$ sudo install minikube-linux-amd64 /usr/local/bin/minikube
 
root@ubuntu-1:~# minikube version
minikube version: v1.35.0
commit: dd5d320e41b5451cdf3c01891bc4e13d189586ed-dirty 
  

Step 4. Installing kubectl utility

$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
$ chmod +x kubectl
$ sudo mv kubectl /usr/local/bin/
 
root@ubuntu-1:~# minikube version
minikube version: v1.35.0
commit: dd5d320e41b5451cdf3c01891bc4e13d189586ed-dirty
root@ubuntu-1:~# kubectl version -o yaml
clientVersion:
buildDate: "2024-08-13T07:37:34Z"
compiler: gc
gitCommit: 9edcffcde5595e8a5b1a35f88c421764e575afce
gitTreeState: clean
gitVersion: v1.31.0
goVersion: go1.22.5
major: "1"
minor: "31"
platform: linux/amd64
kustomizeVersion: v5.4.2
serverVersion:
buildDate: "2024-12-11T17:59:15Z"
compiler: gc
gitCommit: 70d3cc986aa8221cd1dfb1121852688902d3bf53
gitTreeState: clean
gitVersion: v1.32.0
goVersion: go1.23.3
major: "1"
minor: "32"
platform: linux/amd64
 

 Step 5. Starting Minikube

 
minikube start --driver=docker 
>>fail<< 
 
$ minikube start --driver=docker --force
 

 Step 6. Verifying Installation

root@ubuntu-1:~# minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
 
root@ubuntu-1:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane 19m v1.32.0
 
root@ubuntu-1:~# kubectl cluster-info
Kubernetes control plane is running at https://192.168.49.2:8443
CoreDNS is running at https://192.168.49.2:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy 
 

Sunday, 13 April 2025

 Create a Windows 10 /11 Bootable USB on Linux

source: https://linuxiac.com/how-to-create-a-windows-bootable-usb-on-linux/

checked on ArchLinux

1 lsblk  eg. /dev/sdc

2  sudo umount /dev/sdc*

3 yay -S woeusb

4 sudo woeusb --device Win11_24H2_English_x64.iso /dev/sdc

 

Saturday, 10 September 2022

How to update snap-store


1. ps aux | grep snap


  Find <process id> for the snap-store process 

  ... <process id> ... ... /snap/snap-store/???/usr/bin/snap-store
 
2. kill -9 <snap_store_proces_id>
 
3. sudo snap refresh snap-store
snap-store 41.3-63-gbd822db from Canonical✓ refreshed
 
 

Saturday, 16 July 2022

How To Install Zoom Client on Ubuntu 22.04 LTS

  1. sudo apt -y install wget
  2. wget https://zoom.us/client/latest/zoom_amd64.deb
  3. sudo apt install ./zoom_amd64.deb

Friday, 10 June 2022

How to Add a Directory to PATH in Linux and run burp - BurpSuiteCommunity



1. Check what directories are in your $PATH

echo $PATH

/opt/BurpSuiteCommunity/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin

2. Add directory to PATH temporarly 

 export PATH="/opt/BurpSuiteCommunity/bin:$PATH"


3. Add directory to PATH permanently   

vim ~/.bashrc

export PATH="/opt/BurpSuiteCommunity:$PATH"

4. Execute command:

    cd /opt/BurpSuiteCommunity/

    sudo ln -s /opt/BurpSuiteCommunity/BurpSuiteCommunity burp

5. Run command:

    burp

 

Thursday, 20 January 2022

Problem with external monitor via HDMI or matrix on screen?

 Try rollback to previous kernel 5.11

and execute command 

sudo ubuntu-drivers autoinstall

should be ok

Friday, 17 December 2021

Purge/uninstall Minecraft from Ubuntu

 

Example for Minecraft:

  • Find out the package name:

    $ apt-cache search minecraft
    
    
  • Purge the package and its dependencies:

    $ sudo apt-get autoremove --purge minecraft
    [...some output...]
    

Thursday, 2 September 2021

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset),

 

apt-get install multipath-tools
 
manually
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8 
locale-gen en_US.UTF-8
dpkg-reconfigure locales 
or
edit /etc/profile
add this lines to this file
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8 
 
 

can't set the locale; make sure $LC_* and $LANG are correct

 /etc/locale.gen

uncoment  

  en_GB.UTF-8
  en_US.UTF-8


run locale-gen as root

 

 

Monday, 14 June 2021

Virtualbox: two network interfaces

 I had to add the following lines in Debian virtual machine's /etc/network/interfaces file:

allow-hotplug eth1
iface eth1 inet dhcp

The second line instructs the interface to obtain an IP via DHCP. The first line loads the interface at boot time.

To apply the changes to a running system, invoke:

ifup eth1

The name for the eth1 interface may vary, use ifconfig -a to list all available interfaces.

EDIT: full /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug eth1
iface eth1 inet dhcp

Sunday, 25 April 2021

Uninstall flatpak



1. sudo apt install flatpak 

2. flatpak uninstall --all 

3. sudo apt purge --autoremove flatpak

4. Check directory /var/lib/flatpak should be everything removed.

Monday, 22 February 2021

Ubuntu 20.04 problem with headphone?

 

Step 1. pulseaudio --kill
Step 2. pulseaudio --start
Step 3. Settings->Sound->Output devices->Headphones

Thursday, 18 February 2021

How to burn a Windows .iso to a USB device in Ubuntu?

 Step 1.   Download Windows10

https://www.microsoft.com/pl-pl/software-download/windows10ISO


Step 2.   Check where is mounted your usb stick.

sudo    fdisk -l


Step 3. Run command:

sudo dd bs=4M if=[path to windows iso] of=/dev/sd[that 1 letter]

 


Tuesday, 15 December 2020

Securely erasing storage device

 Shred - overwrite data on a whole device with random bits.

1. Identify the name of the device

        fdisk -l     

 

Disk /dev/sdc: 931,53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: SAMSUNG HD103SJ
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes 


 
2.  Execute command::
                 
    sudo shred -v -n1 -z /dev/sdX
 
    -v flag is verbose and will print  the current progress
    -n1 overwrite blocks on the device "n1" times
    -z set all bits to zero after the last iteration
 
 
 ....
shred: /dev/sdc: pass 2/2 (000000)...920GiB/932GiB 98%
shred: /dev/sdc: pass 2/2 (000000)...921GiB/932GiB 98%
shred: /dev/sdc: pass 2/2 (000000)...922GiB/932GiB 98%
shred: /dev/sdc: pass 2/2 (000000)...923GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...924GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...925GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...926GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...927GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...928GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...929GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...930GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...931GiB/932GiB 99%
shred: /dev/sdc: pass 2/2 (000000)...932GiB/932GiB 100%


Thursday, 25 July 2019

Thursday, 21 February 2019

How convert mkv to mp4

  •  convert an input video file into a MKV file using VP8 encoding with VORBIS audio encoding
           ffmpeg -i input_video.avi -f matroska -vcodec vp8 -acodec libvorbis output_video.mkv

  • convert a video into a video using VP9 for video encoding and OPUS as audio encoding
           ffmpeg -i input_video.avi -f matroska -vcodec vp8 -acodec aac output_video.mkv

Friday, 8 February 2019

How enable ssh on ubuntu

To enable SSH:

sudo apt-get install openssh-server
After instalation the SSH service should be started automatically. You can start, stop or restart the service manually:

sudo service ssh start              (stop|restart)
To edit settings:

To change the port, root login permission, you have to edit the /etc/ssh/sshd_config file via:

sudo nano /etc/ssh/sshd_config

Remove # from the line 13.
9 # OpenSSH is to specify options with their default value where
10 # possible, but leave them commented.  Uncommented options override the
11 # default value.
12 
13 Port 22
14 #AddressFamily any
15 #ListenAddress 0.0.0.0
16 #ListenAddress ::

Saturday, 2 February 2019

Install MySQL Server on Ubuntu


  1. Install MySQL: 
    • sudo apt-get update 
    • sudo apt-get install mysql-server
  2. Start the ubuntu terminal
    • sudo mysql -u root -p
  3. Create a database
    • create database food
  4. Start the ubuntu terminal
    • sudo mysql -u root food -p 

Wednesday, 23 January 2019

Create a bootable USB stick on ubuntu

  1. Use the search field in Ubuntu "Startup Disk Creator"
  2. Select Startup Disk Creator
  3. Choose Source disc "some.iso" and Disk to Use "USB stick"

Installing Minikube on Ubuntu 22.04 LTS