Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
java_8_install_for_screen_sharing

Packages need to be install for desktop sharing

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

To install flash player on ubuntu

I have written shell script and uploaded in ftp.expertus.com

file name = flash.sh

download it from ftp.expertus.com

user name = infrachn

file name = flash.sh

to run the script

./flash.sh

if already installed not working select 5 

For first time installation select option 1    

1) Install freshplayer plugin
2) enable or disable hardware acceleration
3) enable or disable plugin
4) update plugin
5) uninstall plugin
6) Quit
Choose an option: 1
Getting dependencies...
Reading package lists... Done

Install plugin system wide? [Y/N]  ##type Y
====== save this content as flash.sh ======


flash.sh



#!/bin/bash
# ----------------------------------
# Author: Sudharsan J
# Version 1.1
# To run this scrip, open the terminal type: chmod +x flash.sh; ./flash.sh


function install_plugin(){
  echo "Getting dependencies..."
  HWFILE=/opt/google/chrome/PepperFlash/libpepflashplayer.so;

  if [ -f $HWFILE ];then
     sudo apt-get install build-essential git cmake pkg-config libglib2.0-dev libasound2-dev libx11-dev libgl1-mesa-dev libgles2-mesa-dev liburiparser-dev libcairo2-dev libpango1.0-dev libpangocairo-1.0-0 libpangoft2-1.0-0 libfreetype6-dev libgtk2.0-dev libxinerama-dev libconfig-dev libevent-dev;
  else 
     sudo add-apt-repository -y ppa:skunk/pepper-flash;
     sudo apt-get update;
     sudo apt-get install --no-install-recommends pepflashplugin-installer;
     sudo apt-get install build-essential git cmake pkg-config libglib2.0-dev libasound2-dev libx11-dev libgl1-mesa-dev libgles2-mesa-dev liburiparser-dev libcairo2-dev libpango1.0-dev libpangocairo-1.0-0 libpangoft2-1.0-0 libfreetype6-dev libgtk2.0-dev libxinerama-dev libconfig-dev libevent-dev ragel;    
     sudo mkdir -p /opt/google/chrome/PepperFlash; 
     sudo ln -s /usr/lib/pepflashplugin-installer/libpepflashplayer.so /opt/google/chrome/PepperFlash;
  fi

  cd;

  git clone https://github.com/i-rinat/freshplayerplugin.git;

  cd freshplayerplugin; mkdir build; cd build; cmake ..; make; 

  echo ""

  while true
  do
  read -p "Install plugin system wide? [Y/N] " yn

    case "$yn" in
            y|Y)  sudo ln -s ~/freshplayerplugin/build/libfreshwrapper.so /usr/lib/mozilla/plugins
        break;;
            n|N)  mkdir -p ~/.mozilla/plugins; ln -s ~/freshplayerplugin/build/libfreshwrapper.so ~/.mozilla/plugins
        break;;
             * ) echo  -e $RED "Invalid Choice";;
    esac
  done

  echo ""
  echo "Installation complete!"
  echo ""

}

function uninstall_plugin(){
  rm -rf ~/freshplayerplugin;
  HWFILE=~/.config/freshwrapper.conf;
  FRESHFILE=/usr/lib/mozilla/plugins/libfreshwrapper.so;
  FRESHFILE2=~/.mozilla/plugins/libfreshwrapper.so;
  sudo rm -f $HWFILE $FRESHFILE $FRESHFILE2;
}

function update_plugin(){
  cd ~/freshplayerplugin; git pull; cd build; cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..; make;
}
function enable_disable_hW(){
  HWFILE=~/.config/freshwrapper.conf;

  if [ -f $HWFILE ];
  then
     rm  $HWFILE;
    printf "Hardware acceleration DISABLED \n\n"
  else 
    echo exp_enable_3d = 1 > $HWFILE;
    echo "flash_command_line = \"enable_hw_video_decode=1,enable_stagevideo_auto=1\"" >>$HWFILE
    printf "Hardware acceleration ENABLED \n\n"

  fi
}


function enable_disable(){
  FILELOC1=~/freshplayerplugin/build/libfreshwrapper.so;
  FILELOC2=/usr/lib/mozilla/plugins/libfreshwrapper.so;
  FILELOC3=~/.mozilla/plugins/libfreshwrapper.so;


   if [[ -f $FILELOC2 || -f $FILELOC3 ]]; then
    sudo rm -f $FILELOC2 $FILELOC3;
    printf "fresh player plugin DISABLED \n\n"

  else 
  while true
   do
     read -p "Enable system wide or not [Y/N]: " yn
    case "$yn" in
            y|Y)sudo ln -s $FILELOC1 /usr/lib/mozilla/plugins 
        break;;
            n|N)  ln -s $FILELOC1 ~/.mozilla/plugins
        break;;
             * ) echo  -e $RED "Invalid choice";;
      esac
    done
    printf "fresh player plugin ENABLED \n\n"

  fi
}

k=1

clear

printf "Welcome to fresh player plugin Maintainer v1.1 \n\n"

PS3='Choose an option: '

options=("Install freshplayer plugin" "enable or disable hardware acceleration" "enable or disable plugin" "update plugin" "uninstall plugin" "Quit")

select items in "${options[@]}"

do
  case $items in
    "Install freshplayer plugin")
      install_plugin;
    ;;
    "enable or disable hardware acceleration")
      enable_disable_hW
    ;;
    "enable or disable plugin")
      enable_disable
    ;;
    "update plugin")
      echo "Updating fresh player plugin..."
      update_plugin
      echo ""
    ;;
    "uninstall plugin")
     echo "uninstalling plugin..."
      uninstall_plugin
     echo ""
     echo "fresh player plugin has been successfully removed from your system"
     echo ""
     ;;
    "Quit")
      break
    ;;
    *) echo  -e $RED "invalid option";;
  esac

  for i in "${options[@]}"
  do
    echo $((k++))")$i"

  done
  k=1;

done
clear


java_8_install_for_screen_sharing.txt · Last modified: 2018/08/31 16:16 (external edit)