Page 1 of 1

Install flash player EZ !! GTK GUI !

PostPosted: Sat Apr 24, 2010 10:35 am
by JOHNNYG
HELLO here I have found a great little helper for alll !!! this will install adobe flashplayer in 64 and 32 bit systems !
Note press remove button first ! then install your system x86 or x64 ! one for Ubuntu and one for Kubuntu ! just untar,check permissions (make sure file is executable-should be ready) double click and your good to go ! :D
found it here http://ubuntuforums.org/showthread.php? ... _installer

Re: Install flash player EZ !! GTK GUI !

PostPosted: Sat Apr 24, 2010 2:17 pm
by Cell
How does it work?


I know I can open the file,and check it out myself,but I'm lazy today....its Saturday. ;)

Re: Install flash player EZ !! GTK GUI !

PostPosted: Sat Apr 24, 2010 3:32 pm
by JOHNNYG
works great ! just like its aposed to !!! :lol: I wish I had this when I was first startin-out ! remove= remove all bad data, install your arch. install's 32 or the ever elusive 64bit flash with just a click ! how cool !!! ! would not post it if I did not use it ! it is a wonderful app ! <BREW>

Re: Install flash player EZ !! GTK GUI !

PostPosted: Sat Apr 24, 2010 4:52 pm
by stanca
Great!That would be very useful for the newbies in x64bit. :) :D <BREW>

Re: Install flash player EZ !! GTK GUI !

PostPosted: Sat Apr 24, 2010 5:56 pm
by Cell
Pretty cool.

Looking at the code its made for Fox,and Iceweasel.Should be easy to modify for other browser also.Keep in mind 32 bit flash is more stable than 64 bit.


That's what I meant by "how it works"...not how is it working.lol.


Cell

Re: Install flash player EZ !! GTK GUI !

PostPosted: Sun Apr 25, 2010 9:43 am
by JOHNNYG
OPPS sorry cell ! <BREW> I am not much of a programmer! :lol: I didn't delve into the workings of it, just tested it, and seemed to me that it was just "The bee's knee's" :lol:

Re: Install flash player EZ !! GTK GUI !

PostPosted: Sun Apr 25, 2010 12:55 pm
by Cell
OPPS sorry cell ! <BREW> I am not much of a programmer!



Don't let me fool you man....neither am I,but don't let an coder fool you either...anybody can do it if one wants to learn. ;)


Some times I just like to know how things are working.If you use the flash app I knew it would have to gain root,and delete different releases of flash,and such.I just wanted to know how the script went about doing it.


Check out the code.when You read it it you will know what its doing.

Code: Select all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132

   

#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>

void install_32bit(GtkWidget *widget, gpointer flash) //32 - bit Installation
{
  system("kdesudo 'apt-get -y install flashplugin-installer'");
  system("zenity --info --text 'Flash Plugin Installed Successfully'");
}
void install_64bit(GtkWidget *widget, gpointer flash) //64 -bit Installation
{
  system("kdesudo 'dpkg --purge --force all nspluginwrapper'");
  system("wget -c http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz");
  system("tar xvfz libflash*");
  system("kdesudo 'mv libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so'");
  system("rm libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz");
  system("zenity --info --text 'Flash Plugin Installed Successfully'");
}
void install_beta(GtkWidget *widget, gpointer flash)//Install Flash 10.1 Beta
{
  system("kdesudo 'apt-get -y install nspluginwrapper'");
  system("wget -c http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_1_rc_linux_040510.tar.gz");
  system("tar xvfz flashplayer10_1_rc_linux_*");
  system("kdesudo 'mv libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so'");
  system("rm flashplayer10_1_rc_linux_*tar.gz");
  system("zenity --info --text 'Flash Player 10.1 Installed Successfully'");
}
void remove_flsh(GtkWidget *widget, gpointer flash)//Flash Removal
{
  system("kdesudo 'rm /var/lib/dpkg/info/flashplugin*'");
  system("kdesudo 'rm /var/lib/dpkg/info/adobe-flashplugin*'");
  system("kdesudo 'dpkg --remove --force-remove-reinstreq adobe-flashplugin '");
  system("kdesudo 'apt-get -y purge flashplugin-installer gnash mozilla-swfdec'");
  system("kdesudo 'rm /usr/lib/mozilla/plugins/libflashplayer.so'");
  system("kdesudo 'rm ~/.mozilla/plugins/libflash*'");
  system("kdesudo 'rm /usr/lib/firefox-3*/plugins/libflash*'");
  system("kdesudo 'apt-get -y remove --purge flashplugin-installer'");
  system("kdesudo 'apt-get -y remove --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash '");
  system("kdesudo 'apt-get -y remove --purge iceweasel-flashplugin mozilla-flashplugin firefox-flashplugin '");
  system("kdesudo 'apt-get remove -y --purge swfdec-mozilla libflashsupport nspluginwrapper iceape-flashplugin'");
  system("kdesudo 'apt-get remove -y --purge xulrunner-flashplugin midbrowser-flashplugin xulrunner-addons-flashplugin'");
  system("kdesudo 'rm -f ~/.mozilla/plugins/libflash* '");
  system("kdesudo 'rm -f ~/.mozilla/plugins/ns*flash* '");
  system("kdesudo 'rm -f /usr/lib/firefox-addons/plugins/libflash*'");
  system("kdesudo 'rm -f /usr/lib/firefox/plugins/libflash*'");
  system("kdesudo 'rm -f /usr/lib/iceape/plugins/flashplugin-alternative.so' ");
  system("kdesudo 'rm -f /usr/lib/iceweasel/plugins/flashplugin-alternative.so' ");
  system("kdesudo 'rm -f /usr/lib/iceweasel/plugins/npwrapper.libflashplayer.so' ");
  system("kdesudo 'rm -f /usr/lib/midbrowser/plugins/flashplugin-alternative.so' ");
  system("kdesudo 'rm -f /usr/lib/mozilla/plugins/libflash*'");
  system("kdesudo 'rm -f /usr/lib/xulrunner-addons/plugins/flashplugin-alternative.so' ");
  system("kdesudo 'rm -f /usr/lib/xulrunner/plugins/flashplugin-alternative.so' ");
  system("kdesudo 'rm -f /var/lib/flashplugin-nonfree/npwrapper.libflashplayer.so' ");
  system("zenity --info --text 'Flash Plugin Removed'");
}

int main(int argc, char** argv) {
//Widgets
  GtkWidget *flash;
  GtkWidget *window;
  GtkWidget *frame;
  GtkWidget *install_x64;
  GtkWidget *install_x86;
  GtkWidget *remove_flash;
  GtkWidget *label;
  GtkWidget *title1;
  GtkWidget *title2;
  GtkWidget *install_flash_beta;
 
  PangoFontDescription *bold = pango_font_description_from_string ( "Sans Bold 24");//Bold Font Paremeters

  gtk_init(&argc, &argv);

  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);//Window Position
  gtk_window_set_default_size(GTK_WINDOW(window), 300, 180);//Window Size
  gtk_window_set_title(GTK_WINDOW(window), "Adobe Flash Installer"); //Title

  frame = gtk_fixed_new();
  gtk_container_add(GTK_CONTAINER(window), frame); //Draw Window
   
  install_x86 = gtk_button_new_with_label("Install Flash (x86)"); //32 - bit Flash Button
  gtk_widget_set_size_request(install_x86, 140, 35);
  gtk_fixed_put(GTK_FIXED(frame), install_x86, 77, 90);

  install_x64 = gtk_button_new_with_label("Install Flash (x64)");//64 - bit Flash Button
  gtk_widget_set_size_request(install_x64, 140, 35);
  gtk_fixed_put(GTK_FIXED(frame), install_x64, 77, 135);
 
  install_flash_beta = gtk_button_new_with_label("Install Flash Beta");//Beta Flash Button
  gtk_widget_set_size_request(install_flash_beta, 140, 35);
  gtk_fixed_put(GTK_FIXED(frame), install_flash_beta, 77, 180);

  remove_flash = gtk_button_new_with_label("Remove Flash");//Remove Flash
  gtk_widget_set_size_request(remove_flash, 120, 35);
  gtk_fixed_put(GTK_FIXED(frame), remove_flash, 87, 225);

  label = gtk_label_new("Designed By CarleeDolphinaura");
  gtk_fixed_put(GTK_FIXED(frame), label, 45, 280);
  title1 = gtk_label_new("Adobe Flash");//Title (Row 1)
  gtk_fixed_put(GTK_FIXED(frame), title1, 45, 10);
  gtk_widget_show_all(window);
  title2 = gtk_label_new("Installer");
  gtk_fixed_put(GTK_FIXED(frame), title2, 70, 40); //Title (Row 2)
  gtk_widget_show_all(window);
  gtk_widget_modify_font(GTK_WIDGET(title1),bold);//Make Title (Row 1) Bold
  gtk_widget_modify_font(GTK_WIDGET(title2),bold);//Make TItle (Row 2) Bold


  g_signal_connect(window, "destroy",//Closing Callback
      G_CALLBACK (gtk_main_quit), NULL);
 
  g_signal_connect(install_x86, "clicked",//32-bit Callbacks
      G_CALLBACK(install_32bit), flash);
     
  g_signal_connect(install_x64, "clicked",//64-bit Callbacks
      G_CALLBACK(install_64bit), flash);

  g_signal_connect(remove_flash, "clicked",//Remove Flash Callbacks
      G_CALLBACK(remove_flsh), flash);
     
  g_signal_connect(install_flash_beta, "clicked",//Flash Beta Callbacks
      G_CALLBACK(install_beta), flash);
//Echo Terminal Output
system("echo 'Adobe Flash Tools For Ubuntu'");
system("echo 'Designed By CarleeDolphinaura (Ubuntu Forums)'");
system("echo 'Licenced Under GPL v3'");
  gtk_main();

  return 0;
}


Re: Install flash player EZ !! GTK GUI !

PostPosted: Thu Oct 28, 2010 2:09 am
by tittiger
Hi Johnny!
Thanks to you and The Man for UE2.8!

I got flash to work on 2.8 live by searching for flash in the Ubuntu software center, selecting it and letting it install.
I then watched flash movies at YouTube with both Firefox and Chromium NP

Thanks for your hard work guys!

--Joe