Home

Most Precious Things In This Planet Are Free - Sunshine, Air, Water, FOSS

Dear viewers

FOSS by Saravanan S

Telegram Group Link

https://telegram.me/joinchat/AnsbhBvGI91DzuucB8jgVQ

---

Most Precious Things

In This Planet

Are Free -

---

Sunshine

Air

Water

FOSS

https://sites.google.com/site/unityindiversity99/

---

---

Dear Members

Above Website Content,

I Was Updating

For Many Years

Based on The

Doubt Asked to Me,

Related to FOSS

By Those Who

Are Interested in FOSS

And Logically Around Me.

---

Now I Don't Find

Much Time To

Update it Frequently.

---

Hence, I Thought of Having

This Telegram Group Also,

So That Who Are

Interested in FOSS,

And Logically Around Me,

Can Help Everyone

---

Feel Free To Share

Your Doubts / Help

Related to FOSS.

---

Usually Contents

Will be Deleted

After Few Days

To Maintain

Readability in

The Group, Even

When it is a

Valuable Content.

---

Those Who Are in

Need of The Content

Take Backup of

Those Frequently.

---

Only Voluntary Content,

Please

---

FAQ of Ubuntu GNOME 16.04 (Expected to be the Default Ubuntu 18.04)

To Activate Activities Overview Mode in Ubuntu GNOME

Press Super (Windows) Key

or

Click Activities Button (in Top Left Corner of Screen)

or

Take Mouse Pointer to Top-Left Corner of Screen

All Running Applications in the Current Workspace Are Shown

All Workspaces Preview Are Shown in the Right Side

Favourite Application Launchers Are Shown in the Left Side Dash

After That, Can Simply Type to Search Installed Applications Using Search Bar

---

To Cancel (Deactivate) Activities Overview Mode in Ubuntu GNOME

Press Super (Windows) Key

or

Press Activities Button (in Top Left Corner of Screen)

or

Take Mouse Pointer to Top-Left Corner of Screen

or

Press Esc Key

---

To Switch Between Workspaces in Ubuntu GNOME

Ctrl + Alt + Up / Down (Arrow Key)

---

To Switch Between Applications of All Workspaces in Ubuntu GNOME

Alt + Tab

---

To Maximize Current Application Window in Ubuntu GNOME

Ctrl + Super (Windows) Key + Up (Arrow Key)

---

Some Tray Icons Are Missing in Ubuntu GNOME

Example: Tray Icon of Gnome Encfs Manager

Take Your Mouse Pointer to Bottom Left Corner & See

To Run Kubuntu 16.04 Faster in Low Resource Systems (or in a Gamer System)

Start > Computer > System Settings >

Display and Monitor > Compositor >

1) Enable compositor on startup > Uncheck

2) Animation speed > Instant

3) Scale method > Crisp

Apply > Close > Restart computer

Embrace Open Source Philosophy, Kalam Tells Scientists, Researchers - 17 Dec 2010

The concept of Free Software,

wherein knowledge is created by the community for the community,

without being driven by commercial interests,

must be extended to research to solve problems in

health care, agriculture, energy and safe drinking water,

the former President A.P.J. Abdul Kalam, said.

http://www.thehindu.com/news/cities/Hyderabad/article956890.ece

India Mandates Use of Open Source Software in Government

http://deity.gov.in/sites/upload_files/dit/files/policy_on_adoption_of_oss.pdf

http://www.onenewspage.com/n/Internet/754y8rxbu/India-wants-to-use-more-open-source-software.htm

http://thenextweb.com/in/2015/03/30/india-wants-to-use-more-open-source-software-to-build-e-governance-apps/

http://www.pcworld.com/article/2903512/india-backs-open-source-software-for-egovernance-projects.html

FAQ: If Laptop WiFi Not Compatible / Working With Ubuntu Linux

Purchase From any Retailer Any USB WiFi Dongle by Checking Compatibility With Ubuntu Linux

If Purchasing Online, Confirm Compatibility Based on Review

FAQ: Will my new laptop going to purchase be compatible with latest Ubuntu Linux

Purchase it from retailer, who agrees to install latest Ubuntu LTS Linux (may be along with other OS)

or

If Purchasing Online, purchase a laptop which comes pre-installed with Ubuntu (or Linux)

or Confirm Compatibility based on review

FAQ: Linux (Commands / Applications) in Android Mobile OS

UserLAnd - Linux in non-rooted Android

{

Select VNC (for GUI) or SSH (for CUI) while installing.

Install bVNC (VNC Client Android app), if GUI is needed.

Install ConnectBot (SSH Client Android app), if CUI is enough.

---

In Android 7.0, installed R (with bVNC) (Installing basic Debian also).

On 21.Dec.2018, R working, including graph / plot.

---

In Android 7.0, installed Ubuntu (with bVNC)

(Installs core Terminal like Ubuntu)

(sudo apt-get update works)

(May support apt-get install lxde-core, etc...)

---

Following Available

OS - Arch, Debian, Kali, Ubuntu

Browser - Firefox

Game - Adventure, Zork

Math - Gnuplot, Octave, R

Office - Gimp, Libreoffice

Vcs - Git

---

Termux - Alternate to UserLAnd, but only Terminal like

GNURoot Debian has been stopped maintaining as on 20.Dec.2018

}

(Creating 2 Partitions in USB Drive & ) Making Ubuntu Bootable USB Drive Using UNetbootin

Note: It is Possible to Create bootable disk in a Single fat32 Partition, but virus may disturb the bootable files if the usb drive is used in virus infected computer

Creating 2 Partition(s) in USB Drive

Step 1:

Dash > GParted > Right Top Corner, Select usb drive (mostly /dev/sdb)

If any partition already mounted > Right click over them > Unmount

Device > Create Partition Table > Apply

Single Unallocated Space Will Be Shown

Step 2:

Right click over unallocated space > New > Dialog box similar to below appears >

Free Space Following (MiB) > 2048 >

Filesystem > ntfs >

Label > DATA > Add >

Edit > Apply All Operations

Step 3:

Right click over unallocated space of size 2048 MiB > New > Dialog box similar to below appears >

Filesystem > fat32 >

Label > UBUNTU > Add >

Edit > Apply All Operations

Close GParted

Safely Remove / Eject the usb drive

Step 4:

Right click over the newly created Ubuntu partition > Manage Flags > boot > hidden > Close

Making 2 Partitions USB Drive Ubuntu Bootable

Install unetbootin, if not already installed

( for latest versions

Download unetbootin (binary) softwares from below link(s)

https://github.com/unetbootin/unetbootin/releases/

https://unetbootin.github.io/

Ubuntu users after downloading it in $HOME folder, give below commands in Terminal

chmod +x unetbootin-linux64-661.bin

sudo ./unetbootin-linux64-661.bin

)

Step 1:

Plug in the usb drive freshly

Dash > Disks > Select usb drive from left pane >

Select Ubuntu (2nd) Partition from right pane >

Mount (play button like) selected partition > Close Disks

Step 2:

Let us assume that Ubuntu .iso file is copied in $HOME folder

Download unetbootin (binary) softwares from below link(s)

https://github.com/unetbootin/unetbootin/releases/

https://unetbootin.github.io/

Ubuntu users after downloading it in $HOME folder, give below commands in Terminal

chmod +x unetbootin-linux64-661.bin

sudo ./unetbootin-linux64-661.bin

Type Password When it Asks > Disk Image > Select Ubuntu .iso >

Select usb disk listed under Disk to use section >

OK > Wait for few minutes (may take much time at 55%) >

Completed successfully message will appear in another few seconds

Unmount Ubuntu Partition > Safely Remove usb drive

Note:

To Make Ubuntu Bootable usb Disk From Windows (Use single partitioned usb drive here. 2 partitions usb drives supported only in Ubuntu)

Have Ubuntu .iso file in a folder in Windows

Download unetbootin (binary) softwares from below link(s)

https://github.com/unetbootin/unetbootin/releases/

https://unetbootin.github.io/

Ubuntu users after downloading it in $HOME folder, give below commands in Terminal

chmod +x unetbootin-linux64-661.bin

sudo ./unetbootin-linux64-661.bin

Install it & make your usb drive bootable

--------------------------

Boot disk created using older Ubuntu / Windows may show gfxboot.c32:not a valid COM32R image) - Solution

When the below prompt occurs

boot:

Press Tab

Options

live, live install, etc...

Appears

Type

live

and Press Enter

If UEFI mode Windows already installed, settings to enter into BIOS

Win8 > Desktop > Windows key + C > Settings >

Change PC Settings > General > Advanced Startup > Restart now >

Windows 8 will restart > "Choose an option" screen appears >

UEFI Firmware Settings > Tools and settings > Advance options > Prompt to restart and change settings > Restart

Win8.1 > Desktop > Move cursor to right top corner > Settings >

Change PC Settings > Update and recovery > Recovery > Advanced Startup > Restart now >

Windows 8 will restart > "Choose an option" screen appears > Troubleshoot > Advanced options >

UEFI Firmware Settings > Restart

Win10 > > Start > Settings >

Update and Security > Recovery > Advanced Startup > Restart now >

Windows 10 will restart > "Choose an option" screen appears > Troubleshoot > Advanced options >

UEFI Firmware Settings > Restart

Now enter into bios using the keys displayed in the screen or use any of the keys given in the next paragraph

Press any of the below keys repeatedly / immediately after switching on laptop to enter into BIOS

Del

F1

Fn+F1

F2

Fn + F2

Fn + Esc

Esc

Esc, F10

F10

F11

F12

Ctrl+Alt+F3

Ctrl+Alt+Ins

Ctrl + Alt + Enter

Ctrl+Alt+Esc

Ctrl+Alt+Esc, F1

Tab

Separate button at the left side (Lenovo)

Press any of the below keys repeatedly / immediately to select a boot device

Esc (In some HP, HCL), F9 (In some HP)

F2 > Exit > Select USB device to boot

F12

Fn + F12

Assist button at the top (Sony)

Del

To identify original OEM Windows Product key, etc...

Do this only if you have original Windows already installed

Download latest WinKeyFinder from the below link.

Run it & note down your original

Windows Product Key

Prouduct ID &

Windows Version

Use the details while installing Windows once again

Super GRUB2 Disk (SG2D)

Version 2.02s9 Released on 07.May.2017

A live cd

that helps to boot into

nearly any Operating System,

when not able to boot

by normal means.

Super GRUB2 Disk (SG2D) Helps To Boot Bootable ISOs kept in hard disk

(in /boot-isos/ or /boot/boot-isos/ folder)

---

To Create Bootable USB Disk of Super GRUB2 Disk

Download the .iso to $HOME folder from the below link

http://www.supergrubdisk.org/category/download/supergrub2diskdownload/super-grub2-disk-stable/

Example

super_grub2_disk_hybrid_2.02s9.iso

Plug an USB drive

Use Disks (software) & find out the device name of USB disk.

Example

/dev/sdb

Run the below 2 commands in Terminal

(Note: All usb disk content will be erased)

sudo dd if=$HOME/super_grub2_disk_hybrid_2.02s9.iso of=/dev/sdb

sudo sync

---

To Use the Unused Portion of Created Bootable USB Disk of Super GRUB2 Disk for Other Purposes

Plug the bootable USB Super GRUB2 Disk

View Through GParted

3 small hidded partitions can be seen and

Remaining space will be anallocated.

Create NTFS partition in the unallocated space with LABEL

Step A00:

To Mount Hibernated (or Improper Shutdown) Not Booting Windows Partitions From Ubuntu (Automount option also available)

(This procedure checked in Ubuntu 18.04)

Let us assume that the Windows Partition is

Labeled W (Automount not needed) and

Data Partition is Labeled D (Automount needed)

Disks > Select the Windows NTFS Partition >

Additional partition options (Gear) Icon > Edit Mount Options >

User Session Defaults > OFF >

Mount at system startup (Check if it is for D labeled partition and Decheck if it is W labeled partition) >

Show in user interface > Check >

Replace

nosuid,nodev,nofail,x-gvfs-show

With

nosuid,nodev,nofail,x-gvfs-show,remove_hiberfile

(Note: at the end added ,remove_hiberfile) >

Identify As > Label = D or Label = W >

OK > Restart Computer

D Partition will get Automounted

W Partition can be mounted From Files (Nautilus)

Note:

This Actually Removes the Windows hibernation file hiberfil.sys, if any exists, Which is Disabling the Mounting

Alternative Temporary Way Instead of Above:

Open > Disks >

Identify the partition number like /dev/sda1, /dev/sda2, etc... >

Run the below command in Terminal (Replace /dev/sda2 with yours)

sudo ntfsfix /dev/sda2

Note: Change /dev/sda2 based on your Linux partition

Steps A01-A07

Hard Disk Partitioning

These Steps Not Needed If Already Partitioned Once & Installed Any Version of Ubuntu

Step A01: Disable BIOS Secure Boot

Step A02: Enable BIOS Legacy / CSM (Rarely Some Laptops Like HP 15-d008tu Have No BIOS Legacy)

Step A03: If (Windows Already Installed & Working )

Prepare W Partition, Off Hibernate & Identify Whether HDD is as MSDOS (MBR) or GPT (GUID Partition Table)

Enter into Windows > Right click My Computer > Manage > Disk Management >

At the bottom right, all partitions are shown diagrammatically as rectangles.

Delete all partitions next to C drive in its right side

Label the C drive as W

If more than 50,000 MB already allotted to Windows, right click over W partition and select shrink to reduce to the extent possible

(Note: 100000 May Be Used Instead of 50000, if 1TB or Greater Capacity HDD is Used)

(

Note:

Windows C drive can be shrinked more than 50% following procedure given in the below link

like paging off, defrag, system protection off, ....)

http://www.markschabacker.com/blog/2014/08/22/win-partition-shrink/

)

Windows key + x > Command Prompt (Admin) > Yes >

Type > powercfg hibernate off > Press enter > Restart Windows

Boot from Ubuntu bootable usb drive

Select Try Ubuntu

Ubuntu will run in live mode

Select Dash > GParted Partition Editor >

View > Device Information >

Displayed content has the line

"Partition table: gpt"

or

"Partition table: msdos"

Step A04: If (Windows Already Installed & Working) & If HDD is as MSDOS (Found in Step A03)

(Do Either Step-A04 or A05 or A06 or A07)

Boot from Ubuntu bootable usb drive

Select Try Ubuntu

Ubuntu will run in live mode

Select Dash > GParted Partition Editor >

Manage / Create Partitions as Below

?GB - NTFS - W Label (Windows already installed. Don't disturb this & partitions before this)

Extended Partition - Covering All Below Space & All Below Are Logical Partitions Inside This Extended Partition

50GB - EXT4 (for Linux / - can be 100GB in a 1TB or bigger disk)

20GB - LINUX_SWAP (Ubuntu automatically use it as swap partition) - double the size of RAM or 20GB whichever is bigger

Remaining - NTFS - D Label (to keep & access data from Windows & Ubuntu)

Go To Step-B02 (Legacy mode Ubuntu Installation)

Step A05: If (Windows Already Installed & Working) & If HDD is as GPT (Found in Step A03)

(Do Either Step-A04 or A05 or A06 or A07)

Boot from Ubuntu bootable usb drive

Select Try Ubuntu

Ubuntu will run in live mode

Select Dash > GParted Partition Editor >

Manage / Create Partitions as Below

256MB - FAT32 - BOOT Flag - fat32

(

If Above Already Existing, Don't Delete

UEFI mode Ubuntu automatically use it as EFI Partition along with Windows EFI

After UEFI mode Ubuntu Installation, in bios have to change priority to Ubuntu UEFI instead of Windows UEFI

)

128MB - UNFORMATTED - BIOS_GRUB Flag - (UEFI mode Ubuntu automatically use it as bios partition - If Already Exists, Delete & Recreate)

50GB - NTFS - W Label (for Windows - can be 100GB in a 1TB or bigger disk)

50GB - EXT4 (for Linux / - can be 100GB in a 1TB or bigger disk)

20GB - LINUX_SWAP (Ubuntu automatically use it as swap partition) - double the size of RAM or 20GB whichever is bigger

Remaining - NTFS - D Label (to keep & access data from Windows & Ubuntu)

Go To Step-B03 (UEFI mode Ubuntu Installation)

Step A06: If (Windows Not Installed Already / Not Working State) & Have (Bios Legacy) Support

(Do Either Step-A04 or A05 or A06 or A07)

Prepare HDD as MSDOS (MBR) and Partitions as Below

Boot from Ubuntu bootable usb drive

Select Try Ubuntu

Ubuntu will run in live mode

Select Dash > GParted Partition Editor >

Device > Create Partition Table > MSDOS > Apply

All the partitions will get deleted

Create Partitions as Below

50GB - NTFS - W Label (for Windows - can be 100GB in a 1TB or bigger disk)

Extended Partition - Covering All Below Space & All Below Are Logical Partitions Inside This Extended Partition

50GB - EXT4 (for Linux / - can be 100GB in a 1TB or bigger disk)

20GB - LINUX_SWAP (Ubuntu automatically use it as swap partition) - double the size of RAM or 20GB whichever is bigger

Remaining - NTFS - D Label (to keep & access data from Windows & Ubuntu)

Go To Step-B02 (Legacy mode Ubuntu Installation)

Step A07: If (Windows Not Installed Already / Not Working) & Have Bios UEFI Only (No Bios Legacy Support)

(Do Either Step-A04 or A05 or A06 or A07)

Prepare HDD as GPT and Partitions as Below

Boot from Ubuntu bootable usb drive

Select Try Ubuntu

Ubuntu will run in live mode

Select Dash > GParted Partition Editor >

Device > Create Partition Table > GPT > Apply

All the partitions will get deleted

Create Partitions as Below

256MB - FAT32 - BOOT Flag - fat32 - (UEFI mode Ubuntu automatically use it as EFI Partition)

128MB - UNFORMATTED - BIOS_GRUB Flag - (UEFI mode Ubuntu automatically use it as bios partition)

50GB - NTFS - W Label (for Windows - can be 100GB in a 1TB or bigger disk)

50GB - EXT4 (for Linux / - can be 100GB in a 1TB or bigger disk)

20GB - LINUX_SWAP (Ubuntu automatically use it as swap partition) - double the size of RAM or 20GB whichever is bigger

Remaining - NTFS - D Label (to keep & access data from Windows & Ubuntu)

Go To Step-B03 (UEFI mode Ubuntu Installation)

Steps B01-B10

Ubuntu Installation

Step B01: Checking compatibility of the Ubuntu version you have with your laptop before installing

Boot from Ubuntu bootable pen drive

Select Try Ubuntu

Work for few minutes to check compatibility

Shut down the computer.

Step B02: Legacy mode Ubuntu Installation (Do Either Step-B02 or B03)

Disconnect network cable from computer, if connected

Boot from Ubuntu bootable pen drive or CD

Click Install Ubuntu

Click simply Continue for any dialog box that appears, other than the ones shown below

Step B03: UEFI mode Ubuntu Installation (Do Either Step-B02 or B03)

Disconnect network cable from computer, if connected

Boot from Ubuntu bootable pen drive or CD

Click simply Continue for any dialog box that appears, other than the ones shown belo

Select Install Ubuntu

Step B04: Installation type dialog box appears

Select "Something else" radio button

Click Continue

Step B05: Hard Disk Partitions Display

Select /dev/sda in Device for boot loader installation

Click at ext4 partition and click Change....

Step B06: Edit a Partition Dialog Box Appears

Select Use as ext4 journaling file system

Select Format the partition

Select / as mount point.

Don't erase content of New partition size

Click Ok

This Edit a partition dialog box closes

Click Install Now

Note: Partitions Like Swap, Bios, EFI will be automatically taken by Ubuntu

Step B07: Where are you dialog box appears

Select India (Kolkata) in map and click Continue

Step B08: Who are you dialog box appears

In the text boxes

Type any name

Type password 2 times

Select Log in automatically

Click Continue.

Step B09: Wait approximately for 10 minutes

Dialog box with "Restart now" button will appear

Close the dialog box

Ubuntu will load fully in live mode

Shut down computer

Remove pen drive

Step B10: If UEFI mode Ubuntu installed (Doing Step B3) along with UEFI mode Windows

Inside BIOS, under uefi boot menu, set Ubuntu as the default UEFI

Step B11: Privacy Settings

Dash > Privacy > Screen Lock > Automatic Screen Lock > Off > Show Notifications > Off

Dash > Privacy > Usage & History > Off

Dash > Privacy > Purge Trash & Temporary Files > Off

Dash > Privacy > Location Services > Off

Dash > Power > Blank Screen > 15 minutes

Close all.

Step B12: Disabling Error Reporting Popup

Dash > Terminal >

sudo gedit /etc/default/apport

Replace

enabled=1

With

enabled=0

File > Save >

File > Quit

Step B13: Touchpad Tap to Click Not Working in Laptop in Ubuntu 16.04.3 - Solution

Step 1:

Dash > Startup Applications > Click Add >

In Name text box, type > To Enable TapToClick >

In the Command Text Box, type >

synclient TapButton1=1 TapButton2=3 TapButton3=2

Add > Close > Restart Computer

---

Step 2: If Above Issue Still Persists, Do Below Step 2 Also

Terminal > Run Below Command

sudo gedit /etc/rc.local

In the file that opens, add the below line just before the exit 0. Save. Quit. Restart Computer.

rmmod psmouse

Step B14: (Optional) To Have Minimize, Maximize Button to Windows in Gnome Shell of Ubuntu 16.04.3

Open > Tweak Tool > Windows > Titlebar Buttons >

Maximize > ON > Minimize > ON > Close

Step B15: (Optional) Disabling Alert Sound - Example When Cursor Reach End of File

Sound > Sound Effects > Alert volume > OFF

Step B16: (Optional) To Auto Shutdown When Laptop Lid is Closed - Checked in Ubuntu 16.04

Terminal > Run Below Command

sudo gedit /etc/systemd/logind.conf

In the file that opens, add the below line after #HandleLidSwitch=suspend

HandleLidSwitch=poweroff

Save & Quit. Restart Computer

Note: Step B13, Step B14, Step C02 May Help to Avoid Fire Accidents, if Slept by Keeping Laptop in Bed

Step B17: (Optional) To Auto Shutdown When Power Button is Pressed - Checked in Ubuntu 16.04

Terminal > Run Below Command

sudo gedit /etc/acpi/powerbtn.sh

In the file that opens, add the below line just after #!/bin/sh

/sbin/shutdown -h now

Save & Quit. Restart Computer

Note: Step B13, Step B14, Step C02 May Help to Avoid Fire Accidents, if Slept by Keeping Laptop in Bed

Step C01: Tuning /etc/apt/sources.list File & Installing Synaptic Package Manager

Dash > Terminal > Run the below command >

sudo gedit /etc/apt/sources.list

A file opens > Delete the existing content >

Copy & Paste the below 6 lines

deb http://10.0.0.1/ubuntu xenial main universe restricted multiverse

deb http://10.0.0.1/ubuntu xenial-updates main universe restricted multiverse

deb http://10.0.0.1/ubuntu xenial-security main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu xenial-updates main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu xenial-security main universe restricted multiverse

# Other Than PAJANCOA Campus Users, Copy & Paste the below 3 lines instead of above 6 lines

deb http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse

deb http://archive.ubuntu.com/ubuntu xenial-updates main universe restricted multiverse

deb http://archive.ubuntu.com/ubuntu xenial-security main universe restricted multiverse

Save & Quit

---

Synaptic Package Manager Installation Using Terminal

Give password whenever it asks

Dash > Terminal > Run the below commands (If It Asks Y/N, Press Y and Enter)

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get install synaptic xprintidle

Step C02: (Optional) To Auto Shutdown When Laptop is Idle For Certain Time - Checked in Ubuntu 16.04

Note: xprintidle has been installed in Step C01

Terminal > Run the below command >

sudo gedit /home/.toshutdown.sh

A file opens > Copy & Paste the below lines which are between ---Script Start--- & ---Script End--- (Don't Copy ---Script Start--- & ---Script End--- )

---Script Start---

#!/bin/bash

#idletime=$((1000*60*10)) # for 10 minutes

idletime=$((1000*60*60*2)) # for 2 hours

while true; do

idle=`xprintidle`

echo $idle

if (( $idle > $idletime )); then

dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true

fi

sleep 1

done

---Script End---

Save & Quit

Terminal > Run the below command >

sudo chmod 777 /home/.toshutdown.sh

Startup Applications > Click Add >

In Name text box, type > To Auto Shutdown When Idle >

In the Command Text Box, type > /home/.toshutdown.sh >

Add > Close > Restart Computer

Note: Step B17, Step B18, Step C02 May Help to Avoid Fire Accidents, if Slept by Keeping Laptop in Bed

Step C03: Additional Packages Suggested For Academic Related Users

All Below Software Packages Can be Installed in a Single Step by Using Below Method

Download file stepc03.txt given at the bottom of this web page into $HOME folder

Select Dash > Synaptic Package Manager > File > Read Markings > Other Locations > Computer > home > $HOME > stepc03.txt > Mark > Apply > Apply

- - -

Note:

Download May Take 5 Minutes From Intranet & 30 to 600 Mintues, if From Internet

After Downloading, May Take Some 30 Minutes For Installing

After Installation is Complete, Below Works Suggested

Work 1: Procedure Given Below The Packages dconf-editor & gnome-tweak-tool

Work 2: Configure WiFi

Work 3: Open > Details > Default Applications > Video > VLC media player > Music > VLC media player

Work 4: Suggested Favorites in Favorites Bar

Firefox

Files

LibreOffice

Word

Excel

PowerPoint

Qt Creator

R

GIMP

Inkscape

Audacity

Avidemux

--- Packages List Starts

artha - A good offline thesaurus/dictionary, installs wordnet

audacity - Audio editor and recorder (Effects > Karaoke, sox can also do well)

blender - Maya, 3D Max Equivalent - Fast 3D Modeling, Video Editing, Animation, Photorealistic Rendering, Landscaping, ...

(

Also

Fast Rigging, Sculpting, Fast UV Unwrapping, Full Compositor, Amazing Simulations, Game Creation, Camera and Object tracking, Library of Extensions

Used by / in

NASA

Spider-Man 2 Movie

Friday or Another Day French Movie

Shows on History Channel

Many TV Commercials in Australia, Iceland, Brazil, Russia, Sweden, ...

Book - Blender 3D: Noob to Pro

https://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro

https://upload.wikimedia.org/wikipedia/commons/c/c1/BlenderDocumentation.pdf

)

blueman - Bluetooth Manager

calibre - e-book manager (epub reader)

codeblocks-contrib - also installs codeblocks - IDE for C, C++, & Fortran

codelite - IDE For C/C++, PHP, Java, Perl, XML, PHP, JavaScript, Python, HTML, ASP, ...

codelite-plugins - plugins of codelite - IDE For C/C++, PHP, Java, Perl, XML, PHP, JavaScript, Python, HTML, ASP, ...

default-jre - default Java Runtime Environment

{

While Running LibreOffice Base it Tells Please install a JRE and Restart LibreOffice, Though it Was Working Earlier (Checked in Ubuntu 16.04.1)

An Update May be The Reason

Solution:

Open > Libreoffice >

Tools > Options > Advanced >

Select > Use a Java runtime environment (if not already selected) >

Select > JRE From the List Below (Example Oracle Corporation) > OK

}

docker.io - docker community edition - containerization - example - Oracle Database Express Edition 11g Release 2

{

sudo docker info

sudo docker pull hello-world

sudo docker run hello-world

---

Above is example for docker containerization. Below as on Aug.2018

Oracle Database Express Edition 11g Release 2 on Top of Ubuntu 14.04 LTS Docker Containerization

---

sudo docker pull alexeiled/docker-oracle-xe-11g

sudo docker run -d --shm-size=2g -p 1521:1521 -p 8080:8080 alexeiled/docker-oracle-xe-11g

---

Note:

(Checked in Ubuntu 18.04)

--shm-size=2g is 2GB shared memory

Use --shm-size=1.2g if your system has only 2GB RAM

Better to have more than 1GB for Oracle

---

Connect database with following setting:

hostname: 127.0.0.1

port: 1521

sid: xe

username: system

password: oracle

Password for SYS user

oracle

---

Connect to Oracle Application Express web management console with following settings:

http://127.0.0.1:8080/apex

workspace: internal

user: admin

password: oracle

---

To List Docker Images Available in The System

sudo docker images

---

To List Running Docker Containers with Image Names, Container ID, etc...

sudo docker container ls

---

To Stop a Running Docker Container of a Docker Image

sudo docker container stop <Container ID>

----

https://hub.docker.com/_/hello-world/

https://hub.docker.com/r/alexeiled/docker-oracle-xe-11g/

https://github.com/alexei-led/docker-oracle-xe-11g

https://docs.docker.com/engine/reference/commandline/docker/

https://hub.docker.com/explore/

https://hub.docker.com/r/wnameless/oracle-xe-11g/

}

etherape - displays network traffic graphically between the computer & others in LAN & Internet

extremetuxracer - slide in a snow covered mountain as quickly as possible

ffmpeg - gives ffserver & ffmpeg, which supports lot of multimedia format

{

LAN Radio Using ffmpeg & ffserver - checked in Ubuntu 16.04

(Above Works Well in WiFi LAN Also For Multiple Clients)

(Similarly LAN TV Also Possible)

---

#sudo gedit /etc/ffserver.conf

# Comment all lines, except below lines

HTTPPort 8090

HTTPBindAddress 0.0.0.0

MaxHTTPConnections 2000

MaxClients 1000

MaxBandwidth 1000

#---

# Add below 2 paragraphs to the beginning of file. Save & Quit

<Feed micaudiofeed.ffm>

ACL allow 127.0.0.1

</Feed>

<Stream micaudiostream.wav>

Feed micaudiofeed.ffm

Metadata title "Mic Audio Stream"

AudioBitRate 64

AudioChannels 2

AudioSampleRate 44100

NoVideo

</Stream>

---

ffserver

---

To get details of input audio devices like hw:0, use below command in Terminal

arecord -L

---

Open > Terminal >

ffmpeg -f alsa -i hw:0 http://127.0.0.1:8090/micaudiofeed.ffm

Play a song or talk in the mic of local system

---

In multiple remote systems (Laptop / Mobile) >

VLC > Media > Open Network Stream >

http://<serverip>:8090/micaudiostream.wav

---

For More Details:

https://trac.ffmpeg.org/wiki/Capture/ALSA

https://trac.ffmpeg.org/wiki/StreamingGuide

https://www.ffmpeg.org/ffserver.html

}

fonts-noto-hinted - 100+ Google unicode fonts

fonts-indic - needed by firefox to display properly some Indian languages like Tamil, Telugu, Malayalam, Kannada, etc... in Ubuntu Gnome 16.04

frozen-bubble - LAN game - aim and shoot at same colored bubble present as group of bubbles

gdebi - .deb format package file installer

geany-plugins - IDE & Text Editor (Light Weight) - Along With its Plugins

{

Supports C, C++, C#, Java, JavaScript, PHP, HTML, LaTeX, CSS, Python, Perl, and Many

Save the file with correct extension (e..g .py for python and .cpp for C++), to get syntax highlighting and auto complete

Ctrl + Spacebar - For auto complete to work

View > Editor > Show White Space to view space, tab, etc...

}

gimagereader - GUI to tesseract-ocr OCR like ocrfeeder

gimp - Equivalent to Photoshop - Raster Graphics Editor

gnome-power-manager - GNOME Power Statistics Tool

gnome-session-wayland - wayland based GNOME desktop session

gparted - Partition editor

gramps - To Create Humans Family Tree - For Research Related to Animal Pedigree - Genealogical Research and Analysis Management Programming System

(

Suggested Method To Create Family Tree Book in Gramps

Step 1:

Gramps > Add People with > in Name in Below Format (Change Information as You Like) >

<MobileOfMales> <BirthDateMonthWithoutYear/LivedUptoYearWithoutDateMonth> <Name> >

in Surname - Places They Lived Long (Multiple Surnames Possible) >

(Above Surnames Will Help to Find People Who Lived Long in Same Place To Help Each Other)

Step 2:

Gramps > People > Select a Person (Right Side Filter Can Be Used To Search) >

Relationships > Will Show >

Parents (Father, Mother, Siblings) & Family (Spouse, Children) >

Take a ScreenShot to Create 1 Page

Step 3:

Create Such Screenshots For All People - 1 Page For 1 People >

Arrange All These Screenshots in LibreOffice Writer / Word >

Export as .pdf file

or

Arrange All These Screenshots in LibreOffice Impress / Powerpoint >

Create a .odp / .pptx Presentation File

Note: Other Options Below

Before generating report, select person using People > Filter > Name > Type name > Find

Select an elder person > Reports > Graphical Reports > Descendant Tree > Size > Resize Page to Fit Tree Size > Output Format > SVG document > Ok

Select an elder person > Reports > Graphical Reports > Family Descendant Tree > Size > Resize Page to Fit Tree Size > Output Format > SVG document > Ok

Select a younger person > Reports > Graphical Reports > Ancestor Tree > Size > Resize Page to Fit Tree Size > Output Format > SVG document > Ok

Select a younger person > Reports > Graphical Reports > Fan Chart... > Size > Resize Page to Fit Tree Size > Output Format > SVG document > Ok

Use Inkscape to open .svg & export to .png. Instead of .svg, .pdf can also be used.

)

graphicsmagick - Powerful Image Processing Tool - Used by Epson Scanner Driver Bundle Image Scan

{

Epson Scanner Driver For Ubuntu - Image Scan V3 (imagescan-bundle-ubuntu / imagescan 1.3.22)

(Checked in Ubuntu 16.04 - Scanner - Epson Perfection V39 - Works)

(as on Nov.2017 Packages Are Available For Ubuntu 14.04, Ubuntu 16.04, ...)

http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX

https://launchpad.net/iscan

http://support.epson.net/linux/en/imagescanv3.php?version=1.3.22

Download From Any of Above Links > Extract > chmod 777 > Install >

Connect Scanner > Restart Computer >

Open > Image Scan

}

grsync - GUI for rsync

{

Synchronizing using Grsync (GUI for rsync) between folders in Local computer

Basic settings > preserve time, delete on destination, verbose, show transfer progress,

Advanced options > Copy symlinks as symlinks, Copy hardlinks as hardlinks,

Add a / at the end of both source & destination paths

(Avoid characters like " * / : < > ? \ | in filenames as fat32 pen drives have problem in supporting)

---

Synchronizing using Grsync (GUI for rsync) between CD Drive & a Folder

When K3b, Rip to CD / DVD, fails in middle with CD / DVD with lot of scratches

Use grsync with an additional setting of

Keep partially synchronized files

---

If VCD, play the entire DVD containing folder or try renaming the .dat file to .mpg & play with VLC

If DVD, play the entire DVD containing folder or .vob files can be played with VLC

If not able to play using above methods, then may try below commands to convert them

vcdxrip -i=<input file> -o=<output file> --no-ext-psd <enter>

vcdxrip -b=<input binary image file> -o=<output file> --no-ext-psd <enter>

mencoder -dvd-device <path to dvd device or folder containing dvd files> -o <output file> <enter>

ffmpeg -i video.dat -target vcd vcdvideo.mpg

}

gstreamer1.0-libav - multimedia format support in GNOME Videos Media Player (Earlier Called Totem), Pitivi, handbrake, etc...

guvcview - Has advanced settings and support additional webcams than cheese. Sometimes cheese sense some cams after running guvcview once

Handbrake - Video transcoder / Audio, Video converter (for Linux, Windows)

{

https://launchpad.net/~stebbins/+archive/ubuntu/handbrake-releases

sudo add-apt-repository http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu

handbrake and winff reencodes in contrast to mkvmerge and avidemux

handbrake uses gstreamer

winff uses FFmpeg

libavcodec-extra-54 replaces libavcodec54

But libavcodec-extra-54 makes opencv stop working though supports more formats

}

hedgewars - LAN game - time limited turn based attack

ibus-m17n - To have more languages in ibus preferences input method including Tamil (Phonetic)

{

Tamil (or other languages) typing using Phonetics (checked in Ubuntu Gnome 16.04)

(Like anpudan should give அன்புடன்)

Step 1

Ensure that ibus-m17n package has been installed. If it is installed freshly, restart computer once.

---

Step 2

Region & Language > + > Add an input source > ... > Other > Tamil (phonetic (m17n)) > Add > Close

Note: In Ubuntu 16.04, Use Text Entry > Input sources to use > + > Choose an input source > Tamil (phonetic (m17n)) > Add > Close

---

Step 3

SuperKey+Spacebar to switch between Tamil (phonetic) and English

---

English keys to type Tamil language using Tamil phonetic in Ubuntu

http://en.wikipedia.org/wiki/Tamil_script

12 vowels (உயிரெழுத்து)

அ a

ஆ A

இ i

ஈ I

உ u

ஊ U

எ e

ஏ E

ஐ ai

ஒ o

ஓ O

ஔ au

1 hermaphrodite letter (அலியெழுத்து)

(neither a consonant nor a vowel, though often considered as part of the vowel set)

ஃ q

Note:

ஃ is not used much, but combined nowadays as below to represent the 3 foreign sounds which are not in Tamil

f ஃப

z ஃஜ

x ஃஸ்

18 consonants (மெய்யெழுத்து)

க் k

ச் c

ட் d

த் th

ப் p

ற் R

ய் y

ர் r

ல் l

வ் v

ழ் z

ள் L

ங் ng

ஞ் nj

ண் N

ந் w

ம் m

ன் n

216 combinant letters (உயிர்மெய்யெழுத்து) are formed by adding a vowel marker to the consonant (12x18=216)

E..g

க ka

நா waa

ழீ zI

Above 31+216 forms the 247 Tamil characters

To type Grantha Script

http://en.wikipedia.org/wiki/Grantha_script

ஸ்ரீ sri

ஜ் j

ஷ் sh

ஸ் S

ஹ் h

க்ஷ் ksh

Zero Width Non Joiner in Tamil Phonetic Typing

http://en.wikipedia.org/wiki/Zero-width_non-joiner

ZWNJ will be needed in rare situations

E..g 1 (may be needed when typing some foreign language nouns)

If we want to have அஇ close to each other &

if we type ai it will give ஐ (combined character) and not அஇ (close but not combined)

So type a i (with space in between). Then use arrow key & delete key to erase the space

E..g 2 (may be needed when typing some tamil poetry)

If we want to have ள்இ close to each other &

if we type Li it will give ளி (combined character) and not ள்இ (close but not combined)

So type L i (with space in between). Then use arrow key & delete key to erase the space

}

idle3 - IDE for Python 3 - installs python3-tk also

{

Python 3.x Hello Program

#!/usr/bin/python

print ('Hello, Python!')

---

Note: Below is For Python 2.x Hello Program

#!/usr/bin/python

print "Hello, Python!";

}

inkscape - Coreldraw equivalent - Vector graphics editor - Good for poster preparation

k3b - CD / DVD writing (Select Dash > Terminal > sudo k3b - Else in Ubuntu 16.04.1, disc looks blank after successful burn)

kazam - screen casting tool - has more features than gtk-recordmydesktop

kdeconnect - to access android smart phone files from Ubuntu by pairing through WiFi / LAN - ring device to find - battery indicator - phone as keyboard

kdenlive - Qt based professional range video editor (pitivi uses Gstreamer whereas kdenlive uses FFMpeg) - export video as .gif

{

To Convert Audio File into mp4 Video With an Image

Modify Image Size if required >

Kdenlive >

Settings > Manage Project Profiles >

Create new profile icon >

Description > Profile1 >

Size > Picture width >

Picture height >

Frame rate > 1 / 1 (to get 1 fps) >

OK > Yes >

Project > Project Settings >

Video Profile > Profile > Profile1 > OK >

Continue >

Project > Add Clip >

Select both image file and audio file > Open >

Drag audio to Video track 1 >

Drag image to Video track 2 >

Drag image (Video track 2) length to match audio (Video track 1) length >

Render >

Render > Bitrate >

Video > 1 (reduces resulting file size a lot, when the image is bigger) >

Audio > As in Source Audio >

MPEG-4 > MPEG-4/MP3 >

Render to File

}

libav-tools - to support most audio video format

libc6-i386 - 32-bit (run time environment) version of the library for multiarch 64-bit Ubuntu 16.04

{

Else - No such file or directory? - Message appears while running softwares like Cyberoam client crclient in Terminal, though file exists

Note:

dpkg --print-architecture

will give below output in a 64-bit Ubuntu

amd64

dpkg --print-foreign-architectures

should give output

i386

If above output is not got, then run below commands

sudo dpkg --add-architecture i386

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get dist-upgrade

}

libcurl4-gnutls-dev - needed to download packages properly in R (R has packages RCurl, curl)

libreoffice - equivalent to MsOffice (includes writer, calc, impress, draw, base, math, etc..)

libsane-common - for better scanner support

libsane-extras - for better scanner support

light-themes - GTK3+ Theme for Ubuntu GNOME

{

Super (Windows) Key > Tweak Tool > Appearance > GTK+ Theme > Ambiance

Above Gives Dark Color Title Bar in Windows with Orange Close Button

}

lsb - needed to install Epson Printer Utility

lximage-qt - Qt based LXQt fast image viewer (preferable for less resource computers)

mc - midnight commander command line based / terminal / CUI powerful fast file manager with local, sftp (username@ipaddress), ftp & mouse support

(

has mouse support

Options > Panel options... > Deselect > Show backup files > Show hidden files > Ok

Options > Save setup

Unlike nano, inbuilt editor, mcedit has no shared clipboard support

For navigation - use up arrow, down arrow, page up, page down, Home, End

To move to Parent folder - Ctrl + PageUp

For multiple select - use shift + up / down arrow

F3 - Opens the current file in mcedit (text editor with mouse support, but no shared clipboard feature like nano)

F4 - Opens the current file in default text editor (nano)

Enter - Opens the current file using the associated application (if folder, enters into the folder)

To change file association use Files (nautilus) - Right click over a particular extension file > Properties > Open with > Specific application > Set as default > Reopen mc

Ctrl

Alt (+ Shift) + H - show directory history

Alt (+ Shift) + S - quick incremental find for file / folder

Alt (+ Shift) + ? - find dialog box with more options

(Shift +) + - Select - Select dialog box appears > Type * and press enter to Select All

- (minus and not underscore) - Unselect - Unselect dialog box appears > Type * and press enter to Unselect All

)

menulibre - menu editor to create launcher icons in Dash

mkvtoolnix-gui - to create, split, join, alter .mkv files - includes mkvmerge, mkvinfo, mkvextract, mkvpropedit, ...

nautilus-gtkhash - GUI to check md5sum, etc... (After installing, right click any file and select Properties, Digests, Hash )

ocrfeeder - OCR suite - auto recognize layout with manual resize - selection as images or text - edit text, then export to .odt - tesseract-ocr-tam like gimagereader

p7zip-rar - .rar decompressing module of p7zip-full (installs p7zip-full also. p7zip-full is memory-hungry but has good compression ratio and fast decompression)

{

Advantage of .xz Compression File Format - Checked Using Ubuntu 16.04.1

(Based on File Type, Results May Vary)

example.qcow2 - 7.8 GB

example.qcow2.gz - 4.3 GB

example.qcow2.xz - 3.4 GB

example.qcow2.7z - 3.2 GB

Note:

Both .7z & .xz Incorporates LZMA/LZMA2 Compression Algorithms

But .7z lacks support for Unix-like file system metadata / permissions

.xz is being used by

Debian, openSUSE, Fedora, GNOME, TeX Live, Linux kernel.org files

}

pcmanfm-qt - Qt based LXQt fast file manager (preferable for less resource computers)

pdfshuffler - To merge, split, rotate, add, delete pages in pdf files with an user friendly GUI

pingus - game - lemmings like puzzle game - guide penguins to safety through obstacles

printer-driver-all - more printer drivers

printer-driver-cups-pdf - virtual paperless printer

qt-sdk - Powerful easy IDE to develop pure C++ / pure C (as C++ is backward compatible) / Qt based c++ GUI programs

r-base - R Statistical Software

{

For Latest R Statistical Software

Use the command

sudo gedit /etc/apt/sources.list

and add the below line

deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/

(above for Ubuntu 18.04)

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get install r-base r-base-core r-doc-html r-doc-info r-doc-pdf libjpeg62

For More Information:

https://cran.r-project.org/mirrors.html >

Any mirror > Download R for Linux >

ubuntu > README.html

}

remmina - remote desktop client (use VNC protocol in the client to connect with vino VNC server )

sane - for better scanner support

sane-utils - for better scanner support

scorched3d - LAN game - 3D artillery game like worms game and scorched earth game

screenkey - to display keys pressed / jammed keys

{

To Find keycode, keysymbol, Unicode of a Key Pressed

Terminal >

xev

Examples

Pressing a, gives lot of output along with

keycode 38 (keysym 0x61, a)

Where

38 is the keycode of a

a is the keysymbol of a

0x61 is the Unicode of a

-

Pressing Tab, gives lot of output along with

keycode 23 (keysym 0xff09, Tab)

Where

23 is the keycode of Tab

Tab is the keysymbol of Tab

0xff09 is the Unicode of Tab

---

To Display all Keycode Values Currently Mapped

Terminal >

xmodmap -pke

---

To Disable a Key Using its Keycode (Example Tab)

Terminal >

xmodmap -e 'keycode 23 = '

---

To Map Tab Key with a (Using keycode & keysymbol)

Terminal >

xmodmap -e 'keycode 23 = a'

---

To Map Tab Key with a (Using keycode & Unicode)

Terminal >

xmodmap -e 'keycode 23 = 0x61'

}

skanlite - scanning software - supports more scanner models

smplayer - Nice GUI of mplayer. Can play some videos where VLC find it difficult and vice versa

soundconverter - to convert audio file formats like from .m4a to .mp3

speedtest-cli - CUI (Command line / Terminal Based Interface) for testing internet bandwidth using speedtest.net

supertux - game - super mario like jump and run game

supertuxkart - LAN game - 3D mini car racing

synaptic - Installed in Step C01

ubuntu-wallpapers

ubuntu-wallpapers-karmic

ubuntu-wallpapers-lucid

ubuntu-wallpapers-maverick

ubuntu-wallpapers-natty

ubuntu-wallpapers-oneiric

ubuntu-wallpapers-precise

ubuntu-wallpapers-quantal

ubuntu-wallpapers-raring

ubuntu-wallpapers-saucy

ubuntu-wallpapers-trusty

ubuntu-wallpapers-utopic

ubuntu-wallpapers-vivid

ubuntu-wallpapers-wily

ubuntu-wallpapers-xenial

ubuntukylin-wallpapers-saucy

ubuntukylin-wallpapers-trusty

ubuntukylin-wallpapers-utopic

ubuntukylin-wallpapers-vivid

ubuntukylin-wallpapers-wily

ubuntukylin-wallpapers-xenial

ubuntustudio-wallpapers

unrar - to avoid "Parsing Filters not supported" message while handling .rar file

util-linux - includes important commands like lscpu

{

lscpu

64-bit CPU Computers capable of running 32-bit OS & 64-bit OS will display

CPU op-mode(s) : 32-bit, 64-bit

32-bit CPU Computers capable of running 32-bit OS alone will display

CPU op-mode(s) : 32-bit

}

virt-manager - VirtualBox Equivalent - Virtual Machine Manager

{

qemu-system - virt-manager needs this to create system locally

qemu-utils - Tools like qemu-img

{

To Get Information of a .qcow2 Disk File

qemu-img info imagein.qcow2

---------

To Shrink a .qcow2 Disk File to the Size of Actual Data Stored in it

Step 1A: Fill Free Space With Zero of Windows Guest

Boot Into Windows Guest

Defragment The Partitions First

Download SDelete.exe and save it in

C:\windows\system32\

sdelete -z

Below Command Instead of Above, if More Than 1 Partion Exists

sdelete -z d:

Step 1B: Fill Free Space With Zero of Linux Guest

Boot Into Linux Guest

dd if=/dev/zero of=/mytempfile

rm -f /mytempfile

Step 2: Shrinking the .qcow2 Disk File

Shut Down Guest & From Linux Host

qemu-img convert -O qcow2 imagein.qcow2 imageout.qcow2

--------

To Expand .qcow2 Disk File (by 20GB)

Step 1: Expanding the Drive Size

Shut Down Guest & From Linux Host

qemu-img resize image.qcow2 +20G

Step 2: Expanding the Partitions

Link an Ubuntu Bootable .iso

With the Virtual Machine

Having the image.qcow2 Disk

Change Boot Order & Boot From .iso

GParted > Create or Expand Partition in the Free Space

-----------

To Mount & Edit Content of a .qcow2 Disk File

sudo modprobe nbd

sudo qemu-nbd --connect=/dev/nbd0 image.qcow2

Manage (Create, Mount, ...) Partitions Using Disks

sudo qemu-nbd --disconnect /dev/nbd0

-----------

To convert VirtualBox .vdi File into Virt-Manager / KVM .qcow2 File

qemu-img convert -f vdi -O qcow2 example.vdi example.qcow2

}

qemu-kvm - virt-manager needs this to show Hypervisor (Virt Type) as KVM instead of qemu

(if hardware virtualization is supported)

virt-clone - CUI tool to clone existing inactive guests with disk images with new name, UUID and MAC address

virt-convert - CUI tool to convert virtual machines between formats

---

64-bit Host Can Run 64-bit Guests

(With or Without Hardware Virtualization)

In VirtualBox, 64-bit Host Needs Hardware Virtualization to Run 64-bit Guest

---

To Check Whether

CPU Supports KVM extensions / Hardware Virtualization

Enabled in BIOS or Not

(Run below command, after installing qemu-kvm)

kvm-ok

---

64-bit Host Can Run 32-bit and 64-bit Guests

32-bit Host Can Run Only 32-bit guests

virt-manager acts like a Type-1 Hypervisor due to Linux's KVM and hence can expect better performance

File formats supported - .vdi, .img, .vmdk, .qcow2, .iso, ...

To release pointer to host

(Left) Ctrl + (Left) Alt

All image files are stored in /var/lib/libvirt/images/ by default

Dukto, Internet Works Inside Windows Guest Automatically

--- Windows 7 As Guest OS

To Get Full Size Screen in Windows Guest

Select View > Scale Display > Always & Select View >

Resize to VM > Increase Screen Resolution in Windows

Or Increase Windows (Guest) Resolution

---

To access USB drive / device

Boot Into Windows Guest

Virtual Machine Manager > Redirect USB device >

Select USB devices for redirection dialog box appears >

Select > OK >

USB drive appears in File Explorer

--- Turnkey LAMP 14.1 (Debian Based) As Guest OS

turnkey-lamp-14.1-jessie-amd64.vmdk

During first boot it allows to type

root password >

mysql root password > Apply >

Skip (Email) >

Skip (Security Updates)

Screen Appears With Below Details With Assigned IP Appears

Opens with Link To Web Shell, Webmin, Adminer

http://<ip>

https://<ip>

Web Shell

https://<ip>:12320

Webmin

https://<ip>:12321

Adminer

https://<ip>:12322

SSH/SFTP

root@https://<ip> (port 22)

---Turnkey Moodle Working (Similar to Above)

}

vlc - VideoLan video player. Can play some videos where smplayer find it difficult and vice versa

{

To play in 2D a left/right half width 1920 x 1080 3D video of aspect ratio = 1920/1080 = 1.77 = 16/9 = 16:9

VLC > Tools > Preferences > Show settings > All >

Video > Scroll > Source aspect ratio > Aspect ratio with width doubled > 32:9 >

Save > Media > Quit (VLC) >

Open the video in VLC > Pause > Tools > Effects and Filters >

Video Effects > Crop > Left > 960 (Half of width 1920) > Close > Play

}

{

To play in 2D a top/bottom half height 1920 x 1080 3D video of aspect ratio = 1920/1080 = 1.77 = 16/9 = 16:9

Follow above procedure,

but aspect ratio with height doubled > 16:18 and

Crop > Bottom > 540 (Half of height 1080)

}

warmux - LAN game - 2D turn-based artillery game like worms game and scorched earth game

winff - media (audio, video) convertor

{

handbrake and winff reencodes in contrast to mkvtoolnix-gui (mkvmerge) and avidemux

handbrake uses gstreamer

winff uses FFmpeg

libavcodec-extra-54 replaces libavcodec54

But libavcodec-extra-54 makes opencv stop working though supports more formats

}

xournal - can be used for note taking & also annotate pdf files (can export with annotation to pdf file unlike okular)

xprintidle - Installed in Step C02

xsane - supports many scanner (& network scanner)

{

OCR and lot of features

Window > Show histogram > Deselect

Window > Show standard options > Deselect

To avoid dull background of scanned white background letters use Gray instead of Color

}

yuyo-gtk-theme - GTK3+ Theme for Ubuntu GNOME

{

Green Color Ubuntu MATE Official Theme

Installs ubuntu-mate-icon-themes Also

Super (Windows) Key > Tweak Tool > Appearance > Icons > Ambiant-MATE

Above Gives files / folders Radiant-MATE green color icons

}

Note1 : Below packages not included in above list, as they comes by default with Ubuntu GNOME 16.04.2

cheese - Webcam handling

dbus - dbus includes dbus-send - to shutdown from terminal without sudo use below command

{

dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true

}

dconf-editor - To sort directories first in Files in Ubuntu GNOME 16.04.2

(

Super (Windows) Key > dconf Editor > org > gnome > nautilus > preferences > sort-directories-first

)

dconf-service - Low-level key/value database which stores desktop environment settings

{

To Reset Ubuntu Gnome Desktop to Default Settings

Open > Terminal >

dconf reset -f /

}

gnome-tweak-tool - GNOME Tweak Tool

{

To Change Appearance of Windows, ...

Super (Windows) Key > Tweak Tool > Appearance > GTK+ Theme > (Example: Ambiance)

---

To Change Appearance of Icons, ...

Super (Windows) Key > Tweak Tool > Appearance > Icons > (Example: Ambiant-MATE)

---

(Optional) For Older Laptops, To Make Ubuntu GNOME Work Faster

Dash > Tweak Tool > Appearance > Enable animations > OFF

---

(Optional) For Small Screen Laptops, To Change The Size of Text, Etc... of Entire Screen of Ubuntu GNOME Shell

Super (Windows) Key > Tweak Tool > Fonts > Scaling Factor >

---

To Install Dash to Dock Gnome Shell Extension in Ubuntu 16.04.3

Step 1:

PAJANCOA Intranet Users Can Download Dash to Dock .zip File From

Note:

Other Than PAJANCOA Intranet Users, Can Download the Latest Version Dash to Dock .zip File Given for the Gnome Shell 3.18 From

Step 2:

Dash > Tweak Tool (gnome-tweak-tool) > Extensions >

Install Shell Extension > None Button > Select the Downloaded Dash to Dock .zip File > Open

Restart Computer

Step 3:

Dash > Tweak Tool (gnome-tweak-tool) > Extensions > Dash to Dock > ON

Note:

(To Check the Gnome Shell Version, Command in Terminal is > gnome-shell --version )

}

gnome-user-share - Terminal > gnome-file-share-properties - Opens Personal File Sharing Preferences

libreoffice-pdfimport - to import pdf files into libreoffice

nano - terminal based text editor - copy / paste across shared clipboard works (unlike mc inbuilt editor mcedit)

nautilus - file manager (Files)

{

To Create Files (Empty or With Content) Using Context (Right Click) Menu of

Files (nautilus) in Ubuntu GNOME 16.04

Step 1:

Create a Folder

$HOME/Templates/

if Not Existing Already

---

Step 2:

Create (Empty or With Content) Files Using Appropriate Software & Copy The Files Inside

$HOME/Templates/

Example

new.txt

new.odt

new.docx

letterpad.docx

new.xlsx

new.pptx

---

Step 3:

Terminal >

gedit $HOME/.config/user-dirs.dirs

Ensure the Presence of Below Line. Modify if Needed

XDG_TEMPLATES_DIR="$HOME/Templates/"

Save.Close.

Restart Computer.

---

Step 4:

Files > Right Click Over Blank Area > Context Menu > New Document > Sub Menu Appears with Filenames from $HOME/Templates/ Folder. Select one

A Copy of the Selected File From $HOME/Templates/ Folder Will Be Created in the Current Folder

}

ubuntu-gnome-desktop - GNOME Desktop

{

To Switch Between Display (Login) Managers (gdm3 & lightdm)

To Know the Display Manager Currently in Use

cat /etc/X11/default-display-manager

---

To Use the gdm3 (GNOME default) as Display (Login) Manager

sudo dpkg-reconfigure gdm3

Note:

In Ubuntu 16.04.1

due to a bug,

autologin won't work

if gdm3 is used.

Hence, better

stick on with

lightdm

---

To Use lightdm (Unity default) as Display (Login) Manager

sudo dpkg-reconfigure lightdm

Note: Should Restart To Get Effected

}

vino - VNC server (use VNC protocol in the client to connect)

{

Desktop Sharing (vino Server) Not Working in Ubuntu GNOME 16.04 - Solution

Step 1: To Enable Desktop Sharing (vino Server)

dcof Editor > org > gnome >

desktop > remote-access >

enabled > Select

Step 2: To Start Desktop Sharing (vino Server)

Terminal >

/usr/lib/vino/vino-server

Step 3: To Change Settings of Desktop Sharing (vino Server)

Legacy Icon Bar (Screen Bottom Left) > Desktop Sharing Icon > Preferences

}

Installation method of 32-bit Office 2007 using wine in 64-bit Ubuntu 16.04

(Office 2010 can also be installed using this method)

Step 1: Install Below Packages Using Synaptic Package Manager, if not already installed

libgl1-mesa-dev

libgl1-mesa-glx

libnss-winbind

libpam-winbind

mesa-utils

mesa-utils-extra

wine

winbind

winetricks

wine-mono (optional)

{

ttf-mscorefonts-installer - unmark this - if forget, at the time of asking agree, don't select agree; just click Forward, Forward

gnome-exe-thumbnailer - unmark this - shows thumbnail (icon) for windows .exe (slows nautilus heavily if big .exe files exist)

}

---

Step 2: Open > Terminal > Run (Copy, Paste & press Enter) these 8 commands 1 by 1 - Don't worry even if not found error message comes)

sudo rm /usr/lib/i386-linux-gnu/mesa/libGL.so

sudo rm /usr/lib/i386-linux-gnu/libGL.so

---

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/mesa/libGL.so

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/libGL.so

---

rm $HOME/.wine -rf

rm $HOME/.cache/winetricks -rf

rm $HOME/.local/share/applications/* -rf

Restart Computer

---

Step 3: By default on 64-bit Ubuntu, wine emulates Windows 64-bit. To emulate 32-bit, run (Copy, Paste) the below 2 commands in Terminal

export WINEARCH=win32

export WINEPREFIX=$HOME/.wine winecfg

Open > Terminal > Run the below command (Don't run directly from Dash)

winetricks

Winetricks window opens >

May ask for permission to send statistics > No > OK

Open Files > $HOME folder > View > Show Hidden Files

---

Step 4: If you have msxml6_x86.msi & dotnetfx.exe files or if you the installing computer has Internet, this step can be skipped

(as winetricks can do this automatically)

Download msxml6_x86.msi from the below link

http://download.microsoft.com/download/e/a/f/eafb8ee7-667d-4e30-bb39-4694b5b3006f/msxml6_x86.msi

and copy it into

$HOME/.cache/winetricks/msxml6/msxml6_x86.msi

by creating folder msxml6, if needed

---

Download dotnetfx.exe from the below link

http://filehippo.com/de/download_dotnet_framework_2/496/

or

http://filehippo.com/de/download_dotnet_framework_2/download/782818253e6ea8b9bee8b9aa69638ce1/

and copy it into

$HOME/.cache/winetricks/dotnet20/dotnetfx.exe

by creating folder dotnet20, if needed

---

Step 5: Installing msxml6 & dotnet20 through winetricks

Select the default wineprefix > OK

If winetricks window, asks for help to report statistics > No > Ok

Install a Windows DLL or component > Ok >

dotnet20 > msxml6 > OK >

If Working around wine bug ... message window appears > Ok

Follow instructions (type Name, Company if asked) that appear in the screen (mostly "I agree" & "Next") to complete installation of dotnet20 & msxml6

Close Winetricks by selecting Cancel > Cancel

---

Step 6: winecfg

Open > Terminal > Run the below command >

winecfg > Libraries > New override for library > riched20 > Add > usp10 > Add > OK

(riched20 needed for Powerpoint to open properly)

(usp10 needed for Tamil/Unicode fonts to display properly

(*msxml6 will already be there due to winetricks step)

Step 7: Installing Office 2007 Using setup.exe

Keep installation files of Office inside $HOME/office/

Open > Terminal > Run the below command

sudo chmod 777 $HOME/office --recursive

Open $HOME/office/ folder > Right click over setup.exe > Open With Wine Windows Program Loader

Type or copy / paste 25-character > Continue > I accept ... > Continue >

Customize > Microsoft Office > Run all from My Computer > Install Now

After installation is over

Step 8: When Opening Word First Time

Username dialog box opens > OK >

Welcome to the 2007 Microsoft Office System (Privacy Options) Opens > Deselect all > Next >

Welcome to the 2007 Microsoft Office System (Sign up for Microsoft Update) Opens > Select > I don't want ... (suggestion) > Finish

---

Step 9: To Associate .doc, .docx, .xls, .xlsx, .ppt, .pptx With Office Softwares

Open > Word 2007 >

Office Button > Save > Save As Dialog Box Opens > Save > Doc1.docx Created

Office Button > Save As > Word 97-2003 Document > Save As Dialog Box Opens > Save > Doc1.doc Created

Close Word 2007

---

Open > Excel 2007 >

Office Button > Save > Save As Dialog Box Opens > Save > Book1.xlsx Created

Office Button > Save As > Excel 97-2003 Workbook > Save As Dialog Box Opens > Save > Book1.xls Created

Close Excel 2007

---

Open > PowerPoint 2007 >

Office Button > Save > Save As Dialog Box Opens > Save > Presentation1.pptx Created

Office Button > Save As > PowerPoint 97-2003 Presentation > Save As Dialog Box Opens > Save > Presentation1.ppt Created

Close PowerPoint 2007

---

Open > Files ($HOME Folder) >

Right Click Over > Doc1.docx > Menu Appears > Properties > Open With > Microsoft Office Word > Set as default > Close

Right Click Over > Doc1.doc > Menu Appears > Properties > Open With > Microsoft Office Word > Set as default > Close

Right Click Over > Book1.xlsx > Menu Appears > Properties > Open With > Microsoft Office Excel > Set as default > Close

Right Click Over > Book1.xls > Menu Appears > Properties > Open With > Microsoft Office Excel > Set as default > Close

Right Click Over > Presentation1.pptx > Menu Appears > Properties > Open With > Microsoft Office PowerPoint > Set as default > Close

Right Click Over > Presentation1.ppt > Menu Appears > Properties > Open With > Microsoft Office PowerPoint > Set as default > Close

(Testing) Installation method of 32-bit Office 2013 using wine in 64-bit Ubuntu 18.04

Step 1: Install Below Packages Using Synaptic Package Manager, if not already installed

libgl1-mesa-dev

libgl1-mesa-glx

libnss-winbind

libpam-winbind

mesa-utils

mesa-utils-extra

wine-stable

{

Installs wine-stable-3.0-1ubuntu1

Installs wine64 also

Ubuntu 16.10 to 18.04 have wine-stable.

Earlier versions have wine package & no wine-stable.

Later versions mostly will have wine package again.

}

winbind

winetricks

---

Step 2: Open > Terminal > Run (Copy, Paste & press Enter) these commands 1 by 1 - Don't worry even if not found error message comes)

sudo rm /usr/lib/i386-linux-gnu/libGL.so

---

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/libGL.so

---

rm $HOME/.wine -rf

rm $HOME/.cache/winetricks -rf

rm $HOME/.local/share/applications/* -rf

Restart Computer

---

Step 3: By default on 64-bit Ubuntu, wine emulates Windows 64-bit. To emulate 32-bit, run (Copy, Paste) the below 2 commands in Terminal

export WINEARCH=win32

export WINEPREFIX=$HOME/.wine winecfg

Open > Terminal > Run the below command (Don't run directly from Dash)

winetricks

One-time question about helping Winetricks development >

Would you like to help winetricks development by letting winetricks report statistics ? You can reporting off at any time with the command 'winetricks --optout' >

Yes >

Winetricks window opens

---

Step 4: Running Regedit through winetricks

Run regedit > OK >

My Computer > HKEY_CURRENT_USER > Software > Wine >

New > Key > Direct3D >

New > DWORD value > MaxVersionGL >

MaxVersionGL > Modify >

Hex Value Data > 30002 >

Close Regedit >

Close Winetricks by selecting Cancel > Cancel

---

Step 5: winecfg

Open > Terminal > Run the below command >

winecfg > Libraries > New override for library > riched20 > Add > usp10 > Add > OK

(riched20 needed for Powerpoint to open properly)

(usp10 needed for Tamil/Unicode fonts to display properly

(*msxml6 will already be there due to winetricks step)

Step 6: Giving executable permissions to setup.exe & files along with it

Keep installation files of Office inside $HOME/office/

Open > Terminal > Run the below command

sudo chmod 777 $HOME/office --recursive

Step 7: To Bring "Open with Wine Windows Program Loader" When Right Clicking .exe File

Open > Terminal > Run the below command

cp /usr/share/doc/wine-stable/examples/wine.desktop ~/.local/share/applications/

Restart computer

---

Open $HOME/office/ folder > Right click over setup.exe > Open With Wine Windows Program Loader

No custom installed allowed as menu for packages while installing not working

After installation is over

Step 8: When Opening First Time

Open Word 2013 >

First things first > Ask me later > Accept

Welcome to your new Office > Next >

Sign in and get the most out of Office >

No thanks, may be later.

Meet SkyDrive > Next > All done

---

Word 2013 Working

{

Including

Spell check Red underline

Equation

Symbol

WordArt

}

---

Excel 2013 Working (including Data Analysis Addin)

---

Open Powerpoint 2013 >

Configuration Progress Window Appears

(every time when Powerpoint 2013 opens)

In order to complete setup, a system reboot is necessary.

Would you like to reboot now ? > No

Powerpoint 2013 Opens and working

---

Access 2013 Working

---

Step 9: To Associate .doc, .docx, .xls, .xlsx, .ppt, .pptx With Office Softwares

Open > Word 2007 >

Office Button > Save > Save As Dialog Box Opens > Save > Doc1.docx Created

Office Button > Save As > Word 97-2003 Document > Save As Dialog Box Opens > Save > Doc1.doc Created

Close Word 2007

---

Open > Excel 2007 >

Office Button > Save > Save As Dialog Box Opens > Save > Book1.xlsx Created

Office Button > Save As > Excel 97-2003 Workbook > Save As Dialog Box Opens > Save > Book1.xls Created

Close Excel 2007

---

Open > PowerPoint 2007 >

Office Button > Save > Save As Dialog Box Opens > Save > Presentation1.pptx Created

Office Button > Save As > PowerPoint 97-2003 Presentation > Save As Dialog Box Opens > Save > Presentation1.ppt Created

Close PowerPoint 2007

---

Open > Files ($HOME Folder) >

Right Click Over > Doc1.docx > Menu Appears > Properties > Open With > Microsoft Office Word > Set as default > Close

Right Click Over > Doc1.doc > Menu Appears > Properties > Open With > Microsoft Office Word > Set as default > Close

Right Click Over > Book1.xlsx > Menu Appears > Properties > Open With > Microsoft Office Excel > Set as default > Close

Right Click Over > Book1.xls > Menu Appears > Properties > Open With > Microsoft Office Excel > Set as default > Close

Right Click Over > Presentation1.pptx > Menu Appears > Properties > Open With > Microsoft Office PowerPoint > Set as default > Close

Right Click Over > Presentation1.ppt > Menu Appears > Properties > Open With > Microsoft Office PowerPoint > Set as default > Close

To Have Separate Word Excel Powerpoint 2013 SafeMode Launcher in Dash To Open Some Files Which Crashes in Normal Mode

(Can Also Be Used To Create Word Excel Powerpoint Launchers [Should Not Use /safe], If By Mistake $HOME/.local/share/applications/ Folder is Deleted)

Run the below command in Terminal. Copy the next 5 lines into the file. Save & Quit

gedit $HOME/.local/share/applications/word2013safe.desktop

[Desktop Entry]

Name=Microsoft Word 2013 SafeMode

Exec=wine "C:/Program Files/Microsoft Office/Office15/winword.exe" /safe

Type=Application

Icon=0575_wordicon.0

Run the below command in Terminal. Copy the next 5 lines into the file. Save & Quit

gedit $HOME/.local/share/applications/excel2013safe.desktop

[Desktop Entry]

Name=Microsoft Excel 2013 SafeMode

Exec=wine "C:/Program Files/Microsoft Office/Office15/excel.exe" /safe

Type=Application

Icon=284C_xlicons.0

Run the below command in Terminal. Copy the next 5 lines into the file. Save & Quit

gedit $HOME/.local/share/applications/powerpoint2013safe.desktop

[Desktop Entry]

Name=Microsoft PowerPoint 2013 SafeMode

Exec=wine "C:/Program Files/Microsoft Office/Office15/powerpnt.exe" /safe

Type=Application

Icon=1CE1_pptico.0

Run the below command in Terminal. Copy the next 5 lines into the file. Save & Quit

gedit $HOME/.local/share/applications/access2013safe.desktop

[Desktop Entry]

Name=Microsoft Access 2013 SafeMode

Exec=wine "C:/Program Files/Microsoft Office/Office15/msaccess.exe" /safe

Type=Application

Icon=CE2A_accicons.0

Dash > Terminal > Run the below 4 commands

chmod 777 $HOME/.local/share/applications/word2013safe.desktop

chmod 777 $HOME/.local/share/applications/excel2013safe.desktop

chmod 777 $HOME/.local/share/applications/powerpoint2013safe.desktop

chmod 777 $HOME/.local/share/applications/access2013safe.desktop

To access D, W drive easily from Office Save dialog boxes While Opened in Safe Mode

Dash > Terminal > Run Below Command

ln -s /media $HOME/M

Now the $HOME folder (My Documents from Office dialog boxes) will have M drive, within which username folder, within which all mounted drives

Restart Computer

---

Note 1:

Word 2010 Software Crashes If We Try To Save a New File in a Folder in NTFS Partition /

Can't Open a File in a Folder in NTFS Partition by Right Click & Open - Wine of Ubuntu 14.04.1 - Solution

---

Note 2: Bullet off not working by right clicking & selecting through context menu in word 2010 ( in Ubuntu 16.04) - Solution

Use bullet command button from the Home ribbon

---

Note 3: To switch between more than one open Word Excel Power point files

For Word Files > Switch to Spread Mode by pressing Super key (Windows key) + W and Select

For Excel or Powerpoint Files > Select View > Switch Windows > File Name

---

Note 4: To completely remove Office from Ubuntu (Don't Do The Below Procedure, if You Want Office in Your Computer)

Dash > Terminal > Run Below Commands

rm $HOME/.wine -rf

rm $HOME/.cache/winetricks -rf

rm $HOME/.local/share/applications/* -rf

)

Note 5: Use Fonts Used in Windows inside Ubuntu to Have Same Alignment of Office Files in Ubuntu and Windows

Copy all your fonts you use in Windows from C:\Windows\Fonts\ in a folder

Select Files > $Home > View > Show Hidden files > All Hidden Folders & Files Starting With . Get Displayed >

Create a folder .fonts , if it is not already there >

Copy folders with above fonts inside the folder $HOME/.fonts/

To completely remove added fonts from Ubuntu, Dash > Terminal > Run the below command

rm $HOME/.fonts --recursive -rf

Step C04: Additional Packages Essential For All Users, But Have To Be Downloaded From Other Websites

(Mostly Not Through Synaptic Package Manager - PAJANCOA Campus Users Check in Intranet 10.0.0.2 First)

avidemux - virtualdub like simple video editing

{

Avidemux 2.6.20 Portable in Ubuntu 18.04

https://www.fosshub.com/Avidemux.html/avidemux_2.6.20.appImage

Download .appImage file from above link in $HOME folder >

Right click over the .appImage file >

Context menu appears > Properties > Select >

Allow executing file as program > Close >

Right click over the .appImage file >

Context menu appears > Run

}

Next frame

Previous

Key frame

To Extract a selection as video clip using Set start marker [A] & Set end marker [b]

To Save as .avi - Output Format > AVI Muxer

To Save as .mkv - Output Format > Mkv Muxer

File > Save as Image > Save as BMP / Save as JPEG > To save as images

To Merge 2 Video Clips of Same Resolution

File > Open >

File > Append

To Change Resolution of a Video Using Resize / Add Border / Crop

Video > Filters > Transform > Add Borders / Crop / Resize / .... > Double Click > Set Values > OK > Preview > Close

File > Save

Can save quickly in the same source quality without resource hungry rendering by setting Video Output > Copy , Audio Output > Copy

To Save Video Only (Audio to be Removed)

Audio > Select Track > Deselect Track(s) > File > Save

To Save Audio (Track) Only

Audio > Save Audio

To Add / Change Audio Track

Audio > Select Track > Select Track(s) > Add Audio Track > OK > File > Save

Note:

In Avidemux of Ubuntu 14.04, Save (Export) to Folder Other Than $HOME Folder

}

dukto - To Transfer Files in LAN Between Ubuntu, Windows , Android Easily - http://msec.it/dukto - After Downloading Open With gdebi to install

Tor Browser - www.torproject.org - Use Tor Browser, to overcome cPanel Error "IP Address Has Changed!" - Gives anonymity also

woeusb - winusb fork - to create bootable disk from Windows .iso files -

{

sudo add-apt-repository http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get install woeusb

Plug usb disk

Disks > Unmount partitions of usb disk, if any mounted

Method 1:

Woeusb > Select .iso file > Select usb drive > Install

Method 2:

Example command

sudo woeusb --device win10pro.iso /dev/sdb

}

xdm - Xtreme Download Manager - http://xdman.sourceforge.net/

{

Also Install Firefox Addon - XDM Browser Monitor

}

youtube-dlg - gui for youtube-dl - no need to install youtube-dl - smplayer may install youtube-dl, but that will be in separate folder

(

Download URL - http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/y/youtube-dlg/ - https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8

After Downloading Open With gdebi to install

To get 720p/360p output & filename with title & id inside $HOME/movies folder

Dash > YouTube DL GUI > Options >

Commands > Command line arguments >

-f 22 --write-auto-sub -o movies/%(title)s-%(id)s.%(ext)s

(if 720p [22] is not available it will download the highest quality available below this)

Below steps only for PAJANCOA Campus users to use youtube-dlg:

Select Network > Network Proxy > Method: Manual >

HTTP Proxy: 10.0.0.1 > 3128 >

HTTPS Proxy: 10.0.0.1 > 3128 >

FTP Proxy: 10.0.0.1 > 3128 >

Socks Host: 10.0.0.1 > 3128 >

Apply system wide > Close dialog box > Restart computer

Note:

best best available quality

140 m4a audio only DASH audio , audio@128k

139 m4a audio only DASH audio , audio@48k

17 3gp 176x144

36 3gp 320x240

43 webm 640x360

18 mp4 640x360

22 mp4 1280x720

---

If YouTube DL GUI is outdated, & not downloading latest youtube-dl, use below commands

rm -f $HOME/.youtube-dl-gui/*

curl -L https://yt-dl.org/downloads/latest/youtube-dl -o $HOME/.youtube-dl-gui/youtube-dl

sudo chmod 777 $HOME/.youtube-dl-gui/youtube-dl

--------------------

To list all available formats

Dash > Terminal >

$HOME/.youtube-dl-gui/youtube-dl -F https://www.youtube.com/watch?v=<youtubeid>

)

UnMHT - To save webpages in .mht format - Have To Be Downloaded Through Firefox > Tools > Add-ons

Snap (Only) Packages

gydl - simple GUI for youtube-dl (Tested in Ubuntu 18.04)

{

After clicking download, GUI will disappear

GUI will appear back after completion

If format unavailable, unsucessful message will appear

Move downloaded file from the subfolder inside $HOME/snap/ folder into $HOME, etc.. folder and then play

}

Step C05: Additional Packages Essential For Some Users

apt-rdepends - list the dependencies of a package ( apt-rdepends package )

armagetronad - game - 3D Tron like - only turn 90 degrees wall leaving motorbike - opponent - AI, Humans in Network, Both

arp-scan - to find mac address of a computer from its ip

astromenace - shoot game

auto-multiple-choice - to create and manage Multiple Choice Questionnaires (MCQ) with automated marking/correcting

(

Option to shuffle randomly questions and answers within each question

Scanned completed answers sheets can be marked/corrected automatically

Scanned completed answers sheets can be marked/corrected manually by one click on boxes that are ticked

)

autoconf - automatic configure script builder

bino - 3D video player

(

To watch 3D using Red/Cyan glasses , select left/right half width in input, Red/Cyan glasses full color in output

To watch 3D as 2D, select left/right half width in input, left in output

To avoid crash in some systems while changing above settings in low end computers, run from Terminal, bino --input=left-right-half --output=mono-left [file]

)

bluefish - html editor / tutor

boswars - game - real time strategy game - multiplayer - LAN game - online

build-essential - Source compilation, C, C++

cellwriter - Input through Handwriting

chrome - www.google.com/chrome

{

To Know the Google Chrome Version

From the Downloaded

google-chrome-stable_current_amd64.deb >

Extract the Compressed File

/usr/share/doc/gnome-chrome-stable/changelog.gz

---

From the Compressed File

changelog.gz

Extract the Text File

changelog

---

Above changelog File Contains

Google Chrome Version Information

Example Version Number of Google Chrome

59.0.3071

Current Google Chrome Version - https://en.wikipedia.org/wiki/Google_Chrome_version_history

}

chntpw - To blank Windows password - unetbootin can create bootusb from chntpw.iso of http://pogostick.net/~pnh/ntpasswd/cd110511.zip

clamtk-nautilus - Installs clamtk (GUI For ClamAV of Linux), clamtk-gnome in Ubuntu 16.04 - Ubuntu 14.04 & Earlier Have To Install clamtk

(

ClamAV Through Clamtk in Linux Provides Only On Demand Scanning

Database Files main.cvd & daily.cvd are located in $HOME/.clamtk/db/

Example $HOME/.clamtk/db/local.conf File Below (Settings Can Be Set Through GUI Also) - DatabaseMirror 10.0.0.1 Needed Only For PAJANCOA Campus Users

DatabaseMirror 10.0.0.1

DatabaseMirror db.local.clamav.net

DatabaseMirror database.clamav.net

Note: ClamAV Database Signatures (main.cvd, daily.cvd) Can Be Manually Downloaded From Links Given Below & Saved in Database Folder $HOME/.clamtk/db/

Immunet Antivirus For Windows Using ClamAV Engine & Definition

Alternate ClamWin Provides Only On Demand Scanning

Step1 : Download From

www.immunet.com

ImmunetSetup.exe

and run it

Step 2: Enable ClamAV Engine

Immunet > Settings > Enable ClamAV Engine > On

Immunet > Settings > Allow Definition Updates > On

Step 3: Updating ClamAV Signatures (main.cvd, daily.cvd) Through Signature Configuration UI

Open C:\Program Files\Immunet\clamav\sigui

(PAJANCOA Campus Users, Type 10.0.0.1 in Download Official Signatures From Mirror Combo Box & Click Save Settings)

Click Run freshclam to test configuration

Note: To Test Whether Immunet Real Time Protection is Working, Download EICAR (Harmless) Virus Test File From The Below Link

www.eicar.org/download/eicar.com.txt

To Set ClamAV Database (main.cvd, daily.cvd) Private Local Mirror

Install Apache Webserver Using The Command Below

sudo apt-get install apache2

Install ClamAV Using The Command Below

sudo apt-get install clamav

sudo nano /root/clamavdb.sh

#!/bin/bash

sudo rsync --delete -avz /var/lib/clamav/main.cvd /var/www/html/

sudo rsync --delete -avz /var/lib/clamav/daily.cvd /var/www/html/

sudo rsync --delete -avz /var/lib/clamav/bytecode.cvd /var/www/html/

sudo nano /etc/clamav/freshclam.conf

DatabaseOwner clamav

DatabaseDirectory /var/lib/clamav

ScriptedUpdates no

CompressLocalDatabase yes

DatabaseMirror db.local.clamav.net

DatabaseMirror database.clamav.net

Note:

CompressLocalDatabase yes will give .cvd no will give .cld

For Remainig default settings are ok (e..g checks 12) - http://manpages.ubuntu.com/manpages/wily/man5/freshclam.conf.5.html

sudo chmod 755 /root/clamavdb.sh

sudo crontab -e

30 * * * * sudo /root/clamavdb.sh

cryptkeeper - can encrypt a folder with a password

cutycapt - html web page to various formats like pdf, ps, svg, png, jpg, tiff, gif, bmp, ...

(

cutycapt --url=http://www.pajancoa.ac.in/students_bsc_fees.htm --out=pjn.pdf

cutycapt --url=http://www.pajancoa.ac.in/students_bsc_fees.htm --out=pjn.png --http-proxy=192.168.0.1:3128

)

deluge - torrent client that works well even in closed port network, where transmission face difficulty

dia - needed for Inkscape additional features - - install along with dia-gnome

dia-gnome - to draw flowcharts, entity-relationship models, Unified Modeling Language (UML) diagrams, network diagrams, electrical circuits

d-lan - To transfer files in LAN like dukto, transferonlan- http://www.d-lan.net/ - has distributed transfer feature also

(

Better than dukto & transferonlan for heavy sharing of same file like in LAN Party

Torrent like distributed transfers among peers available with hashing

Package .deb depends on libprotobuf7, but 14.04.1 has only libprotobuf8, so download from http://packages.ubuntu.com/precise/amd64/libprotobuf7/download

Browse & download other peers shared folders

Manage the download queue

Global chatting

D-LAN can run without GUI and be controlled remotely

Available for Linux & Windows

)

dosbox - Useful to run dos based softwares (dosemu is an alternative to this)

dosemu - Useful to run dos based softwares (dosbox is an alternative to this)

dpkg-repack - to create deb packages from installed computer or from Ubuntu live .iso files

eclipse - Eclipse IDE (installs eclipse-platform, eclipse-jdt - Eclipse Java Development Tools also)

eclipse-cdt-qt - Eclipse Qt Framework Tools - Qt Better (installs eclipse-cdt - C/C++ Development Tools also - monodevelop better)

eclipse-wtp-webtools - Eclipse HTML, CSS and Javascript tools

elinks - text based web browser - can work even through SSH (for modem access change secured setting in ACL)

eog - eye of gnome - image viewer - faster than mirage to see 1 or few files

etherwake - to send magic Wake-on-LAN packets (sudo is needed)

ethtool - powerful command line tool to display or change Ethernet device settings

extremetuxracer - slide in a snow covered mountain as quickly as possible

evince - Document Viewer - multi page tiff, postscript viewer and to read and print protected .pdf and .wwf files

fdclone - fd stands for file directory - command line based file manager

ffmulticonverter - FF Multi Converter is a gui to convert audio, video, image and document files between all popular formats (expecting in ubuntu repo)

flightgear - game - flight simulator

flowblade - non linear video editor like kdenlive

fort77 - FORTRAN 77 for ICAR exam ( fort77 <space> <filename> <enter> where <filename> should have extension .f. To run ./a.out <enter> )

fotoxx - simple panorama photo editor / stitch photo like hugin

freesurfer - to process and analyze (human) brain MRI images

{

Installation procedure in Ubuntu 14.04 / Ubuntu 16.04

http://freesurfer.net/fswiki/freesurfer_linux_developers_page

https://surfer.nmr.mgh.harvard.edu/fswiki/LinuxInstall

}

fsarchiver - for partition backup / restore like partclone - Destination can be smaller than source as it is file based & not block based copy

(

See the Paragraph with Heading - To clone an installation of Ubuntu to many computers or To take backup / restore installed Ubuntu

)

filezilla - ftp client - gftp-gtk is simple but not updated

( To clear congested user interface

Hide hidden files by selecting View > Directory listing filters > Configuration files (Local filters/Left pane) > Configuration files (Remote filters/right pane) > OK

Right click over the column headers and select the columns that should be displayed (e..g filename alone)

Deselect View > Message log, View > Local directory tree, View > Remote directory tree, View > Transfer queue

To go to parent folder, double click at the 2 dots ( .. )

)

fritzing - EDA (Electronic Design Automation) software - multisim equivalent - less features & less learning curve than kicad

folder-color - http://foldercolor.tuxfamily.org/ - Right-click over a folder & set color to easily spot it (expecting in repo)

freecad - Autocad FOSS alternative like librecad

fslint - Can find duplicate files, empty folders, bad file names, .... within a folder tree

fsprotect - Can be used to freeze a particular partition

gbrainy - Memory trainer

gespeaker - Along with mbrola, mbrola-en1, mbrola-us1, mbrola-us2, mbrola-us3, cicero,espeak-gui a powerful text to speech converter and to know pronunciation

gfortran - FORTRAN 95 ( gfortran <space> <filename> <enter> where <filename> should have extension .f. or .f90 To run ./a.out <enter> )

gimp-gmic - for image processing through gimp (install gmic also) - GIMP > Filters > GMIC...

glade - GUI RAD Visual Programming - generates XML code

gnash - to play .swf files saved in hard disk

gnome-boxes - use same libvirt backend as virt-manager - good to test easily, live .iso boot images in virtual environment

(

without hardware virtualization (Intel VT-x or AMD-V) local virtual machines will be slow, but works, though document tells it as mandatory

keep .iso in $HOME or in $HOME/.local/share/gnome-boxes/ (default location of images) to avoid permission issues

virt-manager may have advanced features

)

gnome-clocks - stopwatch, timer, and world clock (can add / show many places times)

gnome-disk-utility - Has gnome-disk-image-mounter - Right click .iso > Open with Disk Image Mounter - Mounts win8.1.iso correctly with lowercase folders/files

(

To create automount D drive

Ubuntu 14.04.1 > Disks > Partition > More actions icon > Edit Mount Options > Automatic Mount Options > OFF > Check > Mount at startup > Check > Show in user interface > OK

Will be mounted in /mnt and not in /media , but can change options in the above dialog box to mount it in /media

)

gnome-encfs-manager - Cryptkeeper alternative - GUI to encfs for encrypting a folder

(

https://launchpad.net/~gencfsm/+archive/ubuntu/ppa

sudo add-apt-repository http://ppa.launchpad.net/gencfsm/ppa/ubuntu

)

gnome-schedule - Download from https://bugs.launchpad.net/ubuntu/+source/gnome-schedule/+bug/1576060/comments/23

gnome-subtitles - stable subtitle editor to do time shift, etc.. with video preview

gnome-sushi - to preview files in GNOME Files (Select File > Spacebar) - Install unoconv also

{

unoconv - to preview files in GNOME Files using gnome-sushi (Select File > Spacebar)

}

gns3 - GUI for Network simulator 3

gnucash - Accounts software - Tally alternative

gnumeric - light weight electronic spreadsheet with nearly all main features which LibreOffice Calc has & statistical analysis (runs on Ubuntu, Windows, Android, ...)

gprename - Simple batch renaming

grass - Geographic Resources Analysis Support System (GRASS GIS)

grass-doc - GRASS GIS Documentation

gretl - Gnu Regression, Econometrics and Time-series Library (ARIMA, logit, probit,...)

grml-rescueboot - adds entry in grub2 when linux .iso files are copied into /boot/grml folder (using sudo nautilus) & sudo update-grub executed

(Note: For Win OS boot using GRUB2, see http://ubuntuforums.org/showthread.php?t=2035071)

grub-customizer - Grub2 GUI - Eventhough not in repo highly essential - https://launchpad.net/~danielrichter2007/+archive/ubuntu/grub-customizer

gscan2pdf - scan to pdf - capable of OCR - Optical Character Recognition (Import pdf > Tools > OCR) - ocrfeeder best

gstreamer0.10-fluendo-mp3 - enhanced mp3 codec from fluendo (Fraunhofer IIS and Thomson)

gstreamer0.10-plugins-bad - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer0.10-plugins-bad-multiverse - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer0.10-plugins-good - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer0.10-plugins-ugly - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer1.0-clutter - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer1.0-crystalhd - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer1.0-libav - multimedia format support (mainly in Pitivi, GNOMEVideos, handbrake, etc...)

gstreamer1.0-gnonlin - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer1.0-plugins-good - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer1.0-plugins-ugly - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gstreamer1.0-vaapi - multimedia format support (mainly in Pitivi, GNOMEVideos, etc...)

gufw - GUI for Uncomplicated Fire Wall (fwbuilder may be considered as it has options to use connlimit module, but little complicated)

gummi - latex editor with live preview

hardinfo - displays information about hardware and operating system (can give more information using lm-sensors)

default-jdk - to install softwares like Hadoop

{

java -version

After Installing, Above Command Should Give Below or Similar Output

openjdk version "1.8.0_91"

OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)

OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

To Install Hadoop in Standalone Mode (Simple - Best for Learning)

https://www.digitalocean.com/community/tutorials/how-to-install-hadoop-in-stand-alone-mode-on-ubuntu-16-04

http://hadoop.apache.org/releases.html

}

htop - command line based system monitor (better than top)

hugin - panorama photo editor / stitch photo

(

To stitch (non-panoramic) 2 or more different size images horizontally / vertically

Hugin > Load Images > Select 1st image > Lens type: Normal (rectilinear) > HFOV: 10 > OK

Repeat above for 2nd or more number of images

To scale a loaded photo > Select > Interface > Advanced > Photos > Select the photo > Focal length > Change value >

Scale photos to match others width / height

(If photos are of same size, above step is not needed)

Move/Drag > Drag vertical / horizontal scroll bars to scale background > Drag all images & arrange them touching each other slightly or overlapping (if needed) vertically / horizontally >

Crop > Autocrop > Manually move the crop border to change the crop size (if needed) >

Assistant > Create Panorama > Output parameters dialog box > Format: tiff / jpg / png >

Width / Height in pixels > Click Ok / Save (if asked) >

Batch Processor dialog box appears with Batch successfully message at the status bar >

Stitched image will be available in the same folder where the source files are already

Note: Stich 2 images at a time for simplicity

Below 2 lines for those who want to use Control Points

Before Creating Panorama, select View > Panorama editor > Control points > Click over photos > Add > Align

http://hugin.sourceforge.net/tutorials/index.shtml

)

iat - ISO Analyser Tool - CLI based - converts many image formats like .nrg, .bin to .iso

icedtea-plugin - plugin for open java 7 run time environment, to run applets in web browsers like Firefox or Chromium

iftop - real time console based bandwidth usage by pairs of hosts on an interface (sudo iftop)

iproute2 - to replace net-tools - includes ss (ss -rt - to replace netstat) , ip (ip neigh - to replace arp)

jabref - To edit .bib BibTeX / bibliography files - can also use offline pdf or online (e..g Google Scholar)

jnettop - real time console based bandwidth monitor of interfaces (sudo jnettop)

kalzium - Periodic table and chemistry tools

kbibtex - To edit .bib BibTeX / bibliography files - an alternative to jabref

kgeography - To learn geography

kicad - EDA (Electronic Design Automation) software - multisim equivalent - more features & more learning curve than fritzing

kile - Qt based Latex editor

kile-doc - Documentation for Qt based Latex editor

kmplayer - KDE video player

lame - MP3 encoding library

latex-beamer - to create presentation slideshows using latex

latexdraw - Vector drawing program for LaTeX

lib32bz2-1.0 - ia32-libs replaced by lib32z1, lib32ncurses5, lib32bz2-1.0

lib32ncurses5 - ia32-libs replaced by lib32z1, lib32ncurses5, lib32bz2-1.0

lib32z1 - ia32-libs replaced by lib32z1, lib32ncurses5, lib32bz2-1.0

libavcodec53 - multimedia support

libavdevice53 - multimedia support

libavfilter2 - multimedia support

libavformat53 - multimedia support

libavutil51 - multimedia support

libpostproc52 - multimedia support

libavifile-0.7c2 - multimedia support files

libdvdnav4 - for navigating advanced features of DVDs, like menus

libdvdread4 - to read encrypted DVDs

libgxps-utils - Includes xpstopng, xpstopdf, xpstosvg, xpstojpeg, ... - xpstopdf <filename.xps>

libmad0 - MPEG audio decoder library

libjpeg62 - Needed to install RStudio

OpenCV programming using Qt in Ubuntu 14.04.x (Only for experienced users)

Step 1: Install the below packages

libopencv-dev - OpenCV - Open Source Computer Vision Library

[

depends on / also installs

libcv-dev

libcvaux-dev

libopencv-calib3d-dev {depends on libopencv-calib3d2.4},

libopencv-contrib-dev {depends on libopencv-contrib2.4},

libopencv-core-dev {depends on libopencv-core2.4}

libopencv-features2d-dev {depends on libopencv-features2d2.4},

libopencv-flann-dev {depends on libopencv-flann2.4},

libopencv-gpu-dev

libopencv-imgproc-dev {depends on libopencv-imgproc2.4}

libopencv-legacy-dev {depends on libopencv-legacy2.4},

libopencv-ml-dev {depends on libopencv-ml2.4}

libopencv-objdetect-dev {depends on libopencv-objdetect2.4}

libopencv-ocl-dev {depends on libopencv-ocl2.4},

libopencv-photo-dev {depends on libopencv-photo2.4}

libopencv-superres-dev {depends on libopencv-superres2.4}

libopencv-ts-dev {depends on libopencv-ts2.4},

libopencv-video-dev {depends on libopencv-video2.4}

libopencv-videostab-dev {depends on libopencv-videostab2.4 (depends on libopencv-gpu2.4)}

pkg-config

libopencv-highgui-dev

{

depends on libopencv-highgui2.4, libavcodec-dev, libavformat-dev, libswscale-dev, libgtk2.0-dev, libjasper-dev, libjpeg-dev, libpng-dev, libtiff-dev, libraw1394-22-dev, libdc1394-22-dev

}

]

Below packages may also be installed along with libopencv-dev ( OpenCV )

{

build-essential

checkinstall

libgstreamer0.10-dev

libgstreamer-plugins-base0.10-dev

libv4l-dev {depends on libv4l-0}

opencv-data

opencv-doc

python-dev

python-opencv {depends on python-numpy, python}

qt-sdk (IDE)

}

Step 2:

Create C++ Qt project using Qt creator as explained in the heading

C / C++ Program using Qt Creator

Step 3:

In a terminal run the below command

pkg-config opencv --cflags

Output will be

-I/usr/include/opencv

Step 4:

In a terminal run the below command

pkg-config opencv --libs

Output will be

/usr/lib/x86_64-linux-gnu/libopencv_calib3d.so /usr/lib/x86_64-linux-gnu/libopencv_contrib.so /usr/lib/x86_64-linux-gnu/libopencv_core.so /usr/lib/x86_64-linux-gnu/libopencv_features2d.so /usr/lib/x86_64-linux-gnu/libopencv_flann.so /usr/lib/x86_64-linux-gnu/libopencv_gpu.so /usr/lib/x86_64-linux-gnu/libopencv_highgui.so /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so /usr/lib/x86_64-linux-gnu/libopencv_legacy.so /usr/lib/x86_64-linux-gnu/libopencv_ml.so /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so /usr/lib/x86_64-linux-gnu/libopencv_ocl.so /usr/lib/x86_64-linux-gnu/libopencv_photo.so /usr/lib/x86_64-linux-gnu/libopencv_stitching.so /usr/lib/x86_64-linux-gnu/libopencv_superres.so /usr/lib/x86_64-linux-gnu/libopencv_ts.so /usr/lib/x86_64-linux-gnu/libopencv_video.so /usr/lib/x86_64-linux-gnu/libopencv_videostab.so -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_ocl -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab

Step 5:

So add the below 2 lines in .pro based on the output in Step 3 & Step 4

INCLUDEPATH += /usr/include/opencv

LIBS += /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so /usr/lib/x86_64-linux-gnu/libopencv_contrib.so /usr/lib/x86_64-linux-gnu/libopencv_core.so /usr/lib/x86_64-linux-gnu/libopencv_features2d.so /usr/lib/x86_64-linux-gnu/libopencv_flann.so /usr/lib/x86_64-linux-gnu/libopencv_gpu.so /usr/lib/x86_64-linux-gnu/libopencv_highgui.so /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so /usr/lib/x86_64-linux-gnu/libopencv_legacy.so /usr/lib/x86_64-linux-gnu/libopencv_ml.so /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so /usr/lib/x86_64-linux-gnu/libopencv_ocl.so /usr/lib/x86_64-linux-gnu/libopencv_photo.so /usr/lib/x86_64-linux-gnu/libopencv_stitching.so /usr/lib/x86_64-linux-gnu/libopencv_superres.so /usr/lib/x86_64-linux-gnu/libopencv_ts.so /usr/lib/x86_64-linux-gnu/libopencv_video.so /usr/lib/x86_64-linux-gnu/libopencv_videostab.so -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_ocl -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab

Step 6:

Create Programs Based on the Programs Given in the Below Heading in This Page

Sample Qt Program 1

Sample Qt Program 2

Sample Qt Program 3

Sample Qt Program 4

Sample Qt Program 5

Sample OpenCV program 1

Sample OpenCV program 2

Sample OpenCV program 3

Sample OpenCV program 4

libquicktime2 - library for reading and writing Quicktime files

librecad - Autocad FOSS alternative like freecad

libreoffice-writer2latex - LibreOffice Writer/Calc to Latex converter

libswscale2 - multimedia support

libva1 - Video Acceleration (VA) API for Linux

libxine1-all-plugins - multimedia support

livewallpaper - sudo add-apt-repository http://ppa.launchpad.net/fyrmir/livewallpaper-stable/ubuntu - sudo apt-get update -o Acquire::AllowInsecureRepositories=true

livewallpaper-config - needed to change above OpenGL based livewallpaper

lm-sensors - temperature / voltage / fan sensors (hardinfo can give more information using this)

logkeys - key logger

(

gedit $HOME/logkeys.map

<Esc>

1 ! 1

2 @

3 #

4 $

5 %

6 ^

7 &

8 *

9 ( 9

0 ) 0

- _

= + =

<BckSp>

<Tab>

q Q

w W

e E

r R

t T

y Y

u U

i I

o O

p P

[ {

] }

<Enter>

<LCtrl>

a A

s S

d D

f F

g G

h H

j J

k K

l L

; : ;

' " '

` ~ `

<LShft>

\ |

z Z

x X

c C

v V

b B

n N

m M

, < ,

. > .

/ ? /

<RShft>

<CpsLk>

<LAlt>

<CpsLk>

<F1>

<F2>

<F3>

<F4>

<F5>

<F6>

<F7>

<F8>

<F9>

<F10>

<NumLk>

<ScrLk>

<KP7>

<KP8>

<KP9>

<KP->

<KP4>

<KP5>

<KP6>

<KP+>

<KP1>

<KP2>

<KP3>

<KP0>

<KP.>

Ĉ

<F11>

<F12>

<KPEnt>

<RCtrl>

<KP/>

<PrtSc>

<AltGr>

<Break>

<Home>

<Up>

<PgUp>

<Left>

<Right>

<End>

<Down>

<PgDn>

<Ins>

<Del>

<Pause>

<LMeta>

<RMeta>

<Menu>

To Start

sudo logkeys --start --output test.log --keymap=logkeys.map

To Stop

sudo logkeys --kill

)

lyx - WYSIWYG-frontend for LaTeX, but store files in its own format (good for learning LaTex syntax)

mencoder - codec - MPlayer's Movie Encoder

mirage - advanced image viewer (open folder with pictures with option whether to include subdirectories, preload images for faster navigation of large number of files)

Molch Encfs Manager - Portable Qt based fork of gnome-encfs-manager

(

https://moritzmolch.com/apps/gencfsm/

Install encfs

MEncfsM

Mark file as executable and run it

)

mono-complete - mono complete

monodevelop - IDE for C, C++, C#, Java, ASP.NET, ASP.NET MVC, VB.NET, Glade Import, ... (GUI RAD Visual Programming generates C# code)

monodevelop-database - Database plugin for MonoDevelop - MySQL, PostgreSQL, SQLite, Microsoft SQL Server

mpv - fork of mplayer & mplayer2 - right clcik any video file & select mpv Media Player (as it is CLI based)

mtpaint - Can move cursor using arrow keys pixel by pixel. Status bar shows row, column position & RGB values by default. Good for pixel art. Light in resource.

mtpfs - To properly mount Android 4.0+ devices

mupdf - quality .oxps, .xps file viewer (to convert to other formats, have to use screenshot after opening)

mysql-client - Mysql Client

net-tools - Includes netstat, arp, ifconfig, rarp, nameif and route

netbeans - IDE for Java, C / C++, FORTRAN, HTML5, CSS, Javascript, GUI Builder

nitroshare - to share files / folder in LAN. Qt5 based. Concentration in Ubuntu LTS - Works in WindowsXP-8.1 - http://nitroshare.net/downloads/

ns2 - Network simulator 2 (also install nam xgraph build-essential autoconf automake libxmu-dev gcc g++, Use ns & nam in Terminal)

(

http://vibhanshu86.wordpress.com/2014/06/17/installing-ns2-on-ubuntu-14-04/

Install ns2 & nam in Ubuntu 14.04 following the below procedure, as installing from Software center has issues in running

Download ns-allinone-2.35.tar.gz from the below link in $HOME folder

http://sourceforge.net/projects/nsnam/

or

https://dl.dropboxusercontent.com/u/24623828/ns-allinone-2.35.tar.gz

Run the below commands in Terminal

sudo apt-get remove ns2 nam

sudo apt-get install build-essential autoconf automake libxmu-dev

tar zxvf ns-allinone-2.35.tar.gz

gedit $HOME/ns-allinone-2.35/ns-2.35/linkstate/ls.h

Replace the content in line number 137 with the below line. Save & Quit

void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }

cd ns-allinone-2.35

sudo ./install

Using the command

gedit $HOME/.bashrc

add the below 3 lines to the end of the file

export PATH=$PATH:~/ns-allinone-2.35/bin:~/ns-allinone-2.35/tcl8.5.10/unix:~/ns-allinone-2.35/tk8.5.10/unix

export LD_LIBRARY_PATH=~/ns-allinone-2.35/otcl-1.14:~/ns-allinone-2.35/lib:$LD_LIBRARY_PATH

export TCL_LIBRARY=~/ns-allinone-2.35/tcl8.5.10/library:$TCL_LIBRARY

Restart computer & use commands ns, nam in Terminal

)

nvidia-??? - Installing Latest nVidia Drivers From PPA https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa/ in Ubuntu 14.04.1

For Example, In Ubuntu 14.04.1

Viewing Through Dash > Synaptic Package Manager

Shows These nVidia Driver Versions Available

(nvidia-??? or nvidia-???-updates)

nvidia-352 (352.63)

nvidia-352-updates (352.63)

nvidia-346 (352.63)

nvidia-346-updates (352.63)

nvidia-340 (340.96)

nvidia-340-updates (340.96)

nvidia-331 (340.96)

nvidia-331-updates (340.96)

nvidia-319 (331.113)

nvidia-319-updates (331.113)

nvidia-313-updates (319.60)

nvidia-310 (319.60)

nvidia-310-updates (319.60)

nvidia-304 (304.131)

nvidia-304-updates (304.131)

nvidia-173 (173.14.39)

Latest nVidia Driver Version As on 28.Jun.2016 As Per http://www.nvidia.com/object/unix.html is

367.27 (long lived branch)

364.19 (short lived branch)

340.96 (legacy 340.xx series)

304.131 (legacy 304.xx series)

173.14.39 (legacy 173.14.xx series)

96.43.23 (legacy 96.43.xx series)

71.86.15 (legacy 71.86.xx series)

Step 1:

Dash > Terminal > Run Below Commands

sudo add-apt-repository http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

Step 2:

Now Viewing Through Dash > Synaptic Package Manager

Shows Additionally These Latest nVidia Driver Versions

nvidia-355 (355.11)

nvidia-358 (358.16)

nvidia-361 (361.45.11)

nvidia-364 (364.19)

nvidia-367 (367.27)

And Latest Versions of Already Existing Driver Version Packages

nvidia-352 (352.79)

nvidia-352-updates (352.79)

Install Any One nvidia-??? Package Based on The nVidia GPU Available in Your Computer

)

obs-studio - Open Broadcaster Software (OBS) - streaming and recording program - sudo add-apt-repository http://ppa.launchpad.net/obsproject/obs-studio/ubuntu

octave - Matlab equivalent (octave --force-gui to start the GUI first time in Ubuntu 14.04.1 - While running right click over icon in launcher & select Lock to Launcher)

(

octave-* - includes lot of add-on packages for ~230MB

octave-statistics, octave-econometrics, octave-tsa, octave-financial, octave-image, octave-audio,

octave-signal, octave-missing-functions, octave-nnet, octave-zenity, octave-doc, etc...

)

okular-extra-backends - okular is a powerful viewer with annotation (no export to pdf as in xournal) support for pdf, pictures, etc... Handles .tiff multipages well.

openjdk-7-jre - Open Java Runtime Environment

opensc - To manage DSC (Digital Signature Certificate) USB tokens / Smart Cards

(

https://github.com/OpenSC/OpenSC/wiki

https://www.opensc-project.org/opensc/wiki/QuickStart

https://github.com/OpenSC/OpenSC/wiki/Feitian-ePass2003

https://www.safescrypt.com/drupal/download/ePass2003_User_Guide.pdf

http://ftsafe.com/product/epass/epass2003

)

openssh-client - Includes softwares like ssh, sftp, scp, etc...

partclone - partition backup / restore like fsarchiver - partclone.dd, partclone.ext4, partclone.ntfs, partclone.restore, ...

phatch - photo batch processor (batch image file conversion, e..g .jpg to .ppm, batch image files processing, etc...)

phonon-backend-gstreamer - needed for kdenlive for proper multimedia support

photofilmstrip - to create movies from a group of pictures

pinguybuilder - To Create Custom Ubuntu .iso (<=4GB) - UEFI support - sudo PinguyBuilder

(

Before installing remove remastersys, uck, etc... as pinguybuilder is fork of remastersys

Install gdebi, if not already installed

http://sourceforge.net/projects/pinguy-os/files/ISO_Builder/

xresprobe if asked can be downloaded from https://launchpad.net/ubuntu/+source/xresprobe

)

pitivi - Audio/Video editor using GStreamer (install frei0r-plugins also) (pitivi uses Gstreamer whereas kdenlive uses FFMpeg, so format supported may vary)

pktstat - network interface monitoring tool

poppler-utils - necessary for recoll

powerwake - to send magic Wake-on-LAN packets

praat - program for speech analysis and synthesis

python-web2py - Compact web development framework using python - includes easy to start/stop webserver - SQLite (single file) database by default - functionalities out of the box

qgis - Quantum GIS

qgis-plugin-grass - To access GRASS through Quantum GIS

qb64 - QB64 is compatible with QBasic (can run in Ubuntu DOSBox) code, IDE looks alike - BASIC programming for ICAR exam

{

Expecting in repo

Install the following packages before running QB64 setup:

libsdlx.x-dev, libsdl-imagex.x-dev, libsdl-mixerx.x-dev, libsdl-netx.x-dev, libsdl-ttfx.x-dev, timidity, g++, where each x denotes a number

http://www.qb64.net/

Basic filename extension - .bas, Select Run > Start (F5)

}

qbittorrent - utorrent like gui - written in c++, qt with search engine - easy ban ip

qupzilla - Qt based multiplatform light weight web browser

r-cran-rcmdr - GUI to R statistical analysis software - To install additional R packages from R prompt, use install.packages()

rstudio - GUI to R statistical analysis software - Install r-base, libjpeg62, then install RStudio - manual download - www.rstudio.com

recoll - full text search tool

(

Install poppler-utils also. To include a folder in search, select Preferences > Indexing configuration > Top directories > + > Select folder > OK. To rebuild index, select File > Rebuild index

)

ring - P2P alternative to Skype - Supports Android, Windows, Ubuntu - https://ring.cx/

rkward - GUI to R statistical analysis software

samba - for folder & print server (sudo gedit /etc/samba/smb.conf, browsable = yes guest ok = yes ) access from windows clients

samsungmfp-configurator-qt4 - samsung printer driver ( deb http://www.bchemnet.com/suldr/ debian extra )

samsungmfp-data - samsung printer driver ( deb http://www.bchemnet.com/suldr/ debian extra )

samsungmfp-driver - samsung printer driver ( deb http://www.bchemnet.com/suldr/ debian extra )

samsungmfp-scanner - samsung printer driver ( deb http://www.bchemnet.com/suldr/ debian extra )

scribus - Publisher to create like ebooks, newsletters, newspapers, posters, annual reports, etc...

simple-scan - scanning software (For quality run each time before scan this command in Terminal in Ubuntu 14.04 rm -rf $HOME/.cache/simple-scan )

simplescreenrecorder - Expecting in ubuntu repo (http://www.maartenbaert.be/simplescreenrecorder/)

sqlitebrowser - Qt based GUI to manage SQLite (single file) database

sox - Swiss army knife of audio processing (Command to convert to Karaoke - sox test.mp3 result.mp3 oops) (install libsox-fmt-all also)

sshfs - to mount remote computer folders as local folders (delete,edit,... supported)

(

sshfs <remoteuser>@<remoteip>:<remotepath> <localpath>

E..g

mkdir $HOME/tt/

sshfs svishnunithyasoundhar@192.168.1.101:/home/svishnunithyasoundhar/ $HOME/tt/

sudo umount $HOME/tt/

)

sweethome3d - 2d home designing with furnitures, etc...

syncthing - peer to peer file sharing in LAN and Internet with security - http://syncthing.net/ (expecting in repo) - BTSync equivalent - local discovery not perfect

synfigstudio - GUI of synfig - 2D (flash like) animation software - FOSS alternative to SwishMax

(

synfig-examples - get installed with synfigstudio

synfig - Install this in addition to synfigstudio

)

tcptrack - real time console based bandwidth usage by pairs of hosts on an interface (sudo tcptrack -i eth0)

teeworlds - LAN game (teeworlds-server have to be installed) - 2D shooter

tesseract-ocr-tam - Tamil OCR - Optical Character Recognition ( Use GUI ocrfeeder )

testdisk - data recovery tool (sudo photorec)

(

sudo photorec - ignores file system and recover data - work even if file system is damaged or reformatted or recreated

sudo testdisk - to recover lost partitions and/or make non-booting disks bootable again

For Advanced Users

If all the photorec recovered files are inside /home/comuser/rec/ with lot of subfolders inside

To move all the *.pdf files from there and in sub folders to /media/comuser/D/pdfcollect/

Change in Terminal to the folder /home/comuser/rec/ and issue the below command

find -iname '*.pdf*' -type f -exec mv '{}' /media/sachod/D/xlsxlsx/ -v ';'

)

texinfo - needed to avoid error "/usr/bin/texi2dvi: not found" while giving help like "?sink" in R, after command "options(help_type = "pdf")"

texlive - Decent selection of TeX Live packages (if needed install texlive-full by unmarking most starting with texlive-lang-, texlive-doc-)

texmaker - Advanced stable Latex editor

texstudio - Latex editor

texworks - Latex editor

torcs - game - 3D racing car simulator

transferonlan - To transfer files in LAN like dukto, dlan - http://code.google.com/p/transfer-on-lan/

(

Better than dukto as it has on/off automatically accept files & on/off invisible

Single .jar file - open it with Java Runtime

Available for Linux & Windows

)

tuxmath - math game to improve calculation speed

tuxtype - Type tutor

tuxtype-data - TuxType non-free data

umbrello - UML drawing software

uck - Ubuntu Customisation Kit - To make our own Ubuntu based distribution - PinguyBuilder seems better than this

(

In /usr/lib/uck/remaster-live-cd.sh, replace cp -f /etc/resolv.conf with cp -f --remove-destination /etc/resolv.conf

https://bugs.launchpad.net/uck/+bug/946480/comments/10

)

unity-tweak-tool - lot of tweak settings (available in 13.04 & above)

unrar - to extract .rar files

unsettings - unity-tweak alternative

usb-modeswitch - Performs the switching of win32 based USB 3G modems from "usb-storage" to "usbserial" when pluged in

vcdimager - Can copy .dat files as .mpg files ( vcdxrip <enter> )

virt-top - gives statisitics of virtual machines

virt-viewer - displays GUI of virtual machine

virt-what - shell script to detect whether a program is running in virtual machine

virtualbox-qt - install dkms before this - Dont install that start with virtualbox-ose - may not be able to run simultaneously with virt-manager

virtualbox-dbg - for virtualbox-qt

virtualbox-dkms - for virtualbox-qt

virtualbox-fuse - for virtualbox-qt

virtualbox-source - for virtualbox-qt

virtualbox-guest-additions-iso - for virtualbox-qt

virtualbox-guest-additions - for virtualbox-qt

virtualbox-guest-source - for virtualbox-qt

wakeonlan - to send magic Wake-on-LAN packets (sudo not needed)

weka - Data mining research software

weka-doc - Documentation of weka ( http://www.cs.waikato.ac.nz/ml/weka/index_documentation.html )

wesnoth - game - turn-based strategy game - multiplayer - online

wget - command line download tool [ wget -r -N <url> - can download an entire site with all its subfolders, wget -c <url> - works like aria2c -c <url> ]

winefish - bluefish based latex editor

wormux - game - 2D cartoon style attack with weapon

xbmc - Media center

xterm - Terminal that works well with Qt, where gnome-terminal may not work properly

yagf - Capable of OCR - Optical Character Recognition - ocrfeeder best

ubuntu-restricted-extras

(

Also installs libavcodec-extra-54, which makes winff to work with additional formats, but replace libavcodec54 & make opencv stop working

)

Use SingleFile (+ SingleFile Core) in Chromium to save webpages as single file format (After added, SingleFile blue icon will appear in the the top right in the toolbar)

0ad

alien-arena

anagramarama - Word tutor

arduino - IDE to program microcontrollers

aria2 - command line download accelerator. Supports segmented download, http, https, ftp, torrent, metalink, ....( aria2c -c <link> )

biber - biblatex alternative

billiards

bluegriffon - WYSIWYG dreamweaver like web editor - http://bluegriffon.org/

boot-repair - to solve GRUB2 boot issues - sudo add-apt-repository http://ppa.launchpad.net/yannubuntu/boot-repair/

bwm-ng - real time console based bandwidth monitor of network interfaces & hard disk / ram i/o

calligraflow - visio like diagramming (flowchart/UML drawing) software - part of Calligra (KOffice fork)

celestia-gnome

comix

crack-attack

draftsight - 2D CAD software with Autocad like interface - Free version requires activation through email - http://www.3ds.com/products-services/draftsight/overview/

easytag - to edit audio files tags / informations

eboard (install gnuchess also)

eiskaltdcpp-qt - EiskaltDC++ - for peer to peer file sharing using DC & ADC protocols

ekiga - VoIP client (It is equivalent to Skype and can call/receive to/from even external phones) (can run inside LAN as a video/ audio/ chat messenger without Internet connection)

empathy - Messenger client like pidgin, but has no proxy support

extremetuxracer

fet - to automatically generate timetable for schools, colleges, university, ...

flightgear

freecol

gespeaker - Along with mbrola, mbrola-en1, mbrola-us1, mbrola-us2, mbrola-us3, cicero,espeak-gui a powerful text to speech converter and to know pronunciation

gcompris (install gnucap also)

gelemental

geneweb - genealogy ancestral family tree software like Gramps - has web based & stand alone mode - also install gwtp gwsetup

geogebra

gl-117

gtkatlantic - client to connect to monopd (monopoly) game server in internet or locally installed (sudo service monopd restart)

hugin

jester - othello like game

kdev-python - Python support for KDvelop

kdevelop-php - PHP support for KDvelop (installs kdevelop also - Supports C, C++, PHP, Python - No supported Windows version) koha - ILS - Integrated Library System - http://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages

kubuntu-desktop (kubuntu-desktop works better with software rendering than Unity - /usr/lib/nux/unity_support_test -p | grep software)

lincity-ng

linphone - VoIP client (Not like pidgin or empathy. It is equivalent to Skype)

lubuntu-desktop

marble

matlab-support

mcu8051ide - IDE for 8051 based microcontrollers

megaglest

modem-manager-gui - send / receive / store SMS, USSD support, scan for mobile networks (install modemmanager first - prepaid-manager-applet has bug in 14.04)

mplabx - IDE to program PIC microcontrollers - http://www.microchip.com/pagehandler/en-us/family/mplabx/ (expecting in repo)

mypaint

nexuiz

nixnote2 - rewrite of (Java) nixnote (FOSS clone of Evernote) in C++ (Qt framework) - Better performance in reduced memory footprint is goal

(

Works in Linux / Windows / Mac

Earlier called nevernote

http://sourceforge.net/projects/nevernote/files/

http://ichibikarin.blogspot.in/2013/08/evernote-linux-client-nixnote-2-to.html

)

openarena

owncloud - to run own cloud storage server

(

Basic editing and preview support for PDF, images, text files, Open Document, Word files, ...

Sharing capabilities with control by user and by group

Quota management

Synchronize across devices

owncloud-client - GUI client for Linux, Android & Windows to connect to owncloud server

)

pidgin - Instant messenger - can connect to MSN, Google Talk, Yahoo chat room all at the same time, has lot of plugins, proxy support, can run in Linux, Windows, etc..

pingus

pspp - equivalent to spss statistical software

pychess - chess gui that can use stockfish, the strongest open source chess engine

pysolfc

qutecom - sip client like ekiga, skype but also support MSN, Yahoo, etc...

schooltool - SIS - Student Information System (School Management Software) - http://book.schooltool.org/multiple-schooltools.html (for Managing Multiple Schools)

scilab

skype - VoIP software (sni-qt - indicator support for Qt)

slimevolley

smc

spyder

sqliteman - GUI to manage SQLite like sqlitebrowser

steam client - Install from http://store.steampowered.com/ - but no proxy server support

stellarium - sky simulator

stockfish - strongest open source chess engine (install pychess also, the gui to stockfish)

timekpr - Parental Control for selected users - ppa - Duration (e..g1 hour), Time frame (e..g 7 AM to 4 PM), Per-day basis

torcs

treeline

trigger-rally - car racing game

ubuntu-xboxdrv - xboxdrv with greater integration with Ubuntu - sudo add-apt-repository http://ppa.launchpad.net/rael-gc/ubuntu-xboxdrv/ubuntu

uhub - ADC hub server software for DC++ clients

vivaldi - chromium based - aimed at power / keyboard users - faster - brain child of former Opera Software CEO - https://vivaldi.com/

wallch - wallpaper changer

warzone2100

wesnoth

wkhtmltopdf - html web page to pdf, ps - cutycapt supports more formats than this

(

wkhtmltopdf http://pajancoa.ac.in/ test.pdf --ignore-load-errors

wkhtmltopdf http://pajancoa.ac.in/ test.ps --ignore-load-errors --proxy 192.168.0.1:3128

)

wxformbuilder - GUI RAD Visual Programming - generates C++ or XRC code

wxmaxima

xmoto

xboxdrv - Xbox360 gamepad driver - try this if driver included with the kernel does not work well

xfburn - will not waste dvd like brasero dvd burner

Below Procedures Are Written For Advanced Users / Network Administrators

Proxy setting to access Internet / Ecommunication in PAJANCOA campus - Solution

(essential for users in PAJANCOA campus)

Connect to Campus Network > Firefox > 10.0.0.2 > Follow the Procedures Displayed

To switch to Spread Mode / view all running windows / applications in Ubuntu Gnome

Press Super key (Windows key)

All running windows (E..g $HOME, Firefox) will be shown

Click over a window to bring it to the front

Close icon can be used to close a window while in spread mode

Alternative Way For Additional Software Installation in Ubuntu

Alternative 1: Software

Alternative 2:

All the downloaded packages, if any will be in the folder

/var/cache/apt/archives/

which can be copied into another computer /var/cache/apt/archives/ folder using

sudo nautilus

to avoid repeated downloading of .deb files

or all those .deb files after copying in $HOME folder can be installed using below command

sudo dpkg --skip-same-version -i *.deb

Single (Software) Package Installation Using Synaptic (Package Manager)

For example let us install package gdebi using Synaptic Package Manager

Dash > Synaptic Package Manager > Type Password & Press Enter > Right Click Over gdebi Package >

Mark for Installation > Mark > Apply > Apply

Wine cannot handle folder / file name length which occupies more than 255 bytes

In above condition, it may be 255 ASCII characters or less number of non-ASCII characters like Tamil

Folder / file names of length upto 255 ascii characters occupies 255 bytes

Folder / file names of non-ASCII characters (from Unicode), even if the length is less than 255, will occupy more than 255 bytes

A folder containing such folder / file can be managed by Ubuntu Linux Files Software, but not by Wine.

So rename such folder / file name which occupies more than 255 bytes into small name to avoid above issue

To Avoid Update Notification Popup in Ubuntu 16.04

Dash > Terminal >

sudo apt-get remove update-notifier

or Use Synaptic or Ubuntu Software and

Remove update-notifier

Note:

It may remove ubuntu-desktop meta package, but it won't affect system

To Fix Time Differences in Ubuntu 16.04 & Windows 10 Dual Boot

Step 1: (can be skipped)

Give the below command in Terminal

timedatectl

Last line of the output of above command will be

RTC in local TZ: no

---

Step 2:

Give the below command in Terminal

timedatectl set-local-rtc 1 --adjust-system-clock

---

Step 3: (can be skipped)

Give the below command in Terminal

timedatectl

Last line of the output of above command will be

RTC in local TZ: yes

(along with a warning message, which can be ignored)

---

Note:

Ubuntu by default uses UTC for RTC (Real Time Clock)

Windows by default uses local time zone for RTC

Above procedure switches Ubuntu to use local time zone for RTC

Those who are installing Windows freshly

Prefer to install it in only one partition following the procedure below & prefer installing it before Ubuntu installation

(Windows can also be installed after installing Ubuntu, but GRUB has to be restored after that)

In "Where do you want to install Windows?" step, select Drive options (advanced)

Select the C drive / 1st Partition / Partition labelled W > Next

After Installing Ubuntu (GRUB2) in MBR, Hard Disk Not Showing While Trying to Install Win7, Win10, etc...- Solution

Reason May Be:

MBR as expected by Windows might not be available after Installing Ubuntu (GRUB2) in MBR

Note:

While installing dual boot, prefer installing Windows first and install Ubuntu next

Solution Below:

Step 1:

Boot From Windows Boot Disk

In Install Now Step, Press

Shift + F10

Command Prompt Appears

Give Below Commands

fdisk /mbr

Restart Computer & Try

Step 2: Proceed With This Step, if Step 1 Does Not Solves The Issue

Boot from Ubuntu bootable usb drive

Select Try Ubuntu

(Warning: Take Backup of Data, as All the data / partitions in hard disk will get deleted)

Open > GParted Partition Editor >

Device > Create Partition Table > MSDOS >

Apply

Create Partitions freshly

Restart Computer

Try Installing Windows Now

Note: Instead of Step 2, Win Boot disk, shift+F10, diskpart, list disk, select disk x, clean can also be used

To link two computers (running Ubuntu) using only an (Ethernet) network cable (checked in Ubuntu 14.04.1)

(Very useful to send files between 2 laptops using Dukto where no other network devices exists)

Step 1:

Computer 1 > Dash > Network Connections > Add > Ethernet > Create... >

Connection name > Static >

General > Uncheck Automatically connect to this network when it is available >

IPv4 Settings > Method > Manual > Add >

Address > 10.10.10.10 > Netmask > 8 > Save...

Step 2:

Computer 2 > Dash > Network Connections > Add > Ethernet > Create... >

Connection name > Static >

General > Uncheck Automatically connect to this network when it is available >

IPv4 Settings > Method > Manual > Add >

Address > 10.10.10.11 > Netmask > 8 > Save...

Step 3:

Connect both computers using a (Ethernet) network cable

(works even with straight cabling & need not be cross cabling)

Step 4:

Computer 1 > Network icon > Static

Computer 2 > Network icon > Static

Step 5:

Open Dukto in both computers & start transferring files

Note 1:

The two computers should have different ip

E..g

10.10.10.10

10.10.10.11

Note 2:

To change (edit) the ip

Dash > Network Connections > Static (or the given name) > Edit > IPv4 Settings >

Double click over the existing ip > Type new ip > Save...

To Install Latest Realtek Wireless Drivers in Ubuntu 16.04.1 (Solves Most HP Laptop Wireless Issues in Ubuntu)

(Explained for Advanced Users)

(Checked in Ubuntu 16.04.1 in Hybrid Laptop HP X360 11-K106TU which has Realtek RTL8723BE)

Step 1: If Ubuntu installed in UEFI mode, disable Secure Boot in bios

Step 2: To Confirm the Wireless Brand and Model Available in Your Laptop

lspci | grep Network

Step 3: If Output in the Above Command has Realtek, Then Proceed

sudo add-apt-repository http://ppa.launchpad.net/hanipouspilot/rtlwifi/ubuntu

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get install rtlwifi-new-dkms linux-firmware

(If secure boot disable intruction appears, just follow the on screen instructions)

sudo apt-get install linux-headers-$(uname -r) gcc g++ build-essential dkms git

Step 4:

Download ZIP file (E..g rtlwifi_new-master.zip) and extract to $HOME folder from

https://github.com/lwfinger/rtlwifi_new/tree/rock.new_btcoex

cd rt*

sudo make install

Step 5:

sudo modprobe -rv rtl8723be

sudo modprobe -v rtl8723be ant_sel=2

Select Network icon > Enable Wi-Fi (if not already selected)

Wi-Fi should work now.

If still Wi-Fi not working, change the last antenna selection parameter to 0 or 1 and try Step 4 once again

Step 6: Making Changes Permanent - Change number after ant_sel= based on success in Step 4

sudo gedit /etc/rc.local

In the file that opens, add the below 5 lines just before the exit 0. Save. Quit. Restart Computer.

modprobe -rv rtl8723be

sleep 5

modprobe -v rtl8723be ant_sel=2

sleep 5

nmcli r wifi on

WiFi should work now. More Details in Below Links

https://chirath02.wordpress.com/2016/05/12/installing-realtek-rtl8723be-driver-for-ubuntu-16-04/

https://launchpad.net/~hanipouspilot/+archive/ubuntu/rtlwifi

How To Manually Update K7 Antivirus in Windows

Download

K7 Offline Updater (one of the free tools of K7)

from any of the below links

https://www.k7computing.com/eng/free-tools

or

www.k7computing.com

and double click (run) the file to update K7 Antivirus

DSL DialUp in Ubuntu (If Created Using GUI Network Connections Not Connecting in Ubuntu 16.04)

sudo pppoeconf

For Above Command, So Many Yes / No May Be Asked. If Doubt Press Yes

By Default, DSL Connection Creates in the Name dsl-provider (provider exists already) and can be edited as below

sudo nano /etc/ppp/peers/dsl-provider

To Know The ISP Assigned DNS IPs, Use

sudo nano /etc/ppp/resolv.conf

Example

nameserver 218.248.233.1

nameserver 218.248.233.2

Above DNS IPs will be automatically updated in /etc/resolv.conf also

sudo nano /etc/resolv.conf

resolvconf - maintains the currently available DNS servers and resolv.conf

Note: In /etc/ppp/peers/dsl-provider

defaultroute - for internet traffic to be directed through default route

replacedefaultroute - for internet traffic to be directed through alternative route

usepeerdns - to use the ISP automatically provided DNS servers

When usepeerdns is used in /etc/ppp/peers/dsl-provider

/etc/ppp/resolv.conf & /etc/resolv.conf

will have ISP provided dns IPs. Example

nameserver 218.248.233.1

nameserver 218.248.233.2

If usepeerdns is absent in /etc/ppp/peers/dsl-provider

/etc/resolv.conf & /etc/ppp/resolv.conf will be empty

For static DNS servers, use below command

sudo nano /etc/dhcp/dhclient.conf

And add at the end of the file /etc/dhcp/dhclient.conf below 3 lines. Save. Quit. Restart Computer

prepend domain-name-servers 4.2.2.1;

prepend domain-name-servers 8.8.8.8;

If local DNS server also available, add

prepend domain-name-servers 127.0.0.1;

prepend domain-name-servers 4.2.2.1;

prepend domain-name-servers 8.8.8.8;

To install local DNS Server

sudo apt-get install bind9

After above command, restart computer

To check whether local DNS server is working, use the below command

dig google.com @127.0.0.1

Last paragraph of output of the above command will have 2 lines like below

;; Query time: 2 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

To Connect To DSL Internet

sudo pon dsl-provider

To Disconnect From DSL Internet

sudo poff dsl-provider

pppoeconf has also modified the file

/etc/network/interfaces

To Edit Username & Password

sudo nano /etc/ppp/chap-secrets

To Know The IP & Gateway IP

ip addr show ppp0

ifconfig

More Details in

https://help.ubuntu.com/community/ADSLPPPoE

Settings to check, if usb drive not booting

Step 1: Disable XHCI, so that all USB ports will work as 2.0 instead of 3.0

Step 2: Enable USB boot / external device boot

Step 3: Disable Quick / Fast Boot in bios. (Essential to boot from USB in some computers)

Step 4: USB Mass storage emulation - All fixed disk (Needed only in some old computers)

Step 5: While in battery mode some laptops will not boot, try to boot after connecting the power adapter

Step 6: While in AC mode some laptops will not boot, try to boot without connecting the power adapter. After booting, power adapter can be connected.

Step 7: Instead of connecting in right USB, connect it to left USB and boot it will work.

Step 8: Use the same bootable usb drive and boot another laptop (to confirm that the pen drive is in good bootable condition)

Step 9: Try another pen drive (some pen drive may work with some laptops alone)

Step 10: Plug usb drive after few seconds of switching on computer. On repeated try, can see usb drive in the list of devices to boot from.

Step 11: Try to boot from a Ubuntu bootable CD

Step 12:

When boot from Pen drive / CD press any key when the human keyboard icon appears

Select English and Press Enter

Press F6 and change boot parameters and press enter

Example

Remove boot parameters like quiet splash

Include boot parameters like acpi=offBluetooth not working in Ubuntu 14.04.1 - Solution

Battery drains quickly as not able to reduce brightness (checked in Ubuntu 14.04.1)- Solution

Method 1: (Permanent, but if this method is not working for your laptop, use Method 2)

Run the below command in Terminal

sudo setpci -s 00:02.0 F4.B=50

The last 2 digit (here 50) is the % of brightness, which you decide in trial and error basis

Using the command

sudo gedit /etc/rc.local

Include the below line (replace 50 with the value you have decided & without sudo)

setpci -s 00:02.0 F4.B=50

before the last line

exit 0

Save, Exit, Restart computer

Note:

Below command can be used to confirm whether the Graphics line has 00:02.0 (if different that has to be used in the above command)

sudo lspci | grep Graphics

Method 2: (Temporary)

Use brightness key before entering into Ubuntu, while in GRUB (boot) menu

Note:

Dual boot systems will show GRUB menu in the beginning (Ubuntu, Memtest, Windows, ...)

To bring GRUB menu in Ubuntu only systems, hold Shift key after switching on system

PDF-Shuffler gives error "multiple definitions in dictionary" for some pdf files in Ubuntu 14.04.1 - Solution

(PDF-Shuffler internally uses PyPDF Library)

(mostly for pdf created using Latex)

Select Dash > Terminal > Type the below command and press Enter >

sudo gedit /usr/share/pyshared/pyPdf/generic.py

In the file that opens, near lines 523-526, replace

if data.has_key(key):

# multiple definitions of key not permitted

raise utils.PdfReadError, "multiple definitions in dictionary"

data[key] = value

with

if not data.get(key):

data[key] = value

Then select File > Save > File > Quit

Note: In the above module, indent in the 2nd line is essential for working

For more details: https://bugs.launchpad.net/pypdf/+bug/242755

Computer seems to have got froze in Ubuntu - Solution (to restart with magic keys)

To Use Swap As Less As Possible in Computers With Higher RAM (For Speed & Better Hard Disk Life)

sudo nano /etc/sysctl.conf

vm.swappiness=0

Using rsync via ssh to synchronize remotely (checked in Ubuntu 14.04.1)

(Grsync > File > Rsync command line shows the command with parameters)

Ensure rsync is installed in the system

Ensure openssh-server is installed & running in remote system

Synchronize remote folder (source) to local machine folder (destination) - path ends with /

rsync --progress --delete -vtrlHe ssh <username>@<ipaddress>:<sourcepath> <targetpath>

Synchronize local folder (source) to remote machine folder (destination) - path ends with /

rsync --progress --delete -vtrlHe ssh <sourcepath> <username>@<ipaddress>:<targetpath>

E..g

rsync --progress --delete -vtrlHe ssh /media/tuser/D/data/ svishnunithyasoundhar@192.168.1.101:/media/vuser/D/databak/

Note:

Partially uploaded file will be hidden (with dot in beginning) file in the same destination

Parameter e is for using protocol ssh

For dry run (simulation), use additionally n in the parameters. That is

-nvtrlHe

instead of

-vtrlHe

How to share a printer connected to the Ubuntu computer in network

Dash > Printers > Server > Settings... > Publish shared printers connected to this system > OK

Right click over the printer icon > Shared (if not already checked)

Right click over the printer icon > Properties > Access Control > Allow printing for everyone except these users > OK

Note: If your Ubuntu print server share has to work with Windows clients

sudo gedit /etc/samba/smb.conf

browsable = yes

guest ok = yes

Synchronizing using rsync and SSH between Local & Remote computer folders

(Avoid characters like " * / : < > ? \ | in filenames as fat32 pen drives have problem in supporting)

Case 1: Remote is Source & Local is Target

rsync --recursive --times --progress --links --hard-links --delete -e ssh <RemoteUserName>@<RemoteHostIp>:<RemoteSourcePath>/ <LocalTargetPath>/

Above command can be read as below

rsync <space> --recursive <space> --times <space> --progress <space> --links <space> --hard-links <space> --delete <space> -e <space> ssh <space> <RemoteUserName>@<RemoteHostIp>:<RemoteSourcePath>/ <space> <LocalTargetPath>/ <enter>

Case 2: Local is Source & Remote is Target

rsync --recursive --times --progress --links --hard-links --delete -e ssh <LocalSourcePath>/ <RemoteUserName>@<RemoteHostIp>:<RemoteTargetPath>/

Above command can be read as below

rsync <space> --recursive <space> --times <space> --progress <space> --links <space> --hard-links <space> --delete <space> -e <space> ssh <space> <LocalSourcePath>/ <space> <RemoteUserName>@<RemoteHostIp>:<RemoteTargetPath>/ <enter>

Note:

--dry-run to have a simulation before actual running

--port=<PortNumber> to change port

--partial to keep partially transferred files

--prune-empty-dirs to remove empty directories

To change the date and time of the computer

Open Terminal and run the below command (This is an example. Change date, time as required)

sudo date --set "28 APR 2012 12:00"

Above command can be read as below

sudo <space> date <space> - - set <space> "28 <space> APR <space> 2012 12:00" <enter>

Video format conversion using WinFF

To run in Android VLC (checked in Android 4.1.2 - Ubuntu 14.04.1)

Winff > Output Details > Convert to > Quicktime > Preset > Quicktime H.264 Video (High Quality) >

Video > Frame Rate > 25 (or source fps whichever is less) >

Video size > Resolution by 4 or 2 or blank for same >

Audio > Audio Bitrate > 128 (or source rate whichever is less >

Add the multimedia file by click add button > (Don't do this step in the beginning)

FFMpeg > 1st pass > Replace > -acodec libvo_aacenc > with > -strict experimental >

Video > Frame Rate > 25 (or source fps whichever is less) >

Video size > Resolution by 4 or 2 or blank for same >

Audio > Audio Bitrate > 128 (or source rate whichever is less >

Convert

To run nearly in any mobile

Winff > Output Details > Convert to > AVI > Preset > XviD Widescreen >

Add the multimedia file by click add button >

Video > Frame Rate > 25 (or source fps whichever is less) >

Video size > Resolution by 4 or 2 or blank for same >

Audio > Audio Bitrate > 128 (or source rate whichever is less >

Convert

Note:

Quicktime file extension - .mov

AVI file extension - .avi

Widescreen = 16:9

Video, Audio setting 2 times is intentional for the 1st procedure

In .mov 100MB becomes 15MB (720 resolution by 4)

In .mov 100MB becomes 50MB (720 resolution by 2)

Converting video files to .mp3 in Ubuntu

Open Video file (Import) using Audacity and export to .mp3

To make a program shortcut to be shown in Dash in Ubuntu 12.04.3

Create a launcher & place it inside the below folder

$HOME/.local/share/applications/

Note: Already there are many launchers in that folder, which can be used as an example

To Install Apache2 for File Sharing in a Network - Ubuntu 14.04.1

Advantages of Apache2

Unlike NFS (nfs-kernel-server) no client side configuration needed. (But NFS may be Faster)

Unlike NFS (nfs-kernel-server) can be accessed easily from Windows OS also. (Nearly From Any OS that has Browser, including Mobile OS)

Faster to Access than Samba (But Samba & NFS clients can upload files back to server)

Can run web contents also

Step 1: Installing apache2 package

Connect to Internet

Dash > Terminal >

sudo apt-get install apache2

$ prompt will appear after the download & installation of apache2

Dash > Terminal >

sudo a2enmod userdir

Restart computer.

Step 2: Creating $HOME/public_html/ folder

Files > Create a folder public_html inside $HOME

Copy files & folders you want to share into the $HOME/public_html/ folder

Step 3: Accessing From Client Computers

To access the files kept in the $HOME/public_html/ folder of <apache server>

Firefox > http://<apache sever ip>/~<username> <enter>

Example of above command

http://192.168.0.2/~softwares/

Note: In the above softwares is one username in the server computer, inside whose $HOME folder, the public_html folder is created

Step 4 (Optional): To Share a Whole NTFS Partition

Dash > Terminal > id >

Note down the uid and gid > Let us assume that in our case, uid=1000 and gid=1000

Dash > Terminal > fdisk -l >

Note down the NTFS partion to be used for sharing > Let us assume that in our case, /dev/sda4

Dash >

sudo gedit /etc/fstab

/etc/fstab file opens > Add the below line at the end >

/dev/sda4 /var/www/html/AutoD ntfs uid=1000,gid=1000,nls=utf8,umask=002 0 0

Restart computer

Partition content can be accessed in the local computer with write permission by Dash > Files > Computer > /var/www/html/AutoD/

Partition can be accessed from browser using URL http://<serverip>/AutoD/

Example for above URL

http://192.168.0.2/AutoD/

Note: To Display Status / Restart / Stop Apache

sudo service apache2 status

sudo service apache2 restart

sudo service apache2 stop

Note: To enable WebDAV modules

sudo a2enmod dav

sudo a2enmod dav_fs

sudo gedit /etc/apache2/sites-available/000-default.conf

Add

DavLockDB /var/www/DavLock

As 1st Line, Above

<VirtualHost *:80>

Add these 4 lines above </VirtualHost>

Alias /webdav /var/www/webdav

<Directory /var/www/webdav>

DAV On

</Directory>

Save > Quit

sudo mkdir /var/www/webdav

sudo chown www-data /var/www/webdav

sudo chmod 755 /var/www/webdav

To Access

http://127.0.0.1/webdav

For More Details Like Authentication:

https://www.digitalocean.com/community/tutorials/how-to-configure-webdav-access-with-apache-on-ubuntu-14-04

To Have Local LAN Ubuntu Mirror or/& USB Drive Ubuntu Mirror Using debmirror (checked in Ubuntu 16.04)

(Documented For Advanced Users.

Replace as per need, <LAN IP> 10.0.0.1, <username> gwuser, supreme, <USB Drive partition name> cosmicforcedata)

Step 1: To Have Local LAN Ubuntu Mirror or/& USB Drive Ubuntu Mirror, Needed to do This in the Local Ubuntu Mirror Computer

In the Local Ubuntu Mirror Computer, Run Below Commands

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get install debmirror

---

If /dev/sda1 is / and /dev/sda2 is going to be used as /data

sudo nano /etc/fstab

/dev/sda2 /data ext4 errors=remount-ro 0 1

---

sudo mkdir /data/ubuntumirror

sudo mkdir /data/keyring

sudo mkdir /data/bin

sudo chmod -R 777 /data

gpg --no-default-keyring --keyring /data/keyring/trustedkeys.gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg

---

sudo nano /data/bin/mirrorbuild.sh

export GNUPGHOME=/data/keyring

arch=i386,amd64

section=main,restricted,universe,multiverse

release=xenial,xenial-security,xenial-updates

server=archive.ubuntu.com

inPath=/ubuntu

proto=http

outPath=/data/ubuntumirror

debmirror -a $arch \

--no-source \

-s $section \

-h $server \

-d $release \

-r $inPath \

--progress \

--method=$proto \

$outPath

---

sudo chmod 755 /data/bin/mirrorbuild.sh

sudo chown -R root:gwuser /data/ubuntumirror

sudo chmod -R 571 /data/ubuntumirror

sudo /data/bin/mirrorbuild.sh

---

Step 2: To Have LAN Ubuntu Mirror, Needed to do This in the Local Ubuntu Mirror Computer

sudo apt-get install apache2

sudo a2enmod userdir

sudo ln -s /data/ubuntumirror /var/www/html/ubuntu

sudo chmod -R 755 /var/www/html/ubuntu

In the Client Computers,

Open > Terminal > Run the below command >

sudo gedit /etc/apt/sources.list

A file opens > Delete the existing content >

Copy & Paste the below 9 lines. Save & Quit. Then in Terminal, run the command, sudo apt-get update -o Acquire::AllowInsecureRepositories=true

#deb file:/mnt/cosmicforcedata/ubuntumirror bionic main universe restricted multiverse

#deb file:/mnt/cosmicforcedata/ubuntumirror bionic-updates main universe restricted multiverse

#deb file:/mnt/cosmicforcedata/ubuntumirror bionic-security main universe restricted multiverse

deb http://10.0.0.1/ubuntu bionic main universe restricted multiverse

deb http://10.0.0.1/ubuntu bionic-updates main universe restricted multiverse

deb http://10.0.0.1/ubuntu bionic-security main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu bionic-updates main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu bionic-security main universe restricted multiverse

---

Step 3: Needed To Have USB Drive Ubuntu Mirror

Step 3A:

Copy Entire /data/ubuntumirror/ Folder into USB Drive, Using Below Command, if Copy Has to be Done Through LAN

rsync --progress --delete -vtrlHe ssh gwuser@10.0.0.1:/data/ubuntumirror/ /media/supreme/cosmicforcedata/ubuntumirror/

Note: Instead grsync can also be used, if able to access the computer locally

Step 3B:

Let us Assume That The USB Drive is Having the Below Mirror Folder & it Has Been Pluged in a Target Computer

/media/supreme/cosmicforcedata/ubuntumirror/

Remove .temp folder, if any inside folder

/media/supreme/cosmicforcedata/ubuntumirror/

Step 3C: Changing Mount From /media/... to /mnt/...

Open > Disks >

Select the external hard disk where the ubuntu mirror is kept >

Select the partition where the ubuntu mirror is kept >

Additional partition options (wheel icon) >

Edit Mount Options > Mount Options dialog box opens >

Identify as > Select the partion label where the ubuntu mirror is kept >

If not selected already, select Show in user interface >

Mount Point will start with /mnt/... & not /media/... > OK >

Open > Nautilus > Safely Remove the external hard disk

Step 3D:

Unplug external hard disk from USB port > Plug it back >

The partition where the ubuntu mirror is kept will be mounted under /mnt/...

and folder ubuntumirror earlier accessible from

/media/supreme/cosmicforcedata/ubuntumirror/

will be accessible from

/mnt/cosmicforcedata/ubuntumirror/

---

Step 3E:

Open > Terminal > Run the below command >

sudo gedit /etc/apt/sources.list

A file opens > Delete the existing content >

Copy & Paste the below 9 lines. Save & Quit. Then in Terminal, run the command, sudo apt-get update -o Acquire::AllowInsecureRepositories=true

deb file:/mnt/cosmicforcedata/ubuntumirror bionic main universe restricted multiverse

deb file:/mnt/cosmicforcedata/ubuntumirror bionic-updates main universe restricted multiverse

deb file:/mnt/cosmicforcedata/ubuntumirror bionic-security main universe restricted multiverse

#deb http://10.0.0.1/ubuntu bionic main universe restricted multiverse

#deb http://10.0.0.1/ubuntu bionic-updates main universe restricted multiverse

#deb http://10.0.0.1/ubuntu bionic-security main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu bionic-updates main universe restricted multiverse

#deb http://archive.ubuntu.com/ubuntu bionic-security main universe restricted multiverse

----

Note: Step 3B, Step 3C, & Step 3D Are Mainly to Avoid Below Errors While Using sudo apt-get update -o Acquire::AllowInsecureRepositories=true

Can't drop privileges for downloading as file '/media/...

couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

----

Note: More Details

To Know The Downloaded File Size Status in MB, Through SSH, Use Below Command

df -m /data

Note: Mirror Size for amd64 + i386 - xenial, xenial-security and xenial-updates

21.Apr.2016 -> Ubuntu 16.04 [Xenial] Released

19.May.2016 -> ~ 117GB

21.Jul.2016 -> Ubuntu 16.04.1 Released

17.Feb.2017 -> Ubuntu 16.04.2 Released

14.Jun.2017 -> ~ 150GB

03.Aug.2017 -> Ubuntu 16.04.3 Released

30.Aug.2017 -> ~ 160GB

Having amd64 alone gives error while using the mirror, even if it is from amd64 client

Mirroring source packages is avoided as it takes lot of spaces and 95% won't needed

debmirror - to have a partial local (LAN) Ubuntu mirror (seems advanced & active than apt-mirror)

apt-cacher - 1st time takes time - needs Internet at any time - debmirror after 1st download can manage without Internet

rsync - download entire mirror - no control for partial download

https://help.ubuntu.com/community/Debmirror

Note:

(In the Process of Converting Above Ubuntu 16.04.x Mirror Into Ubuntu 18.04.x

- Very Less Extra Space in Hard Disk)

Using sudo nautilus & Shift + Delete, deleted all contents in /data/ubuntumirror/ folder

Replaced xenial with bionic in the file

sudo nano /data/bin/mirrorbuild.sh

and executed below command

sudo /data/bin/mirrorbuild.sh

To clone installed Ubuntu using fsarchiver to another computer or To take backup / restore installed Ubuntu

Advantages of fsarchiver

Unlike Clonezilla Target Partition Can Be Smaller Than Source Partition (But Clonezilla can clone via network nicely)

---

Step 1: Downloading fsarchiver.._.deb file

Download fsarchiver.._.deb file from below link

For Ubuntu 14.04.x 64-bit - http://packages.ubuntu.com/trusty/amd64/fsarchiver/download

For Ubuntu 14.04.x 32-bit - http://packages.ubuntu.com/trusty/i386/fsarchiver/download

Step 2: To Save The Ubuntu Installed Partition of Source Computer

Install Ubuntu with all the necessary softwares in the source computer

Let us assume that there is a (ntfs) partition with label D

Boot from Ubuntu bootable disk

Copy the downloaded fsarchiver.._.deb file in $HOME folder > Right click over fsarchiver.._.deb > Open with Ubuntu Software Center > Install

Dash > Files > Mount drive with label D > Will get mounted in /media/ubuntu/D/

Dash > Terminal > fdisk -l > Note down the ext4 partition where Ubuntu Linux is installed (e..g /dev/sda2)

Save the Ubuntu installed partition /dev/sda2 as a backup file in the drive with label D using the below command

sudo fsarchiver -v savefs /media/ubuntu/D/bkup.fsa /dev/sda2

---

Step 3: To Restore into Target Computer

Boot from Ubuntu bootable disk

Copy the downloaded fsarchiver.._.deb file in $HOME folder > Right click over fsarchiver.._.deb > Open with Ubuntu Software Center > Install

Dash > Files > Mount drive with label D > Will get mounted in /media/ubuntu/D/

Copy the backup file in D drive, if it is not already there (e..g bkup.fsa)

Dash > Terminal > fdisk -l > Note down the ext4 partition where Ubuntu Linux have to be installed (e..g /dev/sda2)

Restore the backup file bkup.fsa kept in D into partition /dev/sda2 using the below command

sudo fsarchiver -v restfs /media/ubuntu/D/bkup.fsa id=0,dest=/dev/sda2

Wait until it is restored

Note: Unlike rsync, fsarchiver will take care of changing UUID in /etc/fstab and other issues like disk id automatically

---

Step 4: Changing hostname is Optional

Dash > Terminal > sudo gedit /etc/hostname > Change the hostname if you want to > Save & Close the file

Step 5: To restore GRUB2 (needed after a Windows install in a dual boot system or after restore using fsarchiver in a fresh computer)

Boot from Ubuntu usb boot disk

Select "Try Ubuntu without any change to your computer" and press enter

(Note: Don't use 32-bit Ubuntu to recover 64-bit or vice-versa. It will give the error, "cannot run command `/bin/bash’: Exec format error")

---

Dash > Terminal > sudo fdisk -l > Identify the partition number which is marked as Linux. If it is /dev/sda2 , give the below command

sudo mount /dev/sda2 /mnt

sudo mount --bind /dev /mnt/dev

(In above command two - - before bind)

sudo chroot /mnt

grub-install /dev/sda

exit

Shut down computer. After got switched off, remove the bootable usb drive.

---

Switch on computer.

Grub will now have Ubuntu in its menu. Enter into Ubuntu.

Dash > Terminal > sudo update-grub

Restart computer.

Changing boot parameters in Live CD boot

(For example let us assume that we have to change quiet splash with nomodeset)

At the very first screen, when a keyboard and a human icon appears press any key

English will be already selected. Press enter

Use arrow keys to select Try Ubuntu without any changes and press F6

A menu appears. Press Esc. Boot command line will appear

Press backspace and delete quiet splash -- and type nomodeset

Press enter

Changing boot parameters in GRUB2 temporarily after installation

(For example let us assume that we have to change quiet splash with nomodeset)

Press e on getting the GRUB bootloader (if not getting grub, hold shift key to get grub)

Use arrow, backspace and delete keys to replace boot parameters

Press Ctrl + x to boot

Changing boot parameters in GRUB2 permanently in a booted computer

(For example let us assume that we have to change quiet splash with nomodeset)

Select Applications, Accessories, Terminal and give the below command

sudo <space> gedit <space> /etc/default/grub <enter>

In the file that opens,

replace

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

Select File, Save, File, Quit

Select Applications, Accessories, Terminal and give the below command

sudo <space> update-grub <enter>

GRUB2 menu hidden - to make it visible in Ubuntu 12.04

Select Applications, Accessories, Terminal and give the below command

sudo <space> gedit <space> /etc/default/grub <enter>

In the file that opens,

put a # (comment) in the beginning of the 2 lines that start with

GRUB_HIDDEN

Select File, Save, File, Quit

Select Applications, Accessories, Terminal and give the below command

sudo <space> update-grub <enter>

title Puppy Linux 5.0.1

GRUB2 menu hidden - to make it temporarily visible in Ubuntu 12.04

Hold Shift key while booting

GRUB2 boot options like nomodeset

Kernel Boot Parameters

https://help.ubuntu.com/community/BootOptions

acpi=off

acpi=copy_dsdt

acpi_osi="Linux"

acpi_osi="Windows 2006" (to make kernel pretend like Vista to make some bios co-operate)

acpi_backlight=vendor

To start a application every time Ubuntu Linux log inside desktop

Click Dash icon. Type startup and click at Startup Applications

Click Add

Type any name in the Name text box

Type the command ( for example iptux ) in the Command text box

Click Add, Close

To run a command (even with sudo) every time computer boots / starts

Click Dash icon. Type terminal and click at Terminal

Run the below command

sudo gedit /etc/rc.local

Above command can be read as below

sudo <space> gedit <space> /etc/rc.local <enter>

rc.local file opens in gedit text editor

Type the command just before the line

exit 0

Save the file. Exit. Restart computer

Important Terminal Commands

(Highly Essential For Network Administrators / Advanced Users of Ubuntu Linux To Manage Remote Computers Through SSH)

Note: Avoid using aptitude and apt-get (backend of aptitude & synaptic) interchangeably

Dash > Terminal > Try These Commands

To Clear / Delete print jobs in Printer queue in Ubuntu

cancel -a

To Display Access Rights in Octal Number, Access Rights in Human Readable Form, Modification Time, Size

stat -c '%a %A %y %s %n' *

Note: ls -l Won't Display Access Rights in Octal Number

To select nano as default terminal editor (e..g to edit crontab)

select-editor

To Cancel The User's Cached Credentials - The Next Time sudo is Run a Password Will be Required

sudo -k

To create user crontab

crontab -e

Example: 5,20,35,50 minutes of, every hour of, every day of , every month of, every year, every day of week, command

5,20,35,50 * * * * /home/firstuser/sample.sh

Note: www.corntab.com can be used to design lines for crontab using online gui

To create root crontab

sudo crontab -e

Example: 35 minutes of, 1 am of, every day of , every month of, every year, every day of week, command

35 1 * * * sudo shutdown -r 0

Running Shell Scripts / Commands in Foreground, Background, Pause, Kill

& - & At The End of The Command Runs The Command In Background

Ctrl + Z - Pause Running of a Shell Script, Which Was Running in Foreground

bg - To Resume a Shell Script in Background Which Was Paused Earlier Using Ctrl + Z. Able To Type New Commands & Exit (If Through SSH)

fg - To Resume a Shell Script in Foreground Which Was Paused Earlier Using Ctrl + Z. Cannot Type New Commands, But Ctrl+Z Can Be Used

Ctrl + C - Try To Kill a Running Shell Script - May Not Succeed At All Times

ps aux | less - To See the PID of Processes Running

sudo kill <pid> - To Kill a Particular Process

To List The Number of Fonts Available For Use

fc-list | wc -l

Note: To List All Fonts Details Like Font Name, Font Location and Filename, Style, ....

fc-list | more

To reset Compiz settings to its default, in case if anything complicated happens after using CompizConfig Settings Manager

dconf reset -f /org/compiz/

To Restart / Reboot Computer Immediately

sudo reboot

To shutdown and power off computer after specific minutes

sudo shutdown -P 120

Above command can be read as below

sudo <space> shutdown <space> -P <space> 120 <enter>

(The above command will shutdown and power off computer after 120 minutes. 120 can be replaced with any user decided number. In this command P is in upper case)

To restart computer immediately

sudo shutdown -r 0

Above command can be read as below

sudo <space> shutdown <space> -r <space> 0 <enter>

To know the uptime (How much time the computer is in ON since last boot?)

uptime

To create an empty file

touch <filename>

or

> <filename>

To switch to root / administrative (#) terminal prompt from ordinary ($) terminal prompt

sudo su

To know the % of used CPU, Memory, etc...

top

Above command can be read as below

top <enter>

To know the disk used size of current folder in human readable format

du -h

Above command can be read as below

du <space> -h <enter>

To List Disk Free Space in Human Readable Format (Using K, M, G)

df -h

To List Disk Free Space in Kilobytes (Using K)

df -k

To List Disk Free Space in Megabytes (Using M)

df -m

To kill a running process after knowing its PID using above command

sudo kill <pid>

Note: To list the running process name with PID

ps aux | less

or

ps aux | grep <processname>

To uninstall a software package

sudo apt-get remove <packagename>

Above command can be read as below

sudo <space> apt-get <space> remove <packagename> <enter>

To install a software package

sudo apt-get install <packagename>

Above command can be read as below

sudo <space> apt-get <space> install <packagename> <enter>

To upgrade (install new version) a software package

sudo apt-get upgrade <packagename>

Above command can be read as below

sudo <space> apt-get <space> upgrade <packagename> <enter>

To add a software repository

sudo add-apt-repository <repository link starting usually as http:// >

Above command can be read as below

sudo <space> add-apt-repository <space> <repository link starting usually as http:// > <enter>

E..g

sudo add-apt-repository http://ppa.launchpad.net/timekiller/unity-systrayfix/ubuntu

Note: After adding repository "sudo apt-get update -o Acquire::AllowInsecureRepositories=true" command (given below) have to be used

To retrieve new list of packages (reload / refresh software repositories)

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

Above command can be read as below

sudo <space> apt-get <space> update <enter>

To search for a package

sudo apt-cache search <search_word>

Above command can be read as below

sudo <space> apt-cache <space> search <space> <search_word> <enter>

To check for broken packages

sudo apt-get check

Above command can be read as below

sudo <space> apt-get <space> check <enter>

If below message comes when trying to install software in Ubuntu 14.04 - Solution

The package <package name> needs to be reinstalled, but I can't find an archive for it

sudo dpkg --remove --force-remove-reinstreq <reinstall requesting package name>

Restart computer & try to install packages

To fix broken packages problem that comes when trying to install software

(Try each step after a restart. Proceed to next step only if broken packages problem have not get solved)

Step 1: (If Internet is available skip this step & proceed with step 2)

sudo apt-get autoremove

Step 2:

sudo apt-get install -f

or

sudo apt-get install --fix-broken

Step 3:

sudo dpkg --configure -a

sudo apt-get clean

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

Step 4:

sudo dpkg --configure -a --force-all

sudo apt-get clean

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

Step 5:

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

Step 6:

sudo apt-get clean

sudo apt-get autoclean

To change password

passwd <enter>

Type the current password when it prompts and press enter

Then type the new password when it prompts and press enter

Then type the new password when it prompts again and press enter

To disable / enable usb ports in Ubuntu

To disable usb ports (have to run the below commands twice in some computers)

sudo rmmod usb_storage

To enable usb ports

sudo modprobe usb_storage

Note: To permanently disable usb ports, add the below line using - sudo gedit /etc/modprobe.d/blacklist.conf

blacklist usb-storage

To run nautilus ( File manager ) with administrative rights (use it carefully)

sudo nautilus

Above command can be read as below

sudo <space> nautilus <enter>

To start GUI desktop from Terminal

startx

Above command can be read as below

startx <enter>

To list all terminal commands

ls /bin /sbin /usr/bin /usr/sbin | more

To list all terminal commands that starts with dpkg

ls /bin /sbin /usr/bin /usr/sbin | grep dpkg | more

To watch in live last lines of a text file as and when the file grows (usually log files)

tail -F <filename>

Above command can be read as below

tail <space> -F <space> <filename> <enter>

To create files test1, test2, test3, test4, test5

touch test{1..2}

To create files test01, test02, test03, test04, test05

touch test{01..02}

To create files test001, test002, test003, test004, test005

touch test{001..002}

To insert a text after a particular line ( e..g 5 ) in a text file ( e..g /etc/squid3/squid.conf )

sed -i '5iThe text given here will be inserted after line 5 in the text file' /etc/squid3/squid.conf

To show public IP, to which your network / computer is connected to access Internet

curl ifconfig.me/ip

For above command in batch jobs from hanging for hours due to link down, use below (Maximum operation time - 30 seconds)

curl ifconfig.me/ip -m 30

Alternative to above

dig +short myip.opendns.com @resolver1.opendns.com

curl -m 30 icanhazip.com

curl -m 30 ipecho.net/plain; echo

wget -qO- icanhazip.com

wget http://ipecho.net/plain -O - -q ; echo

To download a particular folder & all its sub folder from a website ( - r for recursive, -N for overwrite if server file newer than local file)

wget -r -N <url>

Above command can be read as below

wget <space> -r <space> -N <url> <enter>

E..g

wget <space> -r <space> -N <space> http://archive.ubuntu.com/ubuntu/ <enter>

To download a particular webpage using wget

wget <url>

Above command can be read as below

wget <space> <url> <enter>

To download a particular webpage using aria2 software

aria2c <url>

Above command can be read as below

aria2c <space> <url> <enter>

To download a particular webpage, which needs authentication using aria2 software

aria2c <url> --http-user=<username> --http-passwd=<password>

Above command can be read as below

aria2c <space> <url> <space> - - http-user=<username> <space> - - http-passwd=<password> <enter>

To find the IP of a hostname using default DNS server(s)

nslookup www.google.com

Above command can be read as below

nslookup <space> www.google.com <enter>

To find the IP of a hostname using a specific DNS server

dig 4.2.2.2 www.google.com

Above command can be read as below

dig <space> 4.2.2.2 <space> www.google.com <enter>

To find the hostname of a computer

hostname <enter>

To list from ARP (Address Resolution Protocol) table, IP and MAC address of computers in the network

sudo arp-scan 192.168.7.0/24

Above command can be read as below ( This gives details about all active ips starting with 192.168.7. & their mac & brand )

sudo arp-scan <space> 192.168.7.0/24 <enter>

sudo arp-scan <ip>

Above command can be read as below (gives ip, mac, network device brand)

sudo arp-scan <space> <ip> <enter>

sudo arp-scan <ip list separated by spaces>

Above command can be read as below

sudo arp-scan <space> <ip list separated by spaces> <enter>

sudo arp-scan 192.168.7.0/24 | grep <mac_address> | cut -f1

Above command can be read as below (gives ip for the given mac address - 192.168.7.0.24 will make it to search all 192.168.7.x )

sudo arp-scan <space> 192.168.7.0/24 <enter>

sudo arp-scan 192.168.0.0/24 192.168.1.0/24 | grep 192.168 | cut -f1-2

Above command can be read as below (gives ip and their mac address in 192.168.0.x & 192.168.1.x subnet)

sudo <space> arp-scan <space> 192.168.0.0/24 <space> 192.168.1.0/24 <space> | <space> grep <space> 192.168 <space> | <space> cut -f1-2 <enter>

arp <ip>

Above command can be read as below (gives mac & computer name for given ip - if warning comes ping that ip to create entry in arp table & then use)

arp <space> <ip> <enter>

arp -a

Above command can be read as below (gives computers mac, ip & computer name [for some computers] from arp table)

arp <space> -a <enter>

To list in real time what file is transfered to / from to what computer (IP)

sudo pktstat -n

Above command can be read as below

sudo <space> pktstat <space> -n <enter>

To list in real time what file is transfered to / from to a particular computer (IP)

sudo pktstat -n "host <ip>"

Above command can be read as below

sudo <space> pktstat <space> -n <space> "host <space> <ip>" <enter>

To list in real time what is transfered in a particular port

sudo pktstat -n "port <port>"

Above command can be read as below

sudo <space> pktstat <space> -n <space> "port <space> <port>" <enter>

To list DHCP servers IP / MAC address in the LAN

sudo dhcp_probe -f eth0

Above command can be read as below

sudo <space> dhcp_probe <space> -f <space> eth0

To list the running OS & softwares (with version & open ports) of a remote computer

sudo nmap -sV -O <ip>

Above command can be read as below

sudo <space> nmap <space> -sV <space> -O <space> <ip> <enter>

Note:

Add -PN with nmap to treat all hosts as online (to test hidden hosts but take long time if on a range)

Add -v (1 or more) to increase verbosity

To know the kernel version

uname -r

Above command can be read as below

uname <space> -r <enter>

To know the Ethernet product name, speed linked, speed capacity, etc...

lshw -C Network

Above command can be read as below

lshw <space> -C <space> Network <enter>

To identify whether your computer is running 32-bit or 64-bit Ubuntu OS

sudo dpkg --print-architecture

Above command can be read as below

sudo <space> dpkg <space>- - print-architecture <enter>

64-bit Ubuntu OS will display

amd64

32-bit Ubuntu OS will display

i386

To know the Ubuntu version & codename

lsb_release -a

Above command can be read as below

lsb_release <space> -a <enter>

To display the return code of the last executed program (to display the main() return value of a just executed c++ program)

echo $?

Above command can be read as below

echo <space> $? <enter>

To Run Network Connections From Terminal (Through Command Line)

sudo nm-connection-editor

To show Connection Information of Network manager

sudo nm-tool

To list all configured Network Connections except pppoe (checked in Ubuntu 16.04)

sudo nmcli con show

To list all configured Network Connections

ifconfig

To list pppoe Connections

ip addr show ppp0

To list status of active Network Connections

sudo nmcli con status

To activate a particular Network Connection

sudo nmcli con up id <Network Connection Name>

To disable Network

sudo nmcli con nm enable false

To enable Network

sudo nmcli con nm enable true

To Display Details of Active Wireless Network Interfaces

iwconfig

To Scan For Wireless Devices

sudo iwlist scan

To administer computer remotely using ssh (uses less bandwidth)

E..g openssh-client package commands

ssh -X <username>@<host>

Above command can be read as below

ssh <space> -X <space> <username>@<host> <enter>

sftp <username>@<host>

Above command can be read as below (like ftp but l represents local. e..g help, ls, lls, cd, lcd, pwd, lpwd, mkdir, lmkdir, cp, get , put, rm, rmdir, rename, chmod, chown, ... )

sftp <space> <username>@<host> <enter>

scp <localpath><filename> <user>@<host>:<path><filename>

Above command can be read as below (to copy a file)

scp <space> <localpath><filename> <space> <user>@<host>:<path><filename> <enter>

openssh-server package details

port 22

/etc/ssh/sshd_config

/etc/init.d/ssh

/usr/sbin/sshd -d (if not started automatically)

E..g ssh clients

Terminal (Needs openssh-client package installed)

WinSCP (Windows & Linux through Wine)

Putty (Windows & Linux through Wine) - To run nano, etc... from Windows

JuiceSSH, Vx ConnectBot (Android), AndFTP (Android - Supports SFTP - FTP over SSH)

E..g console applications installed in server that can be run locally using ssh client

All terminal commands can be executed

sudo gnome-terminal (Root terminal)

nano (Text editor)

elinks (Text based browser)

E..g GUI applications installed in server that can be run locally using ssh client

nm-connection-editor (Network Manager)

gnome-system-monitor (Monitor)

dukto

qupzilla (light weight gui browser with options to change user agent)

gedit (Text editor)

Note: FOSS SSH server for Windows - http://www.kpym.com - http://sourceforge.net/projects/kpym/

To Shutdown Multiple Remote Computers Without Interaction / Password From Configured Client Computer

Assumption:

3 Remote (Server) Computers Have Username user1, user2, user3 and IP 192.168.1.1, 192.168.1.2, 192.168.1.3 Respectively

Step 1: Install openssh-server in All Remote Computers

Step 2: Generating SSH (RSA) Keys in Client Computer

Dash > Terminal > Run The Below Command & Press Enter For The 3 Queries

ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/username/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/username/.ssh/id_rsa.

Your public key has been saved in /home/username/.ssh/id_rsa.pub.

Step 3: Shell Script (Dash > Terminal > gedit $HOME/copykeys.sh) To Copy The Public SSH (RSA) Key of The Client Computer To All The Remote Computers

#!/bin/bash

ssh-copy-id user1@192.168.1.1

ssh-copy-id user2@192.168.1.2

ssh-copy-id user3@192.168.1.3

Step 4: Setting Permission for $HOME/copykeys.sh

Dash > Terminal >

chmod 755 $HOME/copykeys.sh

Step 5: Running Shell Script $HOME/copykeys.sh

Dash > Terminal >

./copykeys.sh

Step 6: To Allow 'sudo shutdown -h now' to Run Without Asking Password, Do The Below in All Remote Computers

sudo visudo

In The File That Opens (/etc/sudoers.tmp) Add The Below Line At The Last. Save (Ctrl+O). Exit (Ctrl+X)

%sudo ALL=NOPASSWD: /sbin/shutdown

Note:

In the above command, %sudo (group) can be replaced with exact username

Step 7: Shell Script (Dash > Terminal > gedit $HOME/all.sh) To Shutdown Multiple Remote Computers

#!/bin/bash

ssh -t user1@192.168.1.1 'sudo shutdown -h now'

ssh -t user2@192.168.1.2 'sudo shutdown -h now'

ssh -t user3@192.168.1.3 'sudo shutdown -h now'

Step 8: Setting Permission for $HOME/all.sh

Dash > Terminal >

chmod 755 $HOME/all.sh

Step 9: Running Shell Script $HOME/all.sh (To Be Done Every Time To Shutdown)

Dash > Terminal >

./all.sh

To find BootP / DHCP servers (mainly rogue DHCP servers) in the network

sudo dhcp_probe eth0 -f

https://launchpad.net/ubuntu/+source/dhcp-probe

To list IP of all the computers which has currently established connection in a particular port (E..g 3128 / To list ip of all squid users)

netstat -nat | grep :3128 | grep ESTABLISHED| awk '{print $5}'| cut -d: -f1 | sort -u

Note: Below command gives number of squid users

netstat -nat | grep :3128 | grep ESTABLISHED| awk '{print $5}'| cut -d: -f1 | sort -u | wc -l

To list IP of all the computers which has currently established connection & IP starts with 192.168

netstat -nat | grep ESTABLISHED| awk '{print $5}'| grep 192.168 | cut -d: -f1 | sort -u

To List all TCP based Listening Ports with Addresses and PID / Program name

sudo netstat -tlpn

To List all domains to which the computer (& browser) is connecting

ss -rt

Note: Above to replace netstat

To list all loaded kernel modules

lsmod | less

To list all available kernel modules

modprobe -l | less

To list all PCI devices with their loaded kernel module

sudo lspci -nnvvv | less

To list all PCI devices kernel modules / drivers name

sudo lspci -nnvvv | grep modules

sudo lspci -nnvvv | grep driver

To display version, etc... of a particular kernel module / driver

modinfo <module_name>

When more than one version of kernel module / driver (e..g for ethernet) is available, to display the active kernel module / driver of ethernet

Use

ethtool -i eth0

or

dmesg | grep Network

modinfo <module_name> may give wrong information

To insert / install / load a new module into the kernel

sudo modprobe <module_name>

sudo insmod <path><module_name.ko>

Note:

modprobe will load .ko files which are inside sub folders of /lib/modules/`uname -r`

depmod command should be executed, if any new .ko file is added into sub folder of /lib/modules/`uname -r`

insmod can install from any path, but can't check dependencies like modprobe

To remove / uninstall / unload a kernel module

sudo modprobe -r <module_name>

sudo rmmod <module_name.ko>

Note:

rmmod can't check dependencies like modprobe -r

To automatically load a kernel module during boot, include the name in the below file /etc/modules using below commad

sudo nano /etc/modules

To blacklist / prevent a particular module from loading

Add module name to the end of /etc/modprobe.d/blacklist file

Note:

In case where 2 or more modules support the same device, or a module invalidly claims to support a device,

using above procedure it can be blacklisted / prevented from loading

iftop - Displays in realtime sorted from highest bandwidth user to lowest, but little resource hungry - To find out which client is using the Internet too much in a LAN

To install type the below command in terminal

sudo apt-get install iftop

Example 1: To run

sudo iftop

(To find the highest bandwidth user, press l 192.168. <enter> s t 3 after running the above command)

Example 2: To monitor a specific interface, when more than 1 is present

sudo iftop -i eth1

To view / search content in text files

cat <filename> | less <enter>

or

cat <filename> | grep <filterword> | less <enter>

Initially beginning lines of the file will be shown

PgDn - one page/screen down

PgUp - one page/screen up

Up arrow - one line up

Down arrow - one line down

End - move to the end of the file

Home - move to the beginning of the file

Q - quit

To highlight search words, type

/

and type the search word and press enter.

Nano command line based text file editor important / basic keys (alternative for vi)

nano [path]<filename> - Runs nano from terminal & opens the file

Cursor keys - Cursor Up / Down / Left / Right

Mouse Scroll - Cursor scroll up or down

PgUp - Cursor one page up

PgDown - Cursor one page down

Home - Cursor to beginning of current line

End - Cursor to end of current line

Alt + \ - Cursor to first line of the file

Alt + / - Cursor to last line of the file

Ctrl + O - Save file

Ctrl + X - Exit

Alt + A - Mark set (Then just use arrow keys to select text) / Mark unset / Deselect

Alt + ^ - Copy Selected text / Current line if no selection available

Ctrl + K - Cut (Kut) Selected text / Current line if no selection available

Ctrl + U - Paste

Ctrl + W - Search (Where is)

Alt + W - Repeat search

Alt + R - Find & Replace

Alt + D - Count Words / Lines / Characters

Ctrl + G - Help (^ means Ctrl key, M means Alt key)

Note: No undo / redo available (experimental)

Example Shell Script to log ip of the modem & ping result every 60 seconds (Useful to report to ISP about Internet disconnection)

#!/bin/bash

# Example Shell Script to log ip of the modem & ping result every 60 seconds in networktest.log

# Useful to report to ISP about Internet disconnection

# Copy the whole content in a file networktest.sh. Save & Close

# Right click the file > Properties > Permissions > Allow executing file as program > Double click > Run in Terminal

echo "--------------------------------------------------" >> networktest.log

date >> networktest.log

ping 8.8.8.8 -c 1 | grep ttl >> networktest.log

wget -qO- ifconfig.me/ip >> networktest.log

echo "-------------------------" >> networktest.log

sleep 60

./networktest.sh

To run DOS based .exe programs using DOSBox in Ubuntu 14.04

Copy the .exe in $HOME folder

Dash > DOSBox Emulator

Give the below commands

mount c ~

c:

Then type the .exe file name and press enter

How to Make HP Printers Work as hplip Printer Driver Gives

"Device Communication Error - # code 5012 - Solution in Ubuntu 16.04

# Using foo2zjs printer driver

# Works For HP 1000, 1005 ( 1005 / 1006 / 1007 / 1008 ) 1018, 1020, 1025 & Related Printers.

http://foo2zjs.rkkda.com/

Step 1:

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get remove hplip cups-filters cups hplip-data system-config-printer-udev

sudo apt-get install build-essential tix groff dc axel cups

sudo apt-get install cups-filters unp system-config-printer-gnome

sudo rm -rf /usr/share/hplip

Step 2:

Download

http://foo2zjs.rkkda.com/foo2zjs.tar.gz

into $HOME folder.

Extract foo2zjs.tar.gz

Folder foo2zjs will be formed inside $HOME folder

Dash > Terminal > Run below commands one by one

cd foo2zjs/

make

Step 3: Any one ./getweb command to get firmware file, based on printer model is enough. ./getweb works through proxy also, if system proxy is set

./getweb 1000

./getweb 1005

./getweb 1018

./getweb 1020

./getweb 1025

sudo make install

sudo make install-hotplug

Unplug and re-plug the USB printer into the PC

Dash > Printers (system-config-printer)

Add new HP Laserjet printer based on your printer model and choose to use foo2zjs printer driver

Power cycle both PC & HP printer. Print

Note: ./getweb command for more printers in http://foo2zjs.rkkda.com/

More Details in:

https://mark911.wordpress.com/2014/10/31/how-to-install-printer-drivers-for-hp-laserjet-1020-in-ubuntu-14-04-lts-without-needing-access-to-openprinting-org-website/

http://foo2zjs.rkkda.com/

Printer (Canon) installation in Ubuntu

CQue DEB Driver

As on 25.Nov.2017

File version v3.0.5

Release date 08 June 2017

Below Got From Gdebi When Opened The CQue_v3.0.5_Linux_64_EN.deb File Downloaded From Below Link

CQue Driver supports all current Canon iR (Image Runner), CLC, MF and LBP devices both colour and monochrome models.

Supported printer languages include: PostScript, PCL5 and PXL or PCL6.

Printer & Scanner (Epson) installation in Ubuntu

Go to the below link

http://download.ebz.epson.net/dsc/search/01/search/

or

http://global.epson.com/driver.html > Driver Download Site

In the webpage that opens, to search driver for Epson L210,

type L210 in search box after selecting Operating system as Linux and click Search

Printer (Samsung) installation in Ubuntu

Dash > Softwares & Updates > Other Software > Add > deb http://www.bchemnet.com/suldr/ debian extra

or

Dash > Synaptic > Edit > Repositories > Other Software > Add > deb http://www.bchemnet.com/suldr/ debian extra

Supported Samsung Printers - http://www.bchemnet.com/suldr/supported.html

After package list got reloaded, install the following packages either using Software Cetre or Synaptic Package Manager

samsungmfp-configurator-qt4

samsungmfp-data

samsungmfp-driver

samsungmfp-scanner

Then

Dash > Printers > Add >

Note: Alternate Open source Samsung driver splix should be removed before installing the above

Configure Mobile Broadband like Tata Photon Whiz, Reliance Broadband+, MTS MBlaze (Vodafone also) in Ubuntu 12.04

Install usb-modeswitch if not already installed, using the below commands

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get install usb-modeswitch

Restart computer

Connect USB modem. Wait for 30 seconds.

Configure through Network Manager.

If modem not connecting restart once again with modem connected & wait for 30 seconds.

For Tata Photon, etc..

Username = internet

Password = internet

For Reliance

Username = <mobile number>

Password = <mobile number>

For MTS MBlaze (Vodafone also)

Username: internet@internet.mtsindia.in

password: mts

If the modem is not sensed after above procedures

http://askubuntu.com/questions/344632/ubuntu-13-04-and-reliance-netconnect-usb-modem

Install usb-modeswitch if not already installed, using the below commands

sudo apt-get update -o Acquire::AllowInsecureRepositories=true

sudo apt-get install usb-modeswitch

Restart computer

Connect your modem. Wait for 30 seconds. Run the below command in Terminal

lsusb

All attached usb devices will be listed with vendorid:productid

Identify your modem, & note down its vendorid, productid

E..g 19d2:ffe9 means vendorid=19d2 , productid=ffe9

Create a file using the command

sudo gedit /etc/udev/rules.d/90-zte.rules

with content as below (replace vendorid & productid with yours)

SUBSYSTEM=="block",SUBSYSTEM=="scsi",ATTRS{model}=="USB Storage FFE9",ACTION=="add",RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0xffe9"

Run the below commands in Terminal

(replace vendorid & productid with yours - this & below steps to be repeated every time modem is plugged)

sudo /sbin/modprobe usbserial vendor=0x19d2 product=0xffe9

Now you can create a connection in network management under Mobile Broaband (below settings for Reliance)

Number should be #777

Username is : mdn number

password is : mdn number

To Type any Unicode or ASCII Character (checked in Ubuntu 16.04.2)

Ctrl + Shift + U >

Type the Unicode / ASCII Number >

Press Enter

English keys to type Tamil language using Tamil phonetic in Ubuntu

http://en.wikipedia.org/wiki/Tamil_script

12 vowels (உயிரெழுத்து)

அ a

ஆ A

இ i

ஈ I

உ u

ஊ U

எ e

ஏ E

ஐ ai

ஒ o

ஓ O

ஔ au

1 hermaphrodite letter (அலியெழுத்து)

(neither a consonant nor a vowel, though often considered as part of the vowel set)

ஃ q

Note:

ஃ is not used much, but combined nowadays as below to represent the 3 foreign sounds which are not in Tamil

f ஃப

z ஃஜ

x ஃஸ்

18 consonants (மெய்யெழுத்து)

க் k

ச் c

ட் d

த் th

ப் p

ற் R

ய் y

ர் r

ல் l

வ் v

ழ் z

ள் L

ங் ng

ஞ் nj

ண் N

ந் w

ம் m

ன் n

216 combinant letters (உயிர்மெய்யெழுத்து) are formed by adding a vowel marker to the consonant (12x18=216)

E..g

க ka

நா waa

ழீ zI

Above 31+216 forms the 247 Tamil characters

To type Grantha Script

http://en.wikipedia.org/wiki/Grantha_script

ஸ்ரீ sri

ஜ் j

ஷ் sh

ஸ் S

ஹ் h

க்ஷ் ksh

Zero Width Non Joiner in Tamil Phonetic Typing

http://en.wikipedia.org/wiki/Zero-width_non-joiner

ZWNJ will be needed in rare situations

E..g 1 (may be needed when typing some foreign language nouns)

If we want to have அஇ close to each other &

if we type ai it will give ஐ (combined character) and not அஇ (close but not combined)

So type a i (with space in between). Then use arrow key & delete key to erase the space

E..g 2 (may be needed when typing some tamil poetry)

If we want to have ள்இ close to each other &

if we type Li it will give ளி (combined character) and not ள்இ (close but not combined)

So type L i (with space in between). Then use arrow key & delete key to erase the space

Google (needs Internet) Tamil Handwriting (with mouse, touchpad, etc...) Recognition with Translation to English

Google (needs Internet) Tamil Phonetic typing (vanakkam > வணக்கம்) with Translation to English

RJ45 jack Pin 1 identification

RJ45 Ethernet / Network Cable Extension Coupler / Joiner

Hold RJ45 jack in such a way that

Copper / metal side is in top

Cable connecting hole is in bottom

Transparent side is facing us

Retention mechanism / clip is facing away

From left

White Orange

Orange

White Green

Blue

White Blue

Green

White Brown

Brown

Networking - Milti Mode Optic Fiber Cable (MM OFC)

OFC SC type connector (can be separated into 2 & connect individually )

http://en.wikipedia.org/wiki/Multi-mode_optical_fiber

http://www.telkolink.com/tr/urun/OM3-PC.html

OM1 - Orange - 62.5/125 μm - 2km (100Mbps) - 275m (1Gbps) - 33m (10Gbps)

OM2 - Orange - 50/125 μm - 2km (100Mbps) - 550m (1Gbps) - 82m (10Gbps)

OM3 & OM4 are laser optimized multi-mode fiber (LOMMF) & are designed for use with VCSEL (Vertical Cavity Surface Emitting Laser)

OM3 - Aqua - 50/125 μm - 2km (100Mbps) - 550m (1Gbps) - 300m (10Gbps) - 100m & 300m with eSR4 (40Gbps) - 100m (100Gbps)

OM4 - Aqua - 50/125 μm - 2km (100Mbps) - 1km (1Gbps) - 550m (10Gbps) - 150m & 550m with eSR4 (40Gbps) - 150m (100Gbps)

Note:

Mixing 50μm with 62.5μm will result in heavy data loss

If transceiver & receiver are interchanged link cannot be got

OM3 cables are backward compatible with OM2 network devices

Programming in Ubuntu

Important Cross Platform (Supports Ubuntu, Windows, ...) Programming IDEs

Qt IDE

Monodevelop

Netbeans

Eclipse

CodeBlocks

geany

Turnkey LAMP (Linux Apache MySQL, PHP/Perl/Python) - https://www.turnkeylinux.org/lampstack

Python Programming

Use idle3

Python 3.x Hello Program

#!/usr/bin/python

print ('Hello, Python!')

---

Note: Below is Python 2.x Hello Program

#!/usr/bin/python

print "Hello, Python!";

Programming / Coding in Online Through Browsers

Examples Below

---

C++ IDE Online

Note: After Typing, Click Compile & Then Execute

---

Python 3 IDE Online

---

MySQL (MariaDB) Terminal Online

Note: After Seeing $ Prompt, Type mysql and Press Enter

---

Python IDE with MySQL Online

---

R Terminal Online

Note: After Seeing $ Prompt, Type R and Press Enter

---

Octave (Matlab equivalent) Terminal Online

Note: After Seeing $ Prompt, Type octave and Press Enter

Points to note down while programming in (latest / standard) C++

1:

using namespace std;

Above line should be included after the #include declarations in EACH source code files

2:

Use int main() instead of void main()

3:

At the end of the program include the below line

return 0;

4:

Don't use .h extension in the following c++ header files

iostream

fstream

cstdlib

cmath

iomanip

ios

sstream

5:

Use .h extension in the following header files

stdio.h

math.h

string.h

6:

Avoid conio.h

Use

cin.get();

instead of

getch();

7:

for (int i=0; i < 10; i++)

{

.... code here .....

}

Instead of declaring the int i as above, declare as below (in for loop)

int i=0;

for (i=0; i < 10; i++)

{

.... code here .....

}

Why Old Borland C++ 5.02 Instead of Latest Qt Creator or CodeBlocks

(To Prepare For CBSE XII Computer Science Exam As on Apr.2017)

Based on CBSE

Class XII Computer Science

Sample Question Paper &

Marking Scheme

for Exam 2015-16

Got From Below Link

it is Clear That

C++ Used There Has

conio.h

getch()

iostream.h

& Not iostream

---

And Above Are

Standards of

C++ ISO 1998

ANSI C 1990

Which Was Used in

Olden Days

Borland C++ 5.02

~90 MB

& Not in Latest

Qt Creator or

CodeBlocks C++

---

To Install Borland C++ 5.02 in Ubuntu 16.04 64-bit

Install Wine

-

Extract Borland C++ v5.02.rar

in $HOME Folder as

Borland C++ v5.02

-

Dash > Terminal >

sudo chmod 777 $HOME/Borland* --recursive

-

$HOME > Borland C++ v5.02 >

Right Click Setup.exe >

Open With Wine >

Installation Starts >

Skip > Next > Next >

Next > Next > Install >

Installation Proceeds >

At Installation End

BDE Configuration Utility

Appears With Menu

Along With a Dialog Box With

Configuring IDAPI >

The Dialog Box Won't Close >

(

No IDAPI Issue Where

export WINEARCH=win32

is Activated &

Office 2010 Installed

)

Select File > Exit >

Configuring IDAPI Closes >

Borland C++ Release Notes

Dialog Box Appears > Skip > OK >

Borland C++ Online Registration

Dialog Box Appears > Skip >

Installation Complete

---

To Run the Installed Borland C++ 5.02

Dash > Terminal >

~/.wine/drive_c/BC5/BIN/bcw.exe

---

Example .cpp Program For Borland C++

#include <iostream.h>

#include <conio.h>

void main()

{

cout << "Hello Borland C++";

getch();

}

---

To Save

Borland C++ > File > Save >

Save File With .cpp Extension

in My Documents ($HOME)

---

To Build

Borland C++ > Project > Build All

---

To Run The C++ Program

Borland C++ > Debug > Run

---

To Exit Borland C++ 5.02

Borland C++ > File > Exit

C / C++ Program using Qt Creator

Step 1:

Search > Qt Creator

---

Step 2:

Select New Project > New Project dialog box appears >

Non-Qt Project > Plain C++ Application > Choose.. > Plain C++ Application dialog box appears >

Type a name (e..g ubuntu) in Name text box > Next > Next > Next > Finish

main.cpp file will have a sample C++ Program similar to below

#include <iostream>

using namespace std;

int main()

{

cout << "Hello C++ \n";

return 0;

}

Delete All. Type or Copy any C or C++ Program

---

Step 3:

Select File > Save All

Select Build > Rebuild All

Select Build > Run

---

Note 1: Do this step if output of cout , out , etc... is not seen in a separate Terminal window while using cout, ...

Select Projects > Desktop > Run > Run in Terminal > Edit (Button in Left)

---

Note 2: Do this step if output of cout, ... has buffer issues in the Terminal window

Select Tools > Options > Environment > Terminal > Replace

/usr/bin/x-terminal-emulator -e

with

/usr/bin/xterm -e

Ok

Sample Qt Program 1

Step 1:

Open Qt Creator

Select File > New File or Project > New > Applications > Qt Widgets Application > Choose... >

Introduction and Project Location > Name > myfirstqt > Next > Next >

Kit Selection > Next >

Class Information > Class name > MainWindow > Base class > QMainWindow >

Header file > mainwindow.h > Source file > mainwindow.cpp > Check Generate Form > Form file > mainwindow.ui >

Next > Finish

main.cpp file gets created (under Sources) along with

myfirstqt.pro (at the top)

mainwindow.h (under Headers)

mainwindow.cpp (under Sources)

mainwindow.ui (under Forms)

Press Ctrl + 2 and switch to Edit mode

Double click on mainwindow.ui

mainwindow.ui opens inside Qt Creator in Design mode

Drag the following widgets into the mainform

2 PushButton (available under Buttons group)

1 Label (available under Display Widgets group)

Right click over each below widget and Change text... as below

1st PushButton Say Hello

2nd PushButton Clear

Label No need to change

Right click over each below widget and Change objectname... as below

1st PushButton pushButton1

2nd PushButton pushButton2

Label label1

( Form has the objectname MainWindow by default )

Step 2:

Right click over pushButton1 > Context menu > Go to slot... > clicked() QAbstractButton > OK >

Cursor taken inside the procedure in mainwindow.cpp which appears as below

void MainWindow::on_pushButton1_clicked()

{

}

Type and make it as below

void MainWindow::on_pushButton1_clicked()

{

ui->label1->setText("Hello");

}

Right click over pushButton2 > Context menu > Go to slot... > clicked() QAbstractButton > OK >

Cursor taken inside the procedure in mainwindow.cpp which appears as below

void MainWindow::on_pushButton2_clicked()

{

}

Type and make it as below

void MainWindow::on_pushButton2_clicked()

{

ui->label1->setText(" ");

}

Step 3: To avoid shadow builds ( To avoid files created in a separate folder while building )

Select Project > Build Settings > Deselect Shadow build

Step 4:

Select File > Save All

Select Build > Rebuild All

Select Build > Run

When the program runs, click Say Hello button

Note:

If cout is used, using flush after every cout is important

Sample Qt Program 2

void MainWindow::on_pushButton1_clicked()

{

ui.label1->setText(ui.lineEdit1->text().toUtf8().data());

}

Sample Qt Program 3

// Incrementing in Line Edit using Push Button

void MainWindow::on_pushButton1_clicked()

{

int tempstillnumber;

tempstillnumber=ui.lineEdit1->text().toInt();

tempstillnumber++;

ui.lineEdit1->setText(QString::number(tempstillnumber));

}

Sample Qt Program 4

// To run any gui programs

void MainWindow::on_pushButton1_clicked()

{

QProcess *proc1 = new QProcess(); // Add #include <QProcess> in mainwindow.h file

proc1->start("nautilus");

}

Sample Qt Program 5

// To run any cui programs

void MainWindow::on_pushButton1_clicked()

{

QProcess *proc1 = new QProcess(); // Add #include <QProcess> in mainwindow.h file

proc1->start("xterm -e nano ~/test.txt");

}

Qt examples in Internet

http://programmingexamples.net/wiki/Qt

To switch between Debug mode / Release mode

Select Projects > Build & Run > Edit build configuration > Release / Debug

Note: If Release option is not available, then follow below procedure (checked in Ubuntu 14.04.1)

Delete

~/.config/QtProject/

~/.config/QtProject.conf

Now open any project. Select debug or release or both when asked

Programming - Java in Ubuntu

Java in Terminal

Create java source file for example GetOwnIP.java using gedit text editor and save it

(plugins are also available to compile from within gedit text editor)

To compile the Java source file GetOwnIP.java with class Own

javac <space> GetOwnIP.java <enter>

To run the class file Own.class and see the output in Terminal

java <space> Own <enter>

Java IDE

Netbeans, Eclipse, Monodevelop, ...

To make a particular JRE as the default in Ubuntu 14.04

Click Dash icon. Type terminal and click at Terminal

Run the below command

sudo <space> update-alternatives <space> - - config <space> java <enter>

All JRE installed will be listed with a * mark near the default one. Select the desired by typing its number and pressing enter

Note: To know the default java runtime environment, run the below command in terminal

java <space> -version <enter>

Sample OpenCV program 1 - Read & show an image

#include <opencv2/core/core.hpp>

#include <opencv2/highgui/highgui.hpp>

int main()

{

cv::Mat imgmat;

imgmat= cv::imread("color.png",CV_LOAD_IMAGE_COLOR);

// keep the color.png file inside the project-build-desktop folder

cv::imshow("Test", imgmat);

cv::waitKey();

}

Sample OpenCV program 2 - Read pixel value from an image

#include <opencv2/core/core.hpp>

#include <opencv2/highgui/highgui.hpp>

#include <iostream>

using namespace std;

cv::Mat imgmat1;

int ch=0,ro,co,nofro,nofco,nofch,i,b,g,r;

uchar *ind;

int main()

{

imgmat1= cv::imread("color.png",CV_LOAD_IMAGE_COLOR);

// cv::imshow("Image", imgmat1);

nofro=imgmat1.rows;

nofco=imgmat1.cols;

nofch=imgmat1.channels();

// Channel order BGR & not RGB, i..e B=ch[0], G=ch[1], R=ch[2]

cout << "\n\nThe given image has " << nofro << " rows & " << nofco << " columns\n";

cout << "\nRow numbering starts from 0 and ends with " << nofro-1;

cout << "\nColumn numbering starts from 0 and ends with " << nofco-1 << "\n\n";

ro=0;

co=0;

ind=imgmat1.data + imgmat1.step[0]*ro+imgmat1.step[1]*co+ch;

b=*ind;

g=*(ind+1);

r=*(ind+2);

cout << "In row " << ro << " columun " << co << " blue component value is " << b << "\n";

cout << "In row " << ro << " columun " << co << " green component value is " << g << "\n";

cout << "In row " << ro << " columun " << co << " red component value is " << r << "\n\n";

ro=nofro-10;

co=nofco-10;

ind=imgmat1.data + imgmat1.step[0]*ro+imgmat1.step[1]*co+ch;

b=*ind;

g=*(ind+1);

r=*(ind+2);

cout << "In row " << ro << " columun " << co << " blue component value is " << b << "\n";

cout << "In row " << ro << " columun " << co << " green component value is " << g << "\n";

cout << "In row " << ro << " columun " << co << " red component value is " << r << "\n\n";

cout << "\n";

cv::waitKey();

}

Sample OpenCV program 3 - Overwrite pixel value in an image

#include <opencv2/core/core.hpp>

#include <opencv2/highgui/highgui.hpp>

int ro,co,ch,nofro,nofco,nofch;

uchar *p1;

cv::Mat imgmat1;

int main()

{

imgmat1= cv::imread("color.png",CV_LOAD_IMAGE_COLOR);

cv::imshow("Source image", imgmat1);

nofro=imgmat1.rows;

nofco=imgmat1.cols;

nofch=imgmat1.channels();

for (ro=0;ro<nofro;ro++)

for(co=0;co<nofco;co++)

for(ch=0;ch<nofch;ch++)

if (ro>nofro/3 && ro<nofro/2)

{

p1=imgmat1.data + imgmat1.step[0]*ro+imgmat1.step[1]*co+ch;

*p1=255;

}

cv::imshow("Processed Image", imgmat1);

cv::waitKey();

}

Sample OpenCV program 4 - Video to Image - Face detection based on Haar Cascade

// cv::VideoCapture, cv::VideoWriter can also be used

#include <opencv2/core/core.hpp>

#include <opencv2/opencv.hpp>

#include <opencv2/highgui/highgui.hpp>

#include <stdio.h>

int main()

{

int i,currentstillnumber=0;

char key=' ';

char videoname[250],imagefilename[250];

char filename[]="/usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml";

CvHaarClassifierCascade *cascade;

CvMemStorage *storage;

CvCapture *capture;

CvRect *r=0;

IplImage *frame;

cv::Mat matimage;

cascade = ( CvHaarClassifierCascade* )cvLoad( filename, 0, 0, 0 );

storage = cvCreateMemStorage( 0 );

sprintf(videoname,"%s.avi","samplevideo");

capture = cvCaptureFromAVI(videoname); // or capture = cvCaptureFromCAM(0);

while( key != 27 ) // until Esc pressed

{

frame = cvQueryFrame( capture );

matimage=frame; // IplImage to cv::Mat conversion

CvSeq *faces = cvHaarDetectObjects(

frame,

cascade,

storage,

1.1,

3,

0,

cvSize( 40, 40 ) );

/* for each face found, draw a red box */

for( i = 0 ; i < ( faces ? faces->total : 0 ) ; i++ )

{

r = ( CvRect* )cvGetSeqElem( faces, i );

cvRectangle( frame,cvPoint( r->x, r->y ),cvPoint( r->x+r->width, r->y + r->height),CV_RGB( 255, 0, 0 ), 1, 8, 0 );

}

cv::imshow("video",matimage);

key=cv::waitKey(1); // milliseconds

currentstillnumber++;

sprintf(imagefilename, "%s%s%d%s", "./created/","samplevideo",currentstillnumber,".ppm");

cv::Mat croppedimage(matimage,cv::Range(r->y, r->y + r->height-1),cv::Range(r->x,r->x+r->width-1));

// row start, row end, column start, column end

cv::imwrite(imagefilename,croppedimage);

}

cv::destroyWindow("video");

cvReleaseCapture( &capture );

cvReleaseHaarClassifierCascade( &cascade );

cvReleaseMemStorage( &storage );

return 0;

}

Sample Fortran 77 / Fortran 95 program (Leave 6 spaces before each below commands. For typing, use geany)

program helloworld

write (*,*) 'Hello World'

end

Compiling and running fortran through Terminal:

fort77 <space> <filename> <enter> where <filename> should have extension .f. To run ./a.out <enter>

or

gfortran <space> <filename> <enter> where <filename> should have extension .f. or .f90 To run ./a.out <enter>

Fortran programming with code suggestion / completion using Codeblocks

Codeblocks > File > New > Project > Fortran application > Go > Next >

Project title > <projectname> > Folder to create project in > $HOME > Next >

Compiler > If GNU GCC Compiler, then select GNU Fortran Compiler > Finish > OK > OK > OK

In left pane of Codeblocks > Workspace > <projectname> > Fortran Sources > main.f95 > Double click > Type fortran program in right pane

Select File > Save all files

Select Build > Build and Run

Note: To set compiler permanently to GNU Fortran

Dash > Codeblocks > Settings > Global compiler settings > Compiler... >

Selected compiler > Instead of GNU GCC Compiler select GNU Fortran Compiler > Set as default > OK

Note: Make sure that the following packages have been installed before trying above procedure

build-essential gfortran xterm codeblocks codeblocks-contrib

Alternative IDE:

eclipse/photran ( http://www.eclipse.org/photran/ )

In Texmaker, building (compiling) Latex .tex files with pictures / BibTex gives error - Solution (in Ubuntu 14.04)

Step 1: (If with BibTeX)

Dash > Texmaker > Options > Configure Texmaker >

Quick Build > LaTeX + Bib(la)TeX + LaTeX (x2) + dvips + ps2pdf + View PDF

Step1: (If without BibTeX)

Dash > Texmaker > Options > Configure Texmaker >

Quick Build > LaTeX + dvips + ps2pdf + View PDF

Step2: To delete automatically created files if any in the previous build (compile)

Texmaker > Tools > Clean > Delete Files

Step3:

Texmaker > Tools > Quick Build

To enable automatic spell checking (red underline) in Texmaker (checked in Ubuntu 14.04.1)

Step 1:

Ensure that the below package is installed

(Default dictionary of LibreOffice, Firefox, Chrome, GIMP, gedit, ...)

hunspell-en-us

Step 2:

Select Texmaker > Options > Configure TexMaker >

Editor > Spelling dictionary > /usr/share/hunspell/en_US.dic > OK

To enable automatic suggestion listing in \cite in Texmaker (checked in Ubuntu 14.04.1)

Step 1:

Ensure the below line (replace reffilename.bib with your own). Select File > Save All

\addbibresource{reffilename.bib}

Step 2: If Structure left pane is not visible

Select View > Structure

Step 3:

Double click over the reffilename.bib displayed in the structure & open it.

Select File > Close

Step 4:

Now type \cite{ to see the suggestion listing

BibTeX / Bibliography in LaTeX using Texmaker (checked in Ubuntu 14.04)

Use JabRef to create (or edit) .bib file (bibliographic database)

.tex compilation will give error, if the below 2 points are not followed

Between Author names don't use comma. Use only and

Remove duplicate entries using JabRef > Search > Resolve duplicate BibTex keys

Entries inside .tex LaTeX file for .bib BibTeX / Bibliography file

\bibliography{reffile} % reffile.bib file should be present

\bibliographystyle{somestyle}

Example 1 - for plain alphabetically sorted entries labeled with numbers

\bibliographystyle{plain}

\bibliography{reffile} % reffile.bib file should be present

Example 2 - Like plain with numbers but not alphabetically sorted

\bibliographystyle{unsrt}

\bibliography{reffile} % reffile.bib file should be present

Example 3

\bibliographystyle{IEEEbib} % IEEEbib.bst file should be present

\bibliography{reffile} % reffile.bib file should be present

% Sample document for typing any Unicode supported language using XeLaTeX (For English & Tamil Typing in LaTeX)

% XeLaTex supports Unicode fonts & System fonts better than LaTeX (which uses only TeX fonts)

% TexMaker > Options > Configure Texmaker > Quick Build > XeLaTeX + View PDF > OK

% Open the font file using Font Viewer in Ubuntu to know the font name

% Copy any new fonts you wish to use inside $HOME/.fonts/ folder

% Already lot of fonts will be available inside /usr/share/fonts/ folder

% Opening $HOME/.fonts/ARIALUNI.TTF in Font Viewer shows its name as "Arial Unicode MS"

% Opening /usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf in Font Viewer shows its name as "Lohit Tamil"

\documentclass{article}

\usepackage{fontspec}

\begin{document}

\setmainfont{Lohit Tamil}

அன்புடன்

\setmainfont{Arial}

S.Saravanan

\setmainfont{Arial Unicode MS}

அன்புடன்

S.Saravanan

\end{document}

Violent Video Games

Leads to

Aggression

Confrontation

Desensitization

Decline of

Academic performance

Decision

Empathy

Relationship

Pro social behavior

http://en.wikipedia.org/wiki/Video_game_controversies

Examining 130 studies with over 130,000 participants worldwide, concluded that exposure to violent video games causes both short term and long term aggression in players and decreases empathy and prosocial behavior (Ferguson, Christopher; John Kilburn,2010)

http://www.pamf.org/preteen/parents/videogames.html

Gentile, Lynch, Linder & Walsh (2004, p.6) tells adolescent girls play video games for an average of 5 hours a week, whereas boys averaged 13 hours a week

The researchers concluded that players who had prior experience playing violent video games responded with an increased level of aggression when they encountered confrontation (Bushman & Anderson, 2002).

Gentile & Anderson (2003) state that playing video games may increase aggressive behavior because violent acts are continually repeated throughout the video game

Teens who play violent video games for extended periods of time:

Tend to be more aggressive

Are more prone to confrontation with their teachers

May engage in fights with their peers

See a decline in school achievements. (Gentile et al, 2004).

In a Joint Statement (2000) before the Congressional Public Health Summit, a number of American medical associations, the American Medical Association, American Academy of Pediatrics, American Psychological Association, American Academy of Family Physicians and American Academy of Child & Adolescent Psychiatry, suggests that playing violent video games may have a more dramatic influence on the behavior of children and adolescents

http://voices.yahoo.com/the-negative-effects-violent-video-games-children-3884628.html

Teenagers who played violent video games were less likely to donate money to charities or engage in other actions that benefited the community such as volunteer work (Chambers & Ascione, 1987)

Results of the surveys showed that the group of students who played violent video games were less liked, in general, by their peers (Silvern, & Williamson, 1987).

Anderson and Bushman (2001), state that "playing violent video games decreases prosocial behavior" (p. 353).

On the 11th of March 2009, Tim Kretshmer in camouflage, hijacked a car, and then took out his 9mm baretta unleashing a shooting rampage, killing 15 of his classmates in his school in Wennenden, Germany. This scenario is eerily similar to the video game "Far Cry 2", where the main character also uses camouflage as attire and goes around in his car shooting and killing people. Investigations of the incident revealed that 6 hours before the "massacre", Kretshmer had just finished playing a marathon of "Far Cry 2" under the username "Jawspredator1" (Pancevskiin, 2009)

In one study, children in a middle school were divided into 2 groups. One group was allowed to play violent video games for 25 minutes, before being released to the play ground for recess. The second group of children played for 25 minutes adventure and puzzle games that lacked any violent scenes or elements whatsoever . After being let out, their actions were recorded. Over the course of the study, the researchers discovered that the children actually yelled more often, were more physical with one another (pushing, kicking etc...) and even got into more fights than those who played the non violent games (Ihori 2007).

One such study, concluded that individuals who played violent video games had a 6% higher chance of developing substance abuse than their counterparts who played regular video games. Furthermore, the study revealed that familial relations, compared to other relationships, were the most impacted by violent video game play (Harding, 2009).

According to Berkowitz and Zanna (2004) violent video games are most infamous for triggering both aggressive feelings and behavior. The proverb "violence breeds violence" best describes the results of numerous studies. Research has shown that children are more likely to kick, fight and hit their peers due to playing violent video games. Increase in quarrels between students and their teachers have also been observed (Harding, 2009).

When a person becomes accustomed to a stimulus due to repetitive exposure to it, there is a very high probability that desensitization will occur. Desensitization is a good thing when training soldiers for what they might expect in combat, or when medical students are having a hard time coping with their everyday life in hospitals (Passer & Smith, 2008). However, a society which is completely desensitized is one that cannot function anymore.

Studies have shown that gamers' reactions towards violent images decreases with increasing exposure to violent video games (Signorielli, 2005)

http://www.psychologytoday.com/blog/moral-landscapes/201011/playing-violent-video-games-good-or-bad

Child and adolescent brains are typically susceptible to addictions as their brains are under development till the middle 20s. Recent brain research is suggesting that any addictive behavior (drugs, alcohol, pornography, gambling, violence) can harm the final stages of brain development in young adults, leaving them with a less than mature decision making system and diminished empathy for others.

Neuroscientific studies show reduced cognitive brain functions in individuals exposed to violent media. The greater the experience with violent media, the lower was the activation of brain areas for thinking, learning, reasoning and emotional control

http://www.medicalnewstoday.com/releases/191171.php

According to Markey, teenagers who possess the 3 traits: high neuroticism (e.g., easily upset, angry, depressed, emotional, etc.), low agreeableness (e.g., little concern for others, indifferent to others feelings, cold, etc.) and low conscientiousness (e.g., break rules, don't keep promises, act without thinking, etc.) tended to be most adversely affected by violent video games.

http://www.news-medical.net/news/2007/04/05/23221.aspx

Even the children's violent video games which are more cartoonish and often show no blood had the same size effect as the much more graphic games, said Gentile.

Another study detailed in the book surveyed 189 high school students. The authors found that respondents who had more exposure to violent video games held more pro-violent attitudes, had more hostile personalities, were less forgiving, believed violence to be more typical, and behaved more aggressively in their everyday lives. The survey measured students' violent TV, movie and video game exposure; attitudes toward violence; personality trait hostility; personality trait forgiveness; beliefs about the normality of violence; and the frequency of various verbally and physically aggressive behaviors.

The researchers were surprised that the relation to violent video games was so strong.

m.yahoo.com/w/ygo-mail

Public DNS servers

Google

8.8.8.8

8.8.4.4

Dnsadvantage

156.154.70.1

156.154.71.1

OpenDNS

208.67.222.222

208.67.220.220

Norton

198.153.192.1

198.153.194.1

Verizon

4.2.2.1

to

4.2.2.6

ScrubIt (filters pornographic websites, etc...)

67.138.54.100

207.225.209.66

Creating bootable Win7 / Win8.x usb disk without direct windows (Not needed for Ubuntu installation)

(e..g Win8.1 64-bit usb boot disk using Win7 32-bit running in Virtual Machine Manager (virt-manager) of Ubuntu 14.04.1 64-bit)

Install Win7 (or Win7 PE) in Virtual Machine Manager

Virtual Machine Manager > Right Click Windows 7 Guest > Open > i (Show Virtual Hardware Details) >

Controller USB > Model > USB2 > Apply > Add Hardware > USB Host Device > USB Disk Name >

Run Windows 7 Guest > USB drive is Shown in

Win7 > Start > Programs > Accessories > Command prompt > Right click > Run as administrator >

diskpart

DISKPART>

lis dis

List all disks. Note what number your USB key is, say Disk 1

sel dis 1

clean

cre par pri

for quick fs=fat32 label=WIN81

active

exit

exit

Shut down Win7

Safely remove usb drive in Ubuntu. Plug it once again.

Ubuntu > $HOME > Right click over the win8.1.iso file > Open with Disk Image Mounter >

Copy win8.1.iso content to usb drive

More details in:

http://bootableusb.net/how-to-make-windows-8-1-usb-installer/

To boot bootable live usb Windows PE from hard disk in Ubuntu (Not needed for Ubuntu installation)

(useful to run some Windows based bios updating softwares)

http://en.wikipedia.org/wiki/Windows_Preinstallation_Environment

Boot from the pen/usb drive to ensure that Windows PE is working properly

Shut down the computer

Boot into Ubuntu

Copy all the files from the bootable live pen/usb drive in an empty hard disk NTFS partiton (e..g /dev/sda1)

(Don't copy it inside any folder)

Open Terminal & run the below command

sudo update-grub

Above command can be read as below

sudo <space> update-grub <enter>

Restart computer

GRUB2 menu which appears in the beginning will now have a new entry

Just select it & press enter

Note: To run usb bootable live Linux .iso images

Install grml-rescueboot

Copy .iso files into /boot/grml/ folder

Open Terminal & run the below command

sudo update-grub

After Fresh Install, While Booting Getting Error "attempting to read or write outside of disk hd0"

(Checked in Ubuntu 16.04)

Reason:

May be Because of Limitations in the Old Bios

Installer Not Able to Handle Over ~100GB Location of HDD

Solution:

Allocate a Separate 1GB /boot Partition at the Beginning of Disk

More Details in:

http://www.linuxquestions.org/questions/linux-newbie-8/error-attempt-to-read-or-write-outside-of-disk-'hd0'-ubutnu-14-04-a-4175502753/

Android Emulators for Ubuntu in 2016 - http://emulatorforpc.com/best-android-emulator-ubuntu/

GenyMotion - https://www.genymotion.com/

Andy - https://www.andyroid.net/

Softwares For Syllabus - Ubuntu Users Can Install Using Synaptic - Download Link Given For Windows Users

(PAJANCOA Campus Users Check in Intranet 10.0.0.2 First)