Need to delete /usr/bin without using terminal

In a bit of a bind.
All how-tos detailing how to delete or alter the /usr/bin file involve terminal, but terminal won't work b/c of this error
login: PAM Error (line 396): System error
login: Could not determine audit condition
[Process completed]
I alterred something in usr/bin and need to change it but must do so with some other program other than terminal (altering that usr/bin file will then fix terminal).
Kind of a chicken or egg problem.

I take it you're no Unix hand, so I hope you otherwise know what you're doing since deleting /usr/bin will remove important files used by the operating system.
Boot into single-user mode. At the prompt enter:
/sbin/fsck -fy
If you receive a message that says "*** FILE SYSTEM WAS MODIFIED ***" then re-run the command until you receive a message that says "** The volume (nameofvolume) appears to be OK." If you re-run the command more than seven times and do not get the OK message, then the drive cannot be repaired this way.
Next enter:
/sbin/mount -uw /
This will make the filesystem writeable. You can navigate by entering:
cd /usr/bin
This will take you to the /usr/bin directory. Note that in single-user mode you are root. Much damage can be done if you aren't careful. When you finish enter:
reboot

Similar Messages

  • [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)

  • Help needed Displaying ALV  Secondary list without using oops concept

    Hi Experts
    Help needed Displaying ALV  Secondary list without using oops concept.
    its urgent
    regds
    rajasekhar

    hi chk this code
    ******************TABLES DECLARATION*****************
    TABLES : VBAP,MARA.
    *****************TYPE POOLS**************************
    TYPE-POOLS : SLIS.
    ****************INTERNAL TABLES**********************
    DATA : BEGIN OF IT_VBAP OCCURS 0,
    VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
    POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
    MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
    END OF IT_VBAP.
    ****************TEMPORARY VARIABLES******************
    DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
    DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
    *****************FIELD CATALOG***********************
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    ****************LAYOUT*******************************
    DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
    ***************VARIANT*******************************
    DATA : G_VARIANT LIKE DISVARIANT.
    ****************SAVE*********************************
    DATA : G_SAVE(1) TYPE C.
    *****************EVENTS******************************
    DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
           G_EVENTS TYPE SLIS_T_EVENT.
    ******************PF STATUS**************************
    DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
    ******************USER COMMAND************************
    DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
           R_UCOMM LIKE SY-UCOMM.
    ****************SELECTION SCREEN************************
    SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
    ***************AT SELECTION SCREEN*********************
    AT SELECTION-SCREEN.
      PERFORM VALIDATE.
    **************START-OF-SELECTION**************************
    START-OF-SELECTION.
      PERFORM GET_DETAILS.
      PERFORM FIELDCAT.
      PERFORM LAYOUT.
      PERFORM VARIANT.
      PERFORM SAVE.
      PERFORM EVENTS.
      PERFORM ALV_DISPLAY.
    *********************FORMS*******************************************
    *&      Form  validate
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDATE .
      SELECT SINGLE VBELN
                    FROM VBAP
                    INTO V_VBELN
                    WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'enter valid vbeln'.
      ENDIF.
    ENDFORM.                    " validate
    *&      Form  get_details
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DETAILS .
      SELECT VBELN
             POSNR
             MATNR
             FROM VBAP
             INTO TABLE IT_VBAP
             WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'no details found'.
      ENDIF.
    ENDFORM.                    " get_details
    *&      Form  fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'VBELN'.
      WA_FIELDCAT-OUTPUTLEN = 10.
      WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'POSNR'.
      WA_FIELDCAT-OUTPUTLEN = 6.
      WA_FIELDCAT-SELTEXT_L = 'ITEM'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'MATNR'.
      WA_FIELDCAT-OUTPUTLEN = 18.
      WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    " fieldcat
    *&      Form  LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM LAYOUT .
      WA_LAYOUT-ZEBRA = 'X'.
    ENDFORM.                    " LAYOUT
    *&      Form  VARIANT
          text
    -->  p1        text
    <--  p2        text
    FORM VARIANT .
      CLEAR G_VARIANT.
      G_VARIANT-REPORT = SY-REPID.
    ENDFORM.                    " VARIANT
    *&      Form  SAVE
          text
    -->  p1        text
    <--  p2        text
    FORM SAVE .
      CLEAR G_SAVE.
      G_SAVE = 'A'.
    ENDFORM.                    " SAVE
    *&      Form  EVENTS
          text
    -->  p1        text
    <--  p2        text
    FORM EVENTS .
      CLEAR XS_EVENTS.
      XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
      XS_EVENTS-FORM = 'TOP_OF_PAGE'.
      APPEND XS_EVENTS TO G_EVENTS.
    ENDFORM.                    " EVENTS
    *&      Form  TOP_OF_PAGE
          text
    FORM TOP_OF_PAGE.
      WRITE :/ ' INTELLI GROUP'.
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  ALV_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM ALV_DISPLAY .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         I_CALLBACK_PROGRAM             = SY-REPID
         I_CALLBACK_PF_STATUS_SET       = PF_STATUS
         I_CALLBACK_USER_COMMAND        = USER_COMMAND
      I_STRUCTURE_NAME               =
         IS_LAYOUT                      = WA_LAYOUT
         IT_FIELDCAT                    = IT_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
         I_SAVE                         = G_SAVE
         IS_VARIANT                     = G_VARIANT
         IT_EVENTS                      = G_EVENTS
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB                       = IT_VBAP
       EXCEPTIONS
         PROGRAM_ERROR                  = 1
         OTHERS                         = 2
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " ALV_DISPLAY
    *&      Form  SET_PF_STATUS
          text
    FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'Z50651_PFSTATUS' EXCLUDING EXTAB.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  SET_USER_COMMAND
          text
    FORM SET_USER_COMMAND USING R_UCOMM
                                RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN 'DC'.
          READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
            SELECT SINGLE MTART
                          FROM MARA
                          INTO V_MTART
                          WHERE MATNR = IT_VBAP-MATNR.
            IF SY-SUBRC <> 0.
       MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
            ELSE.
              WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
              WRITE :/ 'MATERIAL TYPE :' , V_MTART.
            ENDIF.
          ENDIF.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'CLOSE'.
          CALL TRANSACTION 'SE38'.
      ENDCASE.
    REPORT  Z_ALV_INTERACTIVE  MESSAGE-ID ZMSG_50651
                                    LINE-SIZE 100
                                    LINE-COUNT 60
                                    NO STANDARD PAGE HEADING.
    ******************TABLES DECLARATION*****************
    TABLES : VBAP,MARA.
    *****************TYPE POOLS**************************
    TYPE-POOLS : SLIS.
    ****************INTERNAL TABLES**********************
    DATA : BEGIN OF IT_VBAP OCCURS 0,
    VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
    POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
    MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
    END OF IT_VBAP.
    ****************TEMPORARY VARIABLES******************
    DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
    DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
    *****************FIELD CATALOG***********************
    DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    ****************LAYOUT*******************************
    DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
    ***************VARIANT*******************************
    DATA : G_VARIANT LIKE DISVARIANT.
    ****************SAVE*********************************
    DATA : G_SAVE(1) TYPE C.
    *****************EVENTS******************************
    DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
           G_EVENTS TYPE SLIS_T_EVENT.
    ******************PF STATUS**************************
    DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
    ******************USER COMMAND************************
    DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
           R_UCOMM LIKE SY-UCOMM.
    ****************SELECTION SCREEN************************
    SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
    ***************AT SELECTION SCREEN*********************
    AT SELECTION-SCREEN.
      PERFORM VALIDATE.
    **************START-OF-SELECTION**************************
    START-OF-SELECTION.
      PERFORM GET_DETAILS.
      PERFORM FIELDCAT.
      PERFORM LAYOUT.
      PERFORM VARIANT.
      PERFORM SAVE.
      PERFORM EVENTS.
      PERFORM ALV_DISPLAY.
    *********************FORMS*******************************************
    *&      Form  validate
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDATE .
      SELECT SINGLE VBELN
                    FROM VBAP
                    INTO V_VBELN
                    WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'enter valid vbeln'.
      ENDIF.
    ENDFORM.                    " validate
    *&      Form  get_details
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DETAILS .
      SELECT VBELN
             POSNR
             MATNR
             FROM VBAP
             INTO TABLE IT_VBAP
             WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'no details found'.
      ENDIF.
    ENDFORM.                    " get_details
    *&      Form  fieldcat
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCAT .
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'VBELN'.
      WA_FIELDCAT-OUTPUTLEN = 10.
      WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'POSNR'.
      WA_FIELDCAT-OUTPUTLEN = 6.
      WA_FIELDCAT-SELTEXT_L = 'ITEM'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
      WA_FIELDCAT-TABNAME = 'IT_VBAP'.
      WA_FIELDCAT-FIELDNAME = 'MATNR'.
      WA_FIELDCAT-OUTPUTLEN = 18.
      WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR WA_FIELDCAT.
    ENDFORM.                    " fieldcat
    *&      Form  LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM LAYOUT .
      WA_LAYOUT-ZEBRA = 'X'.
    ENDFORM.                    " LAYOUT
    *&      Form  VARIANT
          text
    -->  p1        text
    <--  p2        text
    FORM VARIANT .
      CLEAR G_VARIANT.
      G_VARIANT-REPORT = SY-REPID.
    ENDFORM.                    " VARIANT
    *&      Form  SAVE
          text
    -->  p1        text
    <--  p2        text
    FORM SAVE .
      CLEAR G_SAVE.
      G_SAVE = 'A'.
    ENDFORM.                    " SAVE
    *&      Form  EVENTS
          text
    -->  p1        text
    <--  p2        text
    FORM EVENTS .
      CLEAR XS_EVENTS.
      XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
      XS_EVENTS-FORM = 'TOP_OF_PAGE'.
      APPEND XS_EVENTS TO G_EVENTS.
    ENDFORM.                    " EVENTS
    *&      Form  TOP_OF_PAGE
          text
    FORM TOP_OF_PAGE.
      WRITE :/ ' INTELLI GROUP'.
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  ALV_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM ALV_DISPLAY .
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         I_CALLBACK_PROGRAM             = SY-REPID
       I_CALLBACK_PF_STATUS_SET         = PF_STATUS
         I_CALLBACK_USER_COMMAND        = USER_COMMAND
      I_STRUCTURE_NAME               =
         IS_LAYOUT                      = WA_LAYOUT
         IT_FIELDCAT                    = IT_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
         I_SAVE                         = G_SAVE
        IS_VARIANT                      = G_VARIANT
         IT_EVENTS                      = G_EVENTS
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB                       = IT_VBAP
       EXCEPTIONS
         PROGRAM_ERROR                  = 1
         OTHERS                         = 2
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " ALV_DISPLAY
    *&      Form  SET_PF_STATUS
          text
    FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'STANDARD' EXCLUDING EXTAB.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  SET_USER_COMMAND
          text
    FORM SET_USER_COMMAND USING R_UCOMM
                                RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN 'DC'.
          READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
            SELECT SINGLE MTART
                          FROM MARA
                          INTO V_MTART
                          WHERE MATNR = IT_VBAP-MATNR.
            IF SY-SUBRC <> 0.
       MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
            ELSE.
              WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
              WRITE :/ 'MATERIAL TYPE :' , V_MTART.
      SUBMIT SLIS_DUMMY WITH P_MATNR EQ IT_VBAP-MATNR
                        WITH P_MTART EQ V_MTART.
            ENDIF.
          ENDIF.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'CLOSE'.
          CALL TRANSACTION 'SE38'.
      ENDCASE.
    plz reward if useful

  • Deleted /usr/bin files

    Hi all
    Yesterday accidentaly I deleted most of files from /usr/bin directory (including pacman), and my system crached. I tried to copy the content of this directory from LiveCD, and my system is booting but not started because some of errors. Is there any way to restore my system or I must reinstall? I found the topic from a few years ago about this problem, but as I wrote pacman is missing too.

    Than I need for yaourt in PKGBUILD modify what?
    # Author: Julien MISCHKOWITZ <[email protected]>
    # Author: tuxce <[email protected]>
    pkgname=yaourt
    pkgver=1.3
    pkgrel=1
    pkgdesc="A pacman wrapper with extended features and AUR support"
    arch=('any')
    url="http://www.archlinux.fr/yaourt-en/"
    license=(GPL)
    depends=('diffutils' 'pacman>=4.1' 'package-query>=1.0' 'gettext')
    optdepends=('aurvote: vote for favorite packages from AUR'
    'customizepkg: automatically modify PKGBUILD during install/upgrade'
    'rsync: retrieve PKGBUILD from official repositories')
    backup=('etc/yaourtrc')
    source=(http://mir.archlinux.fr/~tuxce/releases/$pkgname/$pkgname-$pkgver.tar.gz)
    md5sums=('972173967acd160c987c6dce15a431f8')
    build() {
    cd "$srcdir/$pkgname-$pkgver/"
    make PREFIX=/usr sysconfdir=/etc localstatedir=/var
    package() {
    cd "$srcdir/$pkgname-$pkgver/"
    make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:
    Last edited by saalty (2013-06-05 11:43:58)

  • How to Delete duplicates rows without using rowid/distinct.

    How to delete duplicates rows present in a table without using rowid or even distinct.

    How about:
    SQL> SELECT * FROM t1;
             A          B
             1          2
             2          3
             1          2
             4          4
             4          4
             4          4
    SQL> DELETE FROM t1
      2  WHERE (a, b) IN (SELECT a, b FROM t1
      3                   GROUP BY a, b
      4                   HAVING COUNT(*) > 1) and
      5        rownum = 1;
    1 row deleted.
    SQL> /
    1 row deleted.
    SQL> /
    1 row deleted.
    SQL> /
    0 rows deleted.
    SQL> SELECT * FROM t1;
             A          B
             2          3
             1          2
             4          4Although, if I was asked a similar question with all those restrictions, my first response would be along the lines of: Is this question indicative of the way I will have to work if I join this company? If so, there is no point answering because I wouldn't touch this job with a ten foot pole.

  • Need to reset mouse prefs without using a mouse...

    Can i reset the monitors and mouse prefs to defaults without using the preferences panel?
    I had to reset the right mouse button as the primary button to test something. I had forgotten that this mouse had installed it's own prefs panel
    and I made the change in the system keyboard and mouse panel. So in the system panel the right mouse buttom is set to primary but in my mouse's panel the left one is set to primary.  When in the system prefs neither mouse buttom works now, but the right button is the primary outside of the prefs dialouge.
    So I tried to delete the monitors and mouse prefs from the system library and restart. But that didn't help. is there a way i can trash the prefs for the mouse and restore the defaults?

    I wonder if the Control key +mouse click works for either?
    Might be a munged pref file come to think of it, might try this...
    Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    Reboot & test.

  • Delet applicant number without using PU90

    Hi Expert,
    I wrote an RFC function to create an applicant. I use BAPI_APPLICANT_CREATE.
    After, when I have an applicant number, I need to update some infotype.
    If during this update, I have an error, I need to delete the applicant number.
    It is possible with a function module or class ?
    Thanx
    Tony

    a class dealing with candidates is CL_HRRCF_CANDIDATE. may be you can find something there.
    or you could try to do it the database way:
    candidate is OTYPE NA in HRP1000
    There are relations in HRP1001:
    A/B 650 to CP
    A/B 651 to ND
    CP may refer to OTYPES P, US, BP and S
    The infotypes contayning candidates information are 51xx, tables HRP51xx, HRT51xx and maybe HRHAPxxx.
    And don't forget: some information (addresses etc.) are stored as business partner in tables BUPAxxxx.

  • Need help on how to permanently delete applications/programs without using third party applications

    Title says it all...
    Hope you guys can help me out.
    Thanks!

    See Here...
    http://macmost.com/uninstalling-apps-in-mac-os-x-lion.html

  • How to delete an AppointmentItem without using AppointmentItem.Delete() method?

    As per MSDN, we cannot use AppointmentItem.Delete() inside Close() event handler method of AppointmentItem. I need to find a way to delete this AppointmentItem (or preventing it from getting saved to Outlook calender). Please let me know if you have a way
    to do this.
    Thanks in advance.
    Prasad

    Hello Prasad,
    You can run a timer or use any other suitable event handler. In the timer' tick event handler you can get an instance of the AppointmentItem class by using the GetItemFromId method of the Namespace class. You just need to pass an entryId value which you
    may grab in the Close event handler.
    Be aware, you need to use the Timer class which uses the single thread for their events. You should access Outlook objects on the main thread only.

  • Need a quick bit of help using Terminal

    I have something simple I want to do with Terminal but I am obviously doing it wrong!
    I want to change the format of screen grabs (I have to do a ton of them at work and I'm tired of re-saving PNGs as JPGs).
    I've read I need to type the line into Terminal:
    defaults write com.apple.screencapture type jpg
    So I did. Then I logged out and logged back in to my computer (just for good measure? I dunno). It's still saving my screen grabs as PNGs.
    It's got to be something simple that I'm doing wrong. Thanks in advance for any help!

    As an easy way to change the user interface aspect of Finder to save
    screenshots as jpg instead of png, I've used OnyX from Titanium
    Software, a free running interface utility that can so several things.
    {Not that I got it to do that, but found the extra options it allows can
    be of some use, outside of the chance you could really mess up
    the OS if you mis-use some aspects of this kind of utility.}
    While there is a way, & someone had posted how to change it
    in terminal (in single user mode, etc) I do not remember all that
    because I use OnyX for general maintenance every so often &
    have it in my computers. There is a version for your Mac's OS...
    Titanium Software - OnyX:
    http://www.titanium.free.fr/pgs/english/apps.html
    Good luck & happy computing!

  • Need to delete Scheduled Tasks automatically using a script or schtasks.exe, but it is NOT allowing it - PLEASE HELP!

    I have tried and tried to get this to work in a script, but it simply is NOT doing what I need. I am simply trying to run
    schtasks /delete /tn <task name> /f
    but when I do, I receive the following ANNOYING ERROR:
    ERROR: The system cannot find the file specified.
    I am looking right at the task in the Task Scheduler utility, so I know it EXIST!!
    Then, when I run a "schtasks /query" I see that the task I want to delete has the following information:
    INFO: There are no scheduled tasks presently available at your access level.
    I can delete the tasks just fine in the Task Scheduler console, but I NEED this to be automated so these tasks can be deleted on multiple systems. 
    Can someone PLEASE help me out with this. The systems I need this to run on our Windows 7 SP1. 
    Thank you

    Listen up dude, I am not a home user I am a professional and this same issue is spread all over the internet with most professionals scratching their head not understanding why it is not working.
    However, I found the answer here:
    http://www.jonathankeller.com/2012/02/schtasks-query-tn-tasks-over-network.html
    So you see "dude" even your link shows that you were not a professional as any professional would have read the help first.  Your post give no information as to what you are doing and assumes that a system utility is a script which nearly
    all professionals agree that system utilities are not scripts.
    From the question and the very arrogant response it is clear you are a home user with no formal technical training....or are you theoffice manager who was stuck with doing these things for your boss?
    Your "handle" is also very unprofessional and telling about your "I AM Sir Ask A lot".  Try studying the technical information about Windows.  Learn to start with the system help.  It will save you a lot of blood pressure
    excursions.
    Also note that the help is explicit.  Use the folder path syntax returned from /Query and not the one you see in the GUI.  Again - learning to use help first would save a lot of headaches.
    Stick with it kid.  When you get to by half my age you might be able to call yourself a "professional".  Until then - hit the books.
    ¯\_(ツ)_/¯

  • How to delete video podcast without using iTunes

    My Mac is G5 PPC, OSX 10.4.11, so cannot use
    iTunes to sync Ipad; so is there a way of deleting downloaded video podcasts from the iPad?
    When headphone is connected to the iPad, should the internal speaker not be automatically disconnected like on the iPod?

    makam wrote:
    Appreciate suggestion, but does not work. Maintaining touch on the title, highlight the video, no delete check mark appears; letting go start the video playing again.
    Kappy's suggestion doesn't work for me either. Just go into the iPod App, click on Podcasts, and swipe to the right. You should get a "Delete" block on the right. That's how it works on my iPad.

  • How do I delete forwards, ie without using the backspace key ?

    When want to change a letter or some text I always have to position the cursor after the entire word and use the backspace key to delete the whole word, even if I just want to delete, for example, the first letter. Is there a key that deletes forwards ?
    This applies to my iPad, MacBook Air and iPhone.

    I'd like to sort of hiighjack this thread.  I moved from an iPad Mini to an iPad Air bcause I wanted to add a keyboard case that would replace some of the frustration I've experienced trying to type on the Mini's display.  So with the AIR I purchased a Belkin Ultimate keyboard and I'm very peased with it.  My "principal" computer is a desktop PC and I was quite startled to find there are no cursors, other than by finger, in the iPad world; however, I'm getting used to that.  Re the posting here, that seems to be good advice re the delete function.  My question: looking prettyy closely at my Belkn keyboard, where is the "delete" key?

  • Accidentally deleted entire external drive using terminal!

    wow I never thought this would happen to me but it did....
    Upon trying to eject my external drive, I get the "cannot eject drive because it is busy" error. Looking around, it seems to be a spotlight indexing problem according to this page
    http://itsmetommy.com/2011/12/11/the-volume-cant-be-ejected-because-its-currentl y-in-use/
    in which the blogger happily and liberally uses the rm -rf command.
    "No problem" I thought. Easy fix!
    To my horror, I accidentally typed
    sudo rm -rf /Volumes/"external drive"/
    It said "drive busy"
    Took a minute for the realization of what I had just done to sink in. I still am in shock.
    but the damage has already been done, to my drive and ego
    Am I completely stuck? Have I just lost all of my 175+ ripped movie collection that i can't recreate because I don't have most of the discs anymore?
    Just shoot me now and get it over with

    File recovery software: Try using an application such as Data Rescue 3 - http://www.prosofteng.com/products/data_rescue.php or FileSalvage - http://subrosasoft.com, or one of the ones listed in the link below. Some have free trial versions that let you see if the software will help before you decide to buy. You will also need a second hard drive equal to or larger in size than your first drive as a destination drive for recovered files.  The results may not be pretty and still require a lot of hand labeling.
    http://data-recovery-software-review.toptenreviews.com/mac-recovery-software

  • Reinstalling CS4 after deleting the files without using the uninstaller

    Hi I didn't know that I have to use the uninstaller to uninstall my adobe CS4 products on my mac. My photoshop was giving me problems and I decided to reinstall it. However, I uninstalled it the normal mac way i.e. simply deleting it. Now I'm having trouble reinstalling as the installer always fails. Any way to resolve this?
    Thanks!

    However, I uninstalled it the normal mac way i.e. simply deleting it.
    That hasn't been "the normal Mac way" for the last decade... Run the Creative Suite Cleaner Tool, reinstall.
    Mylenium

Maybe you are looking for

  • Cropping photos in iPhoto 08

    I am finding iPhoto 08 difficult to use. I do not care for the new cropping function. With the window size I prefer, the floating menu that has the constrain menu and the "Cancel" and "Apply" buttons sits on top of the image at the lower edge. It als

  • How to bring back an email that separated and flew off screen before finished?

    I had an email almost completed and the curser didn't move the screen up, so I tried to move the screen up by putting mouse on the bright blue line on the right side of the composed email. What happened was where the curser was pushed all the words u

  • Compiling examples closes LabWindows/CVI

    I have a NI USB-5132 module, with NI-SCOPE 3.7.  I can bring up the device in "Measurement and Automation Explorer", and sees it as "Dev1".  I can bring up NI-Scope Soft Front Panel, and toggle the device, read whatever I want to read.  However, I'm

  • Is there a way to creat column rules in newsletters?

    I've tried using the callout lines, but it'd awkward. Is there a simple way to drop in a vertical or horizontal column rule between stories and columns in a newsletter? Thank you.

  • Create Delivery against STO  define overdelivery tolerance

    Hello, Can anyone please suggest if there is a way to create Delivery More Than Open STO Quantity? My scenario goes like this lets say I have STO with Quantity 100 KG. I am creating delivery with 60 Quantity and system is allowing me to create delive