Pacman command to re-install config files to pristine condition?

I've messed up my Apache config files under /etc/httpd/...
Is there a magic pacman command that will restore those files to their pristine condition as if it was a new installation?
I've considered uninstalling apache and re-installing, but that will also uninstall all dependent packages, and I'd rather not do that.

If you re-install the package it should create .pacnew files for all of the altered configuration files. If that is all that you have changed then overwriting the altered files with the .pacnew files will undo your changes.
You may also find pkg-extract_original useful.

Similar Messages

  • [solved] pacman command to compare package config files

    Hi, Id like to know if there is a pacman command similar to this:
    pacman -Qii | awk '/^MODIFIED/ {print $2}'
    from pacman tips, but where it just checks if the files are not identicle to the default config file of the package?
    From what I can tell, this checks if a file was modified at all (I have copied a config file from a package to a modified package and the file still appears in the output, even though their contents is identicle.
    pacman -Qii | awk '/^MODIFIED/ {print $2}'
    Last edited by jrussell (2013-04-13 17:59:39)

    graysky wrote:
    jrussell wrote:... but where it just checks if the files are not identicle to the default config file of the package?
    Unless I am misunderstanding you, pacman does that by default; when the upgrade is written to disc, the file in question becomes foo.pacnew which you can easily vimdiff or whatever against the original.
    Yes, but I would like to print out a list of config files that are not identical
    I basically want to see a list of all the config files installed that are not identical to thier original config file,
    pacman -Qii | awk '/^MODIFIED/ {print $2}'
    still lists files which are identical because I think it uses modification times or something else

  • New install, config files empty?

    I just installed arch64 on my laptop and went to configure the system and all the configuration files are empty.
    Is this a sign that my laptop is unable to run arch or a sign I just have a bad burn?  Im currently downloading a new cd now

    fukawi2 wrote:
    quarkup wrote:bad download, bad burn or bad install.
    Rebooting and re-running setup from the same CD worked when it happened to me... And well, we know it's a bad install cause all the config is missing
    well, you got it

  • Does `pacman -S pkg ` re-install the given package's dependencies?

    As the subject says.

    I don't see a pacman command to re-install a package's dependencies. Is there one?
    karol wrote:What seems to be the problem?
    Funny you should ask. I deleted my home folder (a slip of the finger when typing `$ rm -rf ~/<a folder name>`; just after typing the tilda I hit Enter). At least I've learned to be wiser with rm.
    That resulted in some applications not have an application icon (top left of its window), and no folder icons in the file save dialog.
    I suspect I lost some gtk assets. `$ pacman -S gtk gtk2` has not in itself fixed the problem.

  • [SOLVED] Pacman "config file could not be read" error during Arch ins

    I've been attempting to get Arch setup for a while now, and after having some trouble with partitions, my wireless connecting, and setting up repos and mirrors, which the Wiki helped me solve, I've hit a bigger bump.  While updating the system using pacman as the Beginners Guide says to do, I get errors when I try to continue the update process as follows :
    btw: I'm typing this on a laptop next to my computer
    [root@McArch~]# pacman -Syu
    error: config file /etc/pacman.d/core could not be read
    error: config file /etc/pacman.d/extra could not be read
    error: config file /etc/pacman.d/community could not be read
    :: Synchronizing package databases . . .
    error: failed to updated core (unexpected error)
    error: failed to updated extra (unexpected error)
    error: failed to updated community (unexpected error)
    error: failed to synchronize any databases
    Any tips as to whats going on?  I've tried to created said files, and even insert mirrors into the file, like in the /etc/pacman.d/mirrorlist file but this doesn't seem to help
    Last edited by Windfinder (2008-09-29 20:43:29)

    Glad you got it working.
    I'm not sure what happened in your install but I just finished using an old 2007.08 iso and pacman first starts out with /etc/pacman.d/core, etc/pacman.d/extra, /etc/pacman.d/community ... etc., but I never had your problem when I did the #pacman -Syu after initial install reboot.  The pacman update removes the above mentioned repos and replaces them with a single /etc/pacman.d/mirrorlist.  You must have messed up an initial config file somehow as I couldn't get the same errors you got.  It looks like you had your /etc/pacman.conf file messed up somehow and when you pointed it to the mirrorlist it could finally work properly.  I'll just include my /etc/pacman.conf file and /etc/pacman.d/mirrorlist so you can compare.  NB*  these are from my x86_64 so for 32 bit machines i686 would replace x86_64 in the files.
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #NoPassiveFtp
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # Testing is disabled by default. To enable, uncomment the following
    # two lines. You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    /etc/pacman.d/mirrorlist
    # Arch Linux repository mirrorlist
    # North America
    # - United States
    Server = http://mirror.neotuli.net/arch/$repo/os/x86_64
    Server = http://holmes.umflint.edu/archlinux/$repo/os/x86_64
    Server = http://archlinux.unixheads.org/$repo/os/x86_64
    Server = ftp://ftp.archlinux.org/$repo/os/x86_64
    Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/x86_64
    Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/x86_64
    Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/x86_64
    Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64
    Server = http://mirror.umoss.org/archlinux/$repo/os/x86_64
    # - Canada
    Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/@carch
    Well it was an interesting way to kill 30+ minutes.

  • Can't install any media player - pacman can't find all the files

    I'm quite new to Linux. At the moment I can't view any videos or listen to music.
    I tried installing mplayer using pacman - several files downloaded successfully, I watched the progress bars... but others couldn't be found. When I try again using a different mirror, from the output you can see that pacman requests 36 installation files for mplayer but it can't locate 14 of them.
    I've tried three mirrors in the UK and one in Belgium. I get a similar problem trying to install VLC. Pacman has never failed me before, although admittedly last time I used him was to download firefox in December 2009.
    This is what I get if I try again to install mplayer now:
    pacman -S mplayer
    resolving dependencies...
    looking for inter-conflicts...
    Targets (36): libmad-0.15.1b-4 cdparanoia-10.2-2 sdl-1.2.14-1 lame-3.98.2-2
    libogg-1.1.4-1 libtheora-1.1.1-1 xvidcore-1.2.2-1
    libmng-1.0.10-2 scrnsaverproto-1.2.0-1 libxss-1.2.0-1
    libsasl-2.1.23-2 libldap-2.4.21-1 tdb-1.2.0-1 talloc-2.0.1-1
    smbclient-3.4.4-1 aalib-1.4rc5-6 flac-1.2.1-2
    libvorbis-1.2.3-1 libsndfile-1.0.21-1
    jack-audio-connection-kit-0.116.2-2 libid3tag-0.15.1b-3
    imlib2-1.4.2-3 libcaca-0.99.beta16-1 x264-20100107-1
    libmp4v2-1.6-1 faac-1.28-1 libftdi-0.16-1 lirc-utils-0.8.6-3
    libxvmc-1.0.5-1 recode-3.6-3 enca-1.12-1 libvdpau-0.3-2
    opencore-amr-0.1.2-1 a52dec-0.7.4-4 libdca-0.0.5-2
    mplayer-30325-1
    Total Download Size: 34.58 MB
    Total Installed Size: 126.33 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    error: failed retrieving file 'lame-3.98.2-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libmng-1.0.10-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'tdb-1.2.0-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'smbclient-3.4.4-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'jack-audio-connection-kit-0.116.2-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libid3tag-0.15.1b-3-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'imlib2-1.4.2-3-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libcaca-0.99.beta16-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'x264-20100107-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libmp4v2-1.6-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'faac-1.28-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'enca-1.12-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'libvdpau-0.3-2-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    error: failed retrieving file 'mplayer-30325-1-x86_64.pkg.tar.gz' from mirror.lividpenguin.com : Not Found
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (Not Found)
    Errors occurred, no packages were upgraded.
    Confusingly, if I now try to clean up the mess and remove the mplayer files that I did download, I get:
    pacman -R mplayer
    mplayer not found, searching for group...
    error: 'mplayer': not found in local db
    Thanks for reading

    I am having the same or similar problem. I am unable to install vlc, ffmpeg, and several of their respective dependencies, with the same error
    [joshua@desktop ~]$ sudo pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    archlinuxfr is up to date
    :: Starting full system upgrade...
    there is nothing to do
    [joshua@desktop ~]$ sudo pacman -S ffmpeg
    resolving dependencies...
    looking for inter-conflicts...
    Targets (10): faad2-2.7-1 libmp4v2-1.9.1-1 faac-1.28-2 xvidcore-1.2.2-1 opencore-amr-0.1.2-1 libvdpau-0.4-1 orc-0.4.4-1
    schroedinger-1.0.9-1 libvpx-0.9.1-1 ffmpeg-23619-1
    Total Download Size: 3.35 MB
    Total Installed Size: 31.32 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from mirrors.easynews.com : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from ftp.archlinux.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from ftp.gtlib.gatech.edu : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from mirrors.hosef.org : Service not available, closing control connection
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from ibiblio.org : File unavailable (e.g., file not found, no access)
    error: failed retrieving file 'ffmpeg-23619-1-x86_64.pkg.tar.xz' from mirrors.xmission.com : File unavailable (e.g., file not found, no access)
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (File unavailable (e.g., file not found, no access))
    Errors occurred, no packages were upgraded.
    Checking on the mirrors manually, I see that the package versions are incorrect. For example, http://www.archlinux.org/packages/extra/x86_64/ffmpeg/ has ffmpeg at version 23792-1 but pacman is looking for 23619-1.
    Any ideas?
    EDIT: this is an install from this morning, from the 2010.05 core disk. Post install, I ran pacman -Syu and then installed some packages without issue.
    Last edited by joshdmiller (2010-06-28 00:05:21)

  • Default install of config files

    By default in Vista, DW CS4 installs its config files here: \Users\username\AppData\Ro
    aming\Adobe\Dreamweaver CS4\Configuration   My Adobe folder has grown to over 1 Gig.  This means I have 1 Gig of data that continues to get copied back and forth across our network.  This tranlates to very long login and logoff procedures.   Is there a way to force DW during install to setup their config files somewhere else or is there a better solution to elimate the slow network coping of DW config files?  Thanks

    Hi
    The dreamweaver user config files should not be so large, even with lots of extensions installed it should rarely be more than 200Mb, and not 1Gb.
    As your server admin why they are uploading your dreamweaver user config as there is not reason I know of to do this, even the use of a version control system should not require more than 20Mb of files to be transferred. Is it possible that they have selected video files to be transferred or other items and not just the log-on to server info?
    PZ

  • [svn:osmf:] 14412: Added the Syndication. swc to the command line build config file for the AkamaiPluginSample project .

    Revision: 14412
    Revision: 14412
    Author:   [email protected]
    Date:     2010-02-24 17:48:22 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Added the Syndication.swc to the command line build config file for the AkamaiPluginSample project.
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/AkamaiPluginSample-build-config.xml

    I think it is not supported through ant script and you may have to contact Oracle Support. Please go through below thread (hisaak's reply) -
    Re: Export OSB configuration jar file using Ant
    Regards,
    Anuj

  • [svn:osmf:] 14411: Adding command line build config files for the syndication library.

    Revision: 14411
    Revision: 14411
    Author:   [email protected]
    Date:     2010-02-24 17:45:22 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Adding command line build config files for the syndication library.
    Added Paths:
        osmf/trunk/libs/Syndication/syndication-build-config.flex
        osmf/trunk/libs/Syndication/syndication-build-config.flexcov
        osmf/trunk/libs/Syndication/syndication-build-config.xml

    Revision: 14411
    Revision: 14411
    Author:   [email protected]
    Date:     2010-02-24 17:45:22 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Adding command line build config files for the syndication library.
    Added Paths:
        osmf/trunk/libs/Syndication/syndication-build-config.flex
        osmf/trunk/libs/Syndication/syndication-build-config.flexcov
        osmf/trunk/libs/Syndication/syndication-build-config.xml

  • Need to append the assembly entry in web.config file while installing NuGet

    Hi,
    Consider that I need to create three NuGets. Second and third are dependents for first one. Each one has its own web.config file, which file content is same except one tag's value. While I'm installing the first NuGet, it will install the second and third too
    which is fine. The NuGets are installing one by one. But the issue is while I'm installing the NuGet in an ASP.NET project, the web.cofig file gets replace with one another that means the last NuGet's web.config file is only remains at last. But I need to
    append that tag value one by one. Is there any possibilities to create NuGets in that way? Please help me as soon as possible. Thanks in advance.
    I need this...
    <assemblies>
    <add assembly="Abc.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    <add assembly="Def.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    <add assembly="Ghi.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    </assemblies>
    But I got this...
    <assemblies>
    <add assembly="Ghi.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    </assemblies>

    Hi mathikp,
    One solution is to use the DTE object model to find the ASP.NET project, enumerate all the project items in the project to find the Web.config file. Then change the content by your self. This will be done after you install the Nuget package in the project.
    https://msdn.microsoft.com/en-us/library/envdte.project.projectitems.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [solved] How does Pacman handle config files?

    Hi,
    I've read that Pacman handles config files by comparing their hashes in 3 different statuses.
    (which are in current status, new status, and original status)
    The current config file's hash is easily obtained, and so does the new ones'.
    But how does Pacman get the original one's hash?
    Can someone tell me, please?
    Thank you, and happy new year,
    bsdson
    Last edited by bsdson.tw (2008-12-26 07:37:41)

    It is stored in the pacman database.  e.g. look at /var/lib/pacman/local/pacman-3.2.1-2/files

  • Pacman unused config files

    how to delete unused resident config files of uninstalled application using pacman

    From the pacman entry in the wiki:
    Note: Pacman will not remove configurations that the application itself creates (for example "dotfiles" in the home folder).

  • Arch trashes config files in /etc?

    Hi everyone, I just installed Arch today in a virtual machine to get a feel for it (trying to get away from the grind of Gentoo), and ran into the first obstacle...
    I installed joe with "pacman -S joe", then I edited /etc/joe/joerc. That's when it occurred to me to check how Arch handles config file upgrades, so I just reinstalled joe with the same command, and to my amazement, all modifications from /etc/joe/joerc were gone and there was no backup in sight. Pacman simply overwrote the files in /etc/joe.
    I was perusing the Wiki while downloading the CD image and the information there suggested that Pacman would save a backup copy of the previous config file, instead of just blindly overwriting. So, am I doing anything wrong? Does it put the backups in some different directory? Or is this feature not yet implemented? I'm really stuck on this, any help would be really appreciated.
    If it helps, the CD version I downloaded is Archlinux-i686-2007.05-Duke-Linuxtag2007.current.iso, also during installation I selected only the "base" package set, and after installation I pointed the "current" repository in /etc/pacman.conf to the CD, so I could try out package management without waiting for packages to download.
    P.S. The forum registration form is a bit broken, when it checks if you are a bot by asking the name of the distribution, it refused the answer "Arch Linux" and called me a bot. I obviously got past it, but still, it should accept "Arch Linux" because that is the name on the main web page and in the titles of all sub pages.

    Oh, I see. You are right, the backup files section is empty, thanks.
    This presents few more questions:
    1) In your experience, are the packages in Arch generally sloppy like this when it comes to handling config files, or was this just bad luck to have a rare bug in my first ever installed Arch package?
    2) Isn't this kind of handling of config files fragile? It would really suck to be toiling all night over some complex config file, only to have your hard work blown away on next upgrade because the packager made a typo in the list of backup files.
    3) Would it be better to have a global option somewhere to specify whole directory trees as protected user-edited config files, instead of each package trying (and sometimes failing, obviously) to specify everything? Can you specify whole of /etc/* with the NoUpgrade option you mentioned, instead of each file one by one?

  • Lenovo Yoga 2 13, Kali Linux 1.0.7, Ubuntu 14.04, Windows 8.1 install, config, and wifi fix.

    Lenovo Yoga 2 13, Kali Linux 1.0.7, Ubuntu 14.04, Windows 8.1 install, config, and wifi fix.
    I wanted to share an experience with everyone I hope will help others avoid what I have gone through the past 3 days. I bought a Yoga 11s that I loved but had some issues with the wireless, Lenovo being awesome replaced it with a Yoga 2 13. I love this laptop but ran into some issues with Linux install/wireless, which I wanted to show how to resolve in one place. Hopefully this will help someone else get through this quicker
    I am going to try and write this for someone with little Linux experience, if I miss the mark please let me know and I will clarify the best I can.
    For work I need Windows 8.1 and Kali Linux, while for home I prefer Ubuntu.
    My Yoga 2 13:
    I5 1.6 ghz
    8 GB ram
    256 GB SSD
    ORANGE!
    My requirements: 
    I need Windows
    I need Kali Linux (livecd, even with persistent mode was not an option as it would not save the wireless fix or system updates) – I would also like this on a USB drive and not the internal SSD
    I would like Ubuntu
    Needed to do this:
    1. 2 USB thumb drives (at least 8gb in size each) I used 2 Leef Supra 32GB drives. They are my favorite right now and are only about $27 at amazon.
    2. Phone that can USB Tether or a USB Ethernet card (External USB wireless will show as "Hardware Locked"). Again you can pick one up for sub $10 if you need the USB Ethernet route. I used my Galaxy S5, you will need to download 200-300 mb of items through this so make sure you have the data if you go that route.
    3. You may be able to get a USB wifi card to work if you do the following after boot. This only worked once for me.
                    a.Type ‘sudo rmmod iwlmvm’
    b.Type ‘sudo rmmod iwlwifi’
    4. ISOs of Ubuntu and Kali Linux (I used Ubuntu 14.04 and Kali Linux 1.0.7)
    5. Software to unzip the ISOs. I recommend 7-ZIP and will be referencing this in this guide.
    6. I will include the EFI boot files and the WiFi fix files if I can attach. Otherwise I will provide a link to them.
       Link: https://www.dropbox.com/s/puxnnoft3gn2b6l/WiFiFix.zip
    Recommended (these are just in case you corrupt something making your system not see any OS
    1.  I would call Lenovo beforehand and get a set of recover disks (this will take 2-3 days)
    2. In the meantime a USB Windows 8.1 or 8 ISO (the repair feature may save you)
    *Note: At many points in this guide I detail steps and commands. Please double check that you understand the step before proceeding. There are multiple points where a mistyped command or clicking the wrong option will cause your entire system to fail and you will need to reformat the entire drive and start over. This also will make One Touch recovery not work. Proceed with caution.*
    I did not need to disable ‘secure boot’ to do this, but keep in mind that you may need to.
    Steps:
    First let’s go through the installs, and then we will go through grub config and wireless fix
    1. In Windows scroll to computer and right click, select manage.
    2. Go to “Disk Management”
    3. Select the main HDD (notice Lenovo puts a stupid number of partitions on here)
    a. I deleted the D: drive on here, if you do this make sure to copy the drives over to your main C: drive. You will want to run each of the installers and repair the drivers after.
    4. I used the space from the D: drive and pulled a little more creating a 50 GB partition for Ubuntu and my swap file
    a. You can also add more space by right clicking your C drive and selecting shrink
    b. Do not format the partitioned data as this will make identifying it later much easier.
    5. Open a command line
                    a. Swipe from the right of the screen and select search
                    b. Type ‘cmd’
                    c. right click and select ‘run as admin’
    6. For Ubuntu: Type ‘diskpart’ into the command line
                    a. type ‘list disk’
    i. You should see 2-3 disks depending on if you have one or both usb drives in the laptop at the time. I would suggest only doing 1 at a time so you don’t lose track.
                    b. type ‘select disk $’ (Replace the $ with the number of the drive)
    c. ***** Before proceeding make sure you have the correct drive selected or you can ruin your Windows install and Lenovo one touch recovery will not fix it since we have changed the partitions *****
    d. type ‘clean’
    e. type ‘create partition primary’
    f. type ‘active’
    g. type ‘format  fs=fat32 quick’
    h. type ‘assign’
    i. type ‘exit’
    6. For Kali Linux: Type ‘diskpart’ into the command line
                    a. type ‘list disk’
    i. You should see 2-3 disks depending on if you have one or both usb drives in the laptop at the time. I would suggest only doing 1 at a time so you don’t lose track.
                    b. type ‘select disk $’ (Replace the $ with the number of the drive)
    c. ***** Before proceeding make sure you have the correct drive selected or you can ruin your Windows install and Lenovo one touch recovery will not fix it since we have changed the partitions *****
    d. type ‘clean’
    e. type ‘create partition primary size= 3272
    f. type ‘active’
    g. type ‘format  fs=fat32 quick’
    h. type ‘assign’
    i. type ‘exit’
    j. By doing this we can maintain a portion of this drive as the install CD and still have linux install/ liveCD if we need to run it on another machine.
    7. At this point the drive is ready to have the contents of the ISO copied over.
    8. Right click the ISO and select 7-zip then ‘zip to /’ This should unzip the ISO to the location of the ISO into a folder named exactly the same as the ISO.
    9. Once this is done for Ubuntu ISO it is done
    10. Kali requires a little bit more to be ready
                    a. Kali will need some files added for EFI boot. --$--
                                   i. Thanks to: https://forums.kali.org/showthread.php?271-How-to-EFI-install-Kali-Linux
                                   ii. EFI files are located within the wifi fix folder https://www.dropbox.com/s/puxnnoft3gn2b6l/WiFiFix.zip
    11. Now let’s start with Ubuntu
    Ubuntu install
    1.     Place USB drive into the laptop and press the “Lenovo boot” button next to the power button
    2.     Select ‘Boot Menu’
    3.     Select ‘EFI USB Device (Name of drive)’ Mine stated Leef Supra
    4.     Select ‘install Ubuntu’
    5.     Go through the Ubuntu install until you get to select the install drive
    6.     Once you get to the install portion it will ask you to select from one of 4 options. Select ‘Manually select partition’
    7.     Select the “Free Space” where we opened up some of the drive
    8.     You will need to create 2 partitions, I usually create the swap partition at the end of the drive
    a.     First I create the swap
                                              i.    Set at the end of the drive
                                             ii.    Set size to 1024 mb
                                            iii.    Set type to ‘swap’
    b.     Second create the ext 4 partition
                                              i.    Set to beginning of drive
                                             ii.    Set to remainder of the space
                                            iii.    Set type to ext4
                                            iv.    Set mount point to /
    9.     Finish the install and boot into Ubuntu
    10.   You will notice that your wireless is ‘disabled by hardware’ This is fine for the time being and we will worry about this after the kali install. If we fix it now for some reason after installing kali we get the error again and would just need to fix it again.
    Kali Linux install
    1.     Place USB drive into the laptop and press the “Lenovo boot” button next to the power button
    2.     Select ‘Boot Menu’
    3.     Select ‘EFI USB Device (Name of drive)’ Mine stated Leef Supra
    4.     From the grub menu select ‘install kali linux’ both graphical and text work. I much prefer text install
    5.     You will get a few errors through the install but that is fine
    6.     The first we see is about network hardware and ‘load missing firmware from removable media?’ – Select ‘no’
    7.     Then select no ethernet card
    8.     It will have you name your machine then it will ask you for the root password
    a.     If you want to just use root *not recommended* place the password here
    b.     If you wish to use a non-root account then leave these blank and it will ask you for a name, username, and password of the new machine *Very Recommended* - this will also add this user to the sudoers file
    9.     It will then ask you to ‘partition disks’
    10.   Select manual
    11.   Now here is where it can get a little confusing so read twice click once
    12.   Select the USB drive from this list
    13.   Mine shows up under (sdb) – Leef Supra
    a.     It could be sdc, sdd, sde, etc… depending on how many drives you have plugged in.
    14.   You should see one primary drive that is 3gb or so that is formatted as FAT32. – DO NOT TOUCH THIS PARTITION!
    15.   You should see the remainder of this drive as ‘FREE SPACE’ select that
    16.   Create a partition at the end at size 1024mb and swap
    17.   Then create another one for the remainder of the drive and set it to ext4 with mountpoint of /
    18.   Continue through the install after you should see an error warning you that ‘you may not be able to boot’ that is fine, select continue
    19.   Then select from the menu of all the options ‘continue without bootloader’
    20.   It should finish up then reboot on its own.

    First setup/boot/fix grub
    1.     You should  be able to boot up into GRUB2 menu now.
    2.     You may not see kali linux in this menu (make sure you have your towel and don’t panic!)
    3.     Boot into Ubuntu
    4.     Once you log in you should see that you still cannot use wireless due to being locked by hardware
    5.     This is expected
    6.     Let’s fix grub then we will come back to fixing wireless
    7.     Plug in your device to connect to the internet (USB Tethering or USB Ethernet)
    8.     Once you verify that you now have an internet connection run the following from terminal
    a.     ‘sudo add-apt-repository ppa:danielrichter2007/grub-customizer’
    b.     ‘sudo apt-get update’
    c.     ‘sudo apt-get install grub-customizer’
    9.     You can also edit the grub.cfg manually if you know what you are doing… I did not
    10.   Open grub  customizer
    11.   It should auto populate and you should see ‘debian (kali linux)’ somewhere in the list
    12.   It should be mounted to /dev/sdb2 or /dev/sdc2 depending on how many devices you have
    13.   At this point go ahead and save
    14.   Reboot and test that you can get into each OS
    15.   This is where my inexperience got me. I spent 2 of my days so I am including this error: If when you boot into Kali you get an error somewhere that says ‘/bin/sh: can’t access tty: job control turned off’ look above it for an error that looks similar to ‘ALERT! /dev/sdc2 does not exist. Dropping to a shell!!’
    a.     That error is due to the mount point being incorrect in grub, reboot and from within grub highlight the kali boot. Press ‘e’ then towards the bottom you should see ‘root=/dev/sdc2’ change this to ‘root=/dev/sdb2’ again the number doesn’t matter just make sure it stays the same.
    b.     Press F10
    c.     If this boots fine then you will need to go back and fix the grub.cfg or load into Ubuntu and open grub customizer again, it should fix this
    16.   Now you have 3 working OS on the machine with one being on a USB! Congrats!
    17.   You can remove the USB with no worry of screwing up your install, but you will not be able to boot into Kali Linux until you replace it. I would suggest only removing it and replacing it while the machine is powered off, but that’s just me.
    Fix Wireless
    Now is the time to do what probably ¾ of you came here for. FIX THE DANG WIRELESS. This is a huge problem from Lenovo’s side that I hope they realize how important Linux is and will fix. I won’t hold my breath though.
    Log into Ubuntu : This is well documented in the following forum post on page 3 by user Haohe:
    http://ubuntuforums.org/showthread.php?t=2215044&page=3
    His has you download quite a large file, mine should be much smaller.
    https://www.dropbox.com/s/puxnnoft3gn2b6l/WiFiFix.zip
    1.     Download the attached package with the fix.
    2.     Connect your USB internet device (tether or ethernet)
    3.     Place the packages somewhere easy to access, in this example I will place them under ~/Desktop/WiFiFix
    4.     Type ‘cd ~/Desktop/WiFiFix/’
    5.     Now we need to prep the tools we need.
    6.     Type ‘sudo apt-get update’ – we did this before, but you know, just in case
    7.     Type ‘sudo apt-get install linux-headers-`uname –r`’   Note around uname-r they are the ` symbol not the ‘ this is located just above the tab on the same key as ~.
    8.     Type ‘make’
    9.     Type ‘sudo cp /lib/modules/3.13.0-24-generic/kernel/drivers/platform/x86/ideapad-laptop.ko ~/ideapad-laptop.ko.backup’
    10.   Type ‘sudo cp ~/Desktop/WiFiFix/ideapad-laptop.ko /lib/modules/3.13.0-24-generic/kernel/drivers/platform/x86/’
    11.   Type ‘sudo modprobe -r ideapad-laptop’
    12.   Type ‘sudo modprobe ideapad-laptop’
    13.   Type ‘sudo rfkill unblock all’
    14.   Type ‘sudo modprobe -r ideapad-laptop’
    15.   Type ‘sudo mv ~/ideapad-laptop.ko.backup /lib/modules/3.13.0-24-generic/kernel/drivers/platform/x86/ideapad-laptop.ko’
    16.   Next we need to blacklist the ideapad module
    17.   Type ‘sudo echo 'blacklist ideapad-laptop' > /etc/modprobe.d/blacklist-ideapad.conf’
    a.     The first time I tried this it wouldn’t work. So I did the following
    b.     ‘sudo touch /etc/modprobe.d/blacklist-ideapad.conf’
    c.     ‘sudo vim /etc/modprobe.d/blacklist-ideapad.conf’
    d.     Enter     blacklist ideapad-laptop
    e.     Exit and save
    18.   Reboot your Yoga 2 13
    19.   Boot into kali and see if you have wireless, if you do then you are done. If not we will need to repeat this process with one small little change.
    Kali Wifi Fix
    1.     Copy the sources.list from the package provided
    2.     Replace /etc/apt/sources.list with the included
    3.     Some of the file path changes but the process remains the same from here.
    Congratulations you now have 3 OSes one portable to other machines and working wifi!
    Thank you
    SirGed

  • Error in running package with config file

    I have a 2012 package and it is referring to a config file which has the DB connectionstring. This config file was created through the "Package Configuration Organizer". When I execute the package through VS 2012, it works fine(Reads the config
    from config file), but I get the below error when I run from DTEXEC. 
    Command: 
    C:\Program Files\Microsoft SQL Server\110\DTS\Binn>dtexec /f "C:\user\admin\Test\Pack1.dtsx /Conf "C:\user\admin\Test\P1.dtsconfig"
    Microsoft (R) SQL Server Execute Package Utility
    Version 11.0.2100.60 for 64-bit
    Copyright (C) Microsoft Corporation. All rights reserved.
    Started:  4:13:06 PM
    Warning: 2013-12-13 16:13:07.19
       Code: 0xC0048000
       Source: Process File Process File (SSIS.Pipeline)
       Description: The registry key "SOFTWARE\Classes\CLSID\{7F88F654-4E20-4D14-84F4-AF9C925D3087}\DTSInfo" cannot be opened.
    End Warning
    Warning: 2013-12-13 16:13:07.19
       Code: 0x8004801E
       Source: Process File Process File (SSIS.Pipeline)
       Description: Cannot find the "CurrentVersion" value for component {7F88F654-4E20-4D14-84F4-AF9C925D3087}. The CurrentVersion value for the
    t cannot be located. This error occurs if the component has not set its registry information to contain a CurrentVersion value in the DTSInfo
     This message occurs during component development, or when the component is used in a package, if the component is not registered properly.
    End Warning
    Progress: 2013-12-13 16:13:08.00
       Source: Select the latest Vendor file from mailMonitor
       Executing query "select top 1 (ea.attachment_path), ea.attachment_f...".: 100% complete
    End Progress
    Progress: 2013-12-13 16:13:08.03
       Source: Check if file has already been processed
       Executing query "select count(*) from myTable where FileName...".: 100% complete
    End Progress
    Error: 2013-12-13 16:13:08.03
       Code: 0xC000F427
       Source: Unprocessed File? (This is an Expression Task)
       Description: To run a SSIS package outside of SQL Server Data Tools you must install Unprocessed File? of Integration Services or higher.
    End Error

    Please see if this link helps -
    http://dba.stackexchange.com/questions/49786/error-to-run-a-ssis-package-outside-of-sql-server-data-tools-you-must-install
    Narsimha

Maybe you are looking for