Posty

Securely erasing a storage device

Shred command-line utility overwrites data in a file and in a whole device

Set all bits to zero after the last iteration by adding the option -z

 sudo shred -v -n1 -z /dev/sdX
After this is necessary to create partition                       sudo apt-get install gparted                      sudo gparted

How to create bootable USB Media from ISO in Ubuntu Linux

1. Startup Disk Creator is a built-in application in Ubuntu Linux

2.  Convert iso file into bootable usb media  using ddrescue


install ddrescue
sudo apt update
                sudo apt install gddrescue

check block device name                sudo fdisk -l
                eg.  /dev/sdf

enter the command as follows:                sudo ddrescue Downloads/openSUSE-Leap-15.0-DVD-x86_64.iso /dev/sdf --force -D





Create partition and filesystem

1.  List all of the drive.

                     sudo fdisk -l

2.              sudo fdisk  /dev/sdc1

admin@ubuntu:~$ sudo fdisk /dev/sdc1

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x83851831.

Command (m for help):


3.             press "p"  show info

Command (m for help): p
Disk /dev/sdc: 512 MiB, 536870912 bytes, 1048576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x83851831


4.   press "n"   add new partition with defaults

Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-1048575, de…

How to remove vmware-player

1. First command show you what command you have vmware-installer -l2. Second command remove vmware-player vmware-installer -u PRODUCT-NAME

Install Oracle Java(TM) SE Runtime Environment (build 1.8.0_111-b14)

1. Remove OpenJdk
sudo apt-get purge openjdk*

2. Add repository from terminal
sudo add-apt-repository ppa:webupd8team/java

3. Update list packages
sudo apt-get update

4. Install package
sudo apt-get install oracle-java8-installer

5. Enjoy java version (1.8.0_111-b14)
java - version

Failed to find /lib/modules/3.13.0-39-generic/build/include/linux/version.h vmware-player on ubuntu 14.04

Problem with built vmware modules:

1. sudo apt-get install build-essential linux-headers-$(uname -r)

2. sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

ubuntu 13.04 and problem with installation vmware-tools-distrib

first of all install linux-headers
sudo apt-get install linux-headers-$|(uname -r)
before installing vmware tools on ubuntu 13.04 run following command
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h