Find the answer to your Linux question:
Results 1 to 9 of 9
Hi I am writing a Install script for a Bare Bone Fedora 6. It goes like this: Code: #PREPAIR mkdir /root/install cd /root/install # #Config YUM # #INSTALL BARE BONE ...
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422

    Fedora+YUM+Scripting=Unknown Argument

    Hi I am writing a Install script for a Bare Bone Fedora 6.
    It goes like this:
    Code:
    #PREPAIR
       mkdir /root/install
       cd /root/install
    #
    #Config YUM
    #
    #INSTALL BARE BONE SYSTEM
       yum install xorg-x11-server-Xorg
       yum install icewm
       yum install gdm
       yum install gcc
       yum install gcc-c++.i386
       yum install libX11-devel.i386
       yum install imlib2-devel.i386
    #	
    #
    #INSTALL xVNC
    	yum install xinetd
    	yum install vnc-server
    	rm /etc/gdm/custom.conf
    	echo [xdmcp] >> /etc/gdm/custom.conf
    	echo Enable=true >> /etc/gdm/custom.conf
    	init 3 
    	init 5
    	echo service vnc-800x600 >> /etc/xinetd.d/vnc-800x600
    	echo { >> /etc/xinetd.d/vnc-800x600
    	echo type = unlisted >> /etc/xinetd.d/vnc-800x600
    	echo disable = no >> /etc/xinetd.d/vnc-800x600
    	echo flags = REUSE >> /etc/xinetd.d/vnc-800x600
    	echo socket_type = stream >> /etc/xinetd.d/vnc-800x600
    	echo port = 5920 >> /etc/xinetd.d/vnc-800x600
    	echo wait = no >> /etc/xinetd.d/vnc-800x600
    	echo user = vnc >> /etc/xinetd.d/vnc-800x600
    	echo server = /usr/bin/Xvnc >> /etc/xinetd.d/vnc-800x600
    	echo server_args = -inetd -query localhost -once -terminate -depth 24 -geometry 800x600 -securitytypes none >> /etc/xinetd.d/vnc-800x600
    	echo log_on_failure += USERID >> /etc/xinetd.d/vnc-800x600
    	echo } >> /etc/xinetd.d/vnc-800x600
    	useradd vnc
    	service xinetd restart
    And so on till
    Code:
    #COMPLETE
    	#Update Boot Seq:
    	/sbin/chkconfig --level 35 httpd on
    	/sbin/chkconfig --level 35 spamassassin on
    	/sbin/chkconfig --level 35 squid on
    #Open /etc/inittab and search id:3:initdefault:
    Though, yum thinks that the programs I want to install are Arguments.
    And says unknown argument..

    How can I fix this..?
    New Users, please read this..
    Google first, then ask..

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Though I reply on myself.
    This topic is open for 5 days already so I thought I might be allowed to do this instead of reposting it?
    Well, here it is..
    I still have the same problem..
    New Users, please read this..
    Google first, then ask..

  3. #3
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    I would not have bothered you with the following trivial reply, but it's been five days since you posted your original question, and nobody's answered it, and I know almost nothing about yum myself, and yum is not included with my distribution.

    The first thing I did was to google this:
    Code:
    yum tutorial
    While browsing the results, I discovered that you should be able to do this on your system:
    Code:
    man yum
    If you do that, I hope it answers your question.

  4. #4
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Thanks.
    But I have googled and I have already used man
    New Users, please read this..
    Google first, then ask..

  5. #5
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Ok, then, since I don't have access to the yum man page, could you please post it so I can take a look?

    Paste it into the edit window when making your reply. Then, please, put the man page in CODE markers. To do so:
    1. In your edit window, highlight the entire man page.
    2. Click the # icon found just above your edit window.

    This will make the man page more readable.

  6. #6
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    A quick attempt at eliciting the error message (from CentOS 5):
    Code:
    #!/bin/sh
    
    # @(#) s1       Demonstrate possible yum errors.
    
    echo
    echo "  Testing badly-placed space-hyphen."
    
    yum -e 1 install xsane -gimp
    
    exit 0
    Producing:
    Code:
    ./s1
    
      Testing badly-placed space-hyphen.
    Loading "installonlyn" plugin
    usage: yum [options] < grouplist, localinstall, groupinfo, localupdate,
    resolvedep, erase, deplist, groupremove, makecache, upgrade, provides,
    shell, install, whatprovides, groupinstall, update, groupupdate, info,
    search, check-update, list, remove, clean, grouperase >
    
    Command line error: no such option: -g
    So if there is an inadvertently-inserted space, one can run into trouble ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  7. #7
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    The yum Man Page
    And well I didnt put a dash (-) in front of it did I? :P
    New Users, please read this..
    Google first, then ask..

  8. #8
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.
    Quote Originally Posted by RobinVossen View Post
    ... And well I didnt put a dash (-) in front of it did I? :P
    I don't know if you did since I am not certain that you posted the exact error message. If you do that, then perhaps we can narrow the number of possible problems ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  9. #9
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Well, it gives "icewm" isnt a valid argument.
    or "firefox" invalid argument...
    I just thinks I want to use firefox as a argument like I used "install"
    He doesnt see that the install is pointing at firefox.
    Does it maybe work if I do
    yum -y install {TheProgramIwant} ??
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...