Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing Flash Player
#1

Quote:next up, lets install the Flash pluginuse vi to create a new file

 

 



Code:
vi /etc/yum.repos.d/flash.repo

<div>


 

 

now copy the below and paste it into the file

 

 

<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="2357" data-ipsquote-contentclass="forums_Topic">[macromedia]name=Macromedia for i386 Linux

baseurl=http://macromedia.mplug.org/rpm/

enabled=1

gpgcheck=1

gpgkey=http://macromedia.mplug.org/FEDORA-GPG-KEY
 

 

 

save the file with :wq


 

 



Code:
yum -y install flash-plugin




</div></blockquote>
 

I have followed that right up the the red bit. After I have pasted the above into terminal and literally did...

 



Code:
[macromedia] name=Macromedia for i386 Linux baseurl=http://macromedia.mplug.org/rpm/ enabled=1 gpgcheck=1 gpgkey=http://macromedia.mplug.org/FEDORA-GPG-KEY :wq




 

[pressed return key]

 

It don't do anything o_O

Reply
#2

no no no

 

you dont paste it into a terminal, you paste it into the application called 'vi'

 

like so

 

vi somefile.txt

 

then paste some stuff into that file

 

then to SAVE your changes and EXIT vi you must type the following (press ESCape first to exit INSERT/REPLACE mode)

 

:wq

 

the : tells vi it's going into COMMAND mode, the 'w' tells vi to WRITE the file (save) and the 'q' tells vi to QUIT

 

please try this again

 

cheers

anyweb

Reply
#3

Ohh right, I didn't realise that I had to press exit. Never used VI before, must apologies :)

 

Still got a slight problem. I've even logged into root to delete the original file, but I still hit a dead wall. When I do:

 

vi /etc/yum.repos.d/flash.repo

it gives me...

 



Code:
E325: ATTENTION Found a swap file by the name "/etc/yum.repos.d/.flash.repo.swp" owned by: root dated: Sat Jul 8 15:14:04 2006 file name: /etc/yum.repos.d/flash.repo modified: YES user name: root host name: localhost.localdomain process ID: 19454 While opening file "/etc/yum.repos.d/flash.repo" (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/yum.repos.d/flash.repo" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/yum.repos.d/.flash.repo.swp" to avoid this message. "/etc/yum.repos.d/flash.repo" [New File] Hit ENTER or type command to continue




 

I hit [Enter] and then re-paste...

 

[macromedia]

name=Macromedia for i386 Linux

baseurl=http://macromedia.mplug.org/rpm/

enabled=1

gpgcheck=1

gpgkey=http://macromedia.mplug.org/FEDORA-GPG-KEY

 

Followed by > ESC + :wq

 

Then I paste...

 

yum -y install flash-plugin

 

....and I get this error message.....

 



Code:
[root@localhost ~]# yum -y install flash-plugin Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 80, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 177, in getOptionsConfig self.doConfigSetup(fn=opts.conffile, root=root) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 104, in doConfigSetup self.getReposFromConfig() File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 135, in getReposFromConfig parser.read(files) File "/usr/lib/python2.4/site-packages/yum/parser.py", line 225, in read IncludingConfigParser.read(self,filename) File "/usr/lib/python2.4/site-packages/yum/parser.py", line 126, in read ConfigParser.read(self,filename) File "/usr/lib/python2.4/ConfigParser.py", line 267, in read self._read(fp, filename) File "/usr/lib/python2.4/ConfigParser.py", line 462, in _read raise MissingSectionHeaderError(fpname, lineno, line) ConfigParser.MissingSectionHeaderError: File contains no section headers. file: ///etc/yum.repos.d/flash.repo, line: 1 'cromedia]\n' [root@localhost ~]#




 

Help :(

Reply
#4
Nee worry, sorted it :)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)