Categories
Bash Scripts Uncategorized

Install TEAM VIEWER 12 with Shell Script – Ubuntu

#!/bin/bash
# Use this script for Ubuntu only.
# By default this script will install 64bit Teamviewer


echo "============================================"
echo -e "\e[1;32m REMOVING PREVIOUS TEAMVIEWER IF ANY ............ \e[0m"
echo "============================================"
sudo apt-get remove teamviewer -y
sudo apt autoremove -y
sudo apt-get remove teamviewer:i386 -y
sudo dpkg -r teamviewer:i386
sudo dpkg --purge teamviewer
sudo dpkg --purge teamviewer:i386
sudo apt autoremove -y
rm -fr /tmp/teamviewer*
cd /tmp/ ; wget http://download.teamviewer.com/download/version_12x/teamviewer_amd64.deb
sudo dpkg -i /tmp/teamviewe*
sudo apt-get install libgcc1 -y
sudo apt-get -f install -y
sudo dpkg -l | grep -i teamviewer
if [[ $? != 0 ]]; then
echo "============================================"
echo -e "\e[1;31m TEAM VIEWER 12 INSTALLATION FAILED \e[0m"
echo "============================================"
else
echo "============================================"
echo -e "\e[1;32m TEAM VIEWER 12 INSTALLED SUCCESSFULLY \e[0m"
echo "============================================"
fi

 

Categories
Uncategorized

How to Install lz4 on Ubuntu

echo "deb http://us.archive.ubuntu.com/ubuntu vivid main universe" >> /etc/apt/sources.list
apt-get update
apt-get install liblz4-tool -y
Categories
Uncategorized

[Solved] eth0 or eth1: error fetching interface information: Device not found on Ubuntu

Error:-
etho: error fetching interface information: Device not found
OR
eth1: error fetching interface information: Device not found

Solution:-

Correct your interfaces file if you are sure that device is there OR cable is connected.

cat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 104.70.x.x
gateway 104.70.x.x
netmask 255.255.x.x
auto eth1
iface eth1 inet static
address 172.16.x.x
netmask 255.255.x.x
auto lo
iface lo inet loopback

Replace address, gateway, netmask with your own actual IPs.