Need pacman files for /usr/bin

Hello, in a freak accident as root, I've deleted my /bin folder. I still have all the rest intact. All I need is pacman's files in that folder in order to recover the others. Can anyone zip their /usr/bin or just their /usr/bin with the pacman files?
And yes, I have learned my lesson about double checking commands before execution as root.
Last edited by deadlylife (2010-06-19 21:52:58)

http://wiki.archlinux.org/index.php/Ins … ting_Linux
specifically the "Install the required files onto the host system" section.

Similar Messages

  • Trying to move files to /usr/bin

    I am trying to install g77 on my Powerbook, but I keep getting a "permission denied" when I try to move the files to /usr/bin so I can link them to gcc. I have admin permissions, but it still won't let me put the files I need in the /usr/bin directory. Any ideas of what is going wrong here?

    You need root access to modify that folder. If you're working in the Terminal, preface the command you're using with sudo. If you're using a GUI application, use the Go to Folder command in the Finder's Go menu to navigate to it, drag the files there, and authenticate yourself.
    (47141)

  • I need a file for EPLAN P8 Version 2.4

    My problem is that I need a file for EPLAn P8 about NI USB-6501.

    HI, 
    there are just a few documents for dimensional drawings like that:
    http://digital.ni.com/hardref.nsf/websearch/bead78e923f9670286257475006ecb9a
    Are you looking for this?
    Best Regards, Fabian

  • I need rpl file for my n70 plz nokia

    i need rpl file for my n70 plz nokia
    model n70
    Moderator's note: The post was edited. IMEI was removed. Please avoid posting any of your personal information on public forums like this.

    novasewline wrote:
    wheres my answer... i need help now!
    And where is your question, explained in detail?

  • Patch for /usr/bin/netcfg

    Hi all!
    I have submitted a bug report and made a patch for /usr/bin/netcfg, from initscripts-0.7.2-3.
    Now "netcfg --menu" works perfect with GPM enabled, so we can choose a different profile from a VC without shutting down GPM.
    Of course, "/etc/rc.d/network restart" (or start) will work too when having NET_PROFILES=(menu) in /etc/rc.conf - and executed from a VC.
    Hope it helps.
    You will find the patch and the bug report in the following link:
    http://bugs.archlinux.org/task/4916

    FANTASTIC!  Everyone who wants something add to Arch should take a leaf from your book - this is the way to get things done

  • Need script file for imp

    Hi Guys,
    I need to load data using import option. data is in .dmp format. for this i have to write a unix shell script.
    i am using this url http://orafaq.com/scripts/unix/exportdb.txt as base which is having only export script.
    actual syntax is.
    imp username/pwd@sid file=file.dmp logfile=file.log
    for this process i have to write script file.
    If any one is having this type of script could you pl send.
    TIA,
    Muvvala

    Thank you for the reply.
    i wrote the script like this....
    #!/usr/bin/ksh
    # import_db.sh - Korn Shell script to import (an) Oracle schema(s).
    # Hardcoded values: copy_dir, pipefile, dba
    # import_db.sh -
    # Usage: sh test_2.sh pathway abc123 OWBDEV organmap_icon_71606
    #dba=PSG
    #copy_dir=/dbcopy/
    # Loop through the command line parameters
    # -u - User name
    # -p - Currently the password.
    # -d - The Oracle SID of the database to export. This matches the TNS entry.
    # -f - The export file to import.
    # If either/all of these don't exist, prompt for them.
    # Now, check the parameters...
    echo "*******************************************************"
    echo "* Importing $1 at `date`"
    echo "*******************************************************"
    cat test_xyz.sh
    echo imp $1/$2@$3 file=$4.dmp log=$4.log full=y statistics=none buffer=1000000 ignore=y
    sqlplus -s $1/$2@$3
    set serveroutput on
    set heading off
    exec imp $1/$2@$3 file=$4.dmp log=$4.log full=y statistics=none buffer=1000000 ignore=y;
    !EOF
    echo "*******************************************************"
    echo "* Import Completed at `date`"
    echo "*******************************************************"
    exit 0
    but I am getting the following errors
    test_2.sh: sqlplus: not found
    test_2.sh: imp: not found
    the bottomline is i am not able to execute oracle command.
    can any one encounter this,pl help me.
    TIA,
    Muvvala

  • [Solved] How to save a file in /usr/bin/local using gedit as an admin?

    In my attempt to run these two programs:
    https://github.com/kerchen/export_gr2evernote
    https://github.com/spiermar/bookmarks2evernote
    I noticed they assumed the default python is python 2. I have python 3.3.1 and 2.6.8. I'm following the instructions at: https://wiki.archlinux.org/index.php/Py … ld_scripts
    Created a file with this:
    #!/bin/bash
    script=`readlink -f -- "$1"`
    case "$script" in
    /home/Dropbox/export_gr2evernote-master1/*|/home/Dropbox/bookmarks2evernote2/*)
        exec python2 "$@"
    esac
    exec python3 "$@"
    I then, tried to save it as p2 under /usr/local/bin/ where the only thing that's there is meteor, node, and npm, and it throws me an error saying I don't have enough permissions.
    How do I save p2 as an admin in /usr/bin/local using gedit?
    I've searched on the forums 'create a file in /usr/' and I haven't found anything. Can someone please help me?
    Last edited by jjshinobi (2013-04-23 05:20:47)

    jjshinobi wrote:
    sidneyk wrote:
    jjshinobi wrote:
    I moved p2 to bin, edited my projects path with the username in front of home, saved it as python, made it executable (#sudo chmod +x /usr/local/bin/python), removed p2. Ran:
    #python evernote2enex.py -m 10
    It's still referencing python 3...
    "python3: can't open file 'evernote2enex.py': [Errno 2] No such file or directory"
    My python file contains this:
    #!/bin/bash
    script=`readlink -f -- "$1"`
    case "$script" in
    /home/<user>/Dropbox/export_gr2evernote-master1/*|/home/<user>/Dropbox/bookmarks2evernote2/*)
        exec python2 "$@"
    esac
    exec python3 "$@"
    I did everything exactly like the wiki said, what seems to be the problem?
    OK. Looking at the 2 scripts you quoted, neither one is using a shbang line to set a python version to call. Without that, the python intercept doesn't even come into play. The problem that I see is the way you are starting it:
    sudo nano /usr/local/bin/python
    Is root really necessary for these if they are in your /home/<user>/Dropbox/ directory. And it appears that you are assuming python3 when you start them that way. If you are going to use that method and they are indeed python2 scripts, then change your command to this:
    #python evernote2enex.py -m 10
    You might try it as your normal user too in case root isn't really required.
    I tested out the first ten with:
    #python2 export2enex.py -m 10
    it worked!
    then proceded with
    #python2 export2enex.py GStarred -n exported.enex
    The script is fully functional. Thanks man!
    Actually, you're not even using the script when starting your python scripts that way. You are explicitly calling either python3 (python) or python2 (python2) to run the indicated python script and not even touching the work around /usr/local/bin/python script. If your python script started with a line like either :
    #!/usr/bin/env python
    or:
    #!/usr/bin/python
    And was executable, such that you called it by it's name, i.e. "someprogram.py", then the python script in /usr/local/bin/ would take precedence and effectively intercept the python call and choose the appropriate version of python as long as the path to the directory where "someprogram.py" resides is specified in that /usr/local/bin/python script.
    Last edited by sidneyk (2013-04-25 15:40:19)

  • [SOLVED]pacman: libusb-compat: /usr/bin/libusb-config exists ...

    Hi,
    I just installed the arch base system and did a 'pacman -S kernel26' and got some errors
    error: failed to commit transaction (conflicting files)
    libusb-compat: /usr/bin/libusb-config exists in filesystem
    libusb-compat: /usr/include/usb.h exists in filesystem
    libusb-compat: /usr/lib/libusb-0.1.so.4 exists in filesystem
    libusb-compat: /usr/lib/libusb-0.1.so.4.4.4 exists in filesystem
    libusb-compat: /usr/lib/libusb.a exists in filesystem
    libusb-compat: /usr/lib/libusb.so exists in filesystem
    libusb-compat: /usr/lib/pkgconfig/libusb.pc exists in filesystem
    Errors occurred, no packages were upgraded.
    this page I found on google contains error messages very similar to mine: http://pastebin.com/twGU7Yy3
    any ideas?
    Last edited by tgoossens (2011-08-11 17:12:32)

    [SOLVED] I believe this is a related topic: https://bbs.archlinux.org/viewtopic.php?id=23774
    Last edited by tgoossens (2011-08-11 17:11:52)

  • 0 byte files in /usr/bin

    Hello all,
    I just found a bunch of 0 byte files /usr/bin uname, unexpand and pubsub are just a few of about 50 files.
    Anyone know how I can restore those files?
    uname is needed to build som unix tool using MaxPorts.
    Thanks
    adi

    It should not affect your data BUT you should always back up your data routinely & regularly, whether or not you install anything. Computers & hard drives fail, sometimes catastrophically & without warning. The only way to protect yourself from this is to back up anything you can't afford to lose.

  • Need Flat file for Message type DELINS

    Hi Experts,
      It possible to see the flat file for the Message type DELINS ,, If needed means please say how it can  view..
    Advance thanks..

    >My need is to convert the EDI format into SAP.
    As far as I know EDI can be read by SAP as Idoc directly without conversion. At least I would try this.
    I checked in WE20 /partner profiles/ for outbound parameters there is a tab called 'EDI standards' and here you can define the EDI parameters. However there is no such tab for inbound processing.
    What I would do /using transaction code SALE/
    - define logical systems
    - assign the received to the client
    - create RFC port for Idoc processing
    - create distribution model with the correct message type
    - create port as file
    - define or generate partner profiles
    Try to upload sample files via transaction WE19 or WE16.
    You can try to debug the inbound processing and write a program based on that, which could be scheduled as a background job.
    I had a program doing similar, but it was another message type and it was XML based, however the FMs I used are the following:
    'EDI_PORT_READ' - read port definition
    'EPS_GET_DIRECTORY_LISTING' - get the file names in the dir
    'EDI_DATA_INCOMING' - process idocs
    Hope it helps.
    Peter

  • Need Installation File for Elements 7

    So I uninstalled Cs6 to reinstall it.. but I should have looked for my disks first.
    You see I initially bought Elements 7
    upgraded from Elements 7 to CS4
    Upgraded cs4 to cs6
    Now to reinstall anything I need the serial code to Elements 7
    Thankfully I still have that from a safe place,
    but I need to put Elements 7 on my older slow laptop, and I can't find the disks!
    I have my cs4 disks and my cs6 download files but because I 'upgraded' each version I need the serial for Elements 7.. which I have, but I also need the disk to install on the old laptop!
    So where can I get a hold of the downloadable Elements 7???
    I'm also missing a different companies video editing disks, so I'm guessing they're in a 'safe place' somewhere, but I have no idea where that 'safe place' is, and I can't find them!

    if you follow all 7 steps, you can download a trial via one of the links on this page using a browser that accepts cookies:  http://prodesigntools.com/direct-download-links-for-lightroom-3-and-photoshop-elements-8.h tml/comment-page-1#comment-2174
    and activate with your serial number.
    if you have a download problem, you didn't follow all 7 steps.  typically, failure to meticulously follow steps 1,2 and/or 3 is the problem, but your browser must also allow cookies so that's (a restrictive browser setting) another potential source of problems.

  • Need install files for Photoshop Elements/Premier 10.

    I lost my install disks and my computer died.  How do I get the files for photoshop elements/premier?

      If you registered your products on-line you should be able to find the serial numbers which you will need. Then you could download the free-trials and make them permanent with the codes. That’s provided you haven’t already installed them more than once already.
    Click the red Adobe logo at the top left of this forum page.
    Then click My Adobe >> My Products & Services
    Log in to your account using your Adobe ID
    Expand your purchase history using the small black triangles to the left of the purchase date.
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=en_us

  • Need .exp file for Dynamic Subprocess project

    Dan ,
    I'm looking in to you project Dynamic Subprocess in 4 shared.com (http://www.4shared.com/get/G4DmkQ8G/Dynamic_Subprocess_Lesson_10gR.html) , can you please let me know the link , where i can download the .exp file for Dynamic Subprocess

    You'll need to spend some money to convert the WMP file to a format iMovie can use:
    http://www.telestream.net/flip4mac/overview.htm
    The $29 version will do what you need.

  • Need PDF file for FI-CA

    Hi Friends,
    Can any one help me, how to get PDF document for FI-CA (Contract Accounts Receivable and Payable (FI-CA)
    Thanks
    Chandra

    hi chandra, do you have the pdf file for fi-ca configuration

  • Trace file event set....need the file for the user...

    hello all,
    i had a question about the trace file, I was asked by one of ur manager to set events for trace file...he asked to do this...
    ALTER SESSION SET EVENTS '10046 trace name context forever, level 12';
    alter system set events '1483 trace name errorstack, level 12' ;
    i understand they go to the udump, but my question how am i suppose to know which trace file to look as there are tons of them in udump??? We actually want this for a specific schema that we are lookin for. Could anyone explain what the above are doing and how to get the trace file for it. Thanks

    If you are running this from your session and want to check the file that has been created for your session,from Effective Orcle by design,this may be helpful,
    select rtrim(c.value,'/') || '/' ||d.instance_name ||
    '_ora_' || ltrim(to_char(a.spid)) || '.trc'
    from V$process a,v$session b,v$parameter c,v$instance d
    where a.add=b.paddr
    and b.audsid=sys_context('userenv','sessionid')
    and c.name='user_dump_dest'This would tell you the exact file that would had been created for your session.
    HTH
    Aman....

Maybe you are looking for