[Solved] void privoxy config file

Hi,
is the new privoxy package provided with no config file?
i'm currently using 3.0.12
regards
Answer: no
Last edited by pepeapepepe (2010-01-15 18:17:41)

I love it when people answer their own questions... In this case you probably would have been better off checking before posting though.

Similar Messages

  • [SOLVED] Parsing simple config files in pure bash

    Hi everyone,
    I'd like to implement a bash function to parse a simple config file for a script I've wrote. The conifg file contains different sections for different scenarios. Here's an example how it should look like:
    # configuration file
    # global settings
    global {
    DATE_PREFIX="-I"
    SSHFS_OPTS="-C"
    EXT_FULL="full"
    EXT_DIFF="diff"
    EXT_CATALOGUE="catalogue"
    DAR_OPTS="-v -m 256 -y -s 600M -D"
    DAR_NOCOMPR="-Z '*.gz' -Z '*.bz2' -Z '*.zip' -Z '*.png'"
    # system settings
    system {
    DAR_OPTS="-v -m 256 -y -s 200M -D"
    It contains some settings which are global for the whole script and special settings groups which can be used to overwrite global settings.
    The function to parse this config file looks as follows:
    #!/bin/sh
    CONFIG="/home/chi/.daruprc"
    function readconf() {
    match=0
    while read line; do
    # skip comments
    [[ ${line:0:1} == "#" ]] && continue
    # still no match? lets check again
    if [ $match == 0 ]; then
    # do we have an open tag ?
    if [[ ${line:$((${#line}-1))} == "{" ]]; then
    # strip "{"
    group=${line:0:$((${#line}-1))}
    # do we have a match ?
    if [[ ${group} -eq $1 ]]; then
    match=1
    continue
    fi
    continue
    fi
    # found close tag but still no match - continue
    elif [[ ${line:0} == "}" && $match == 0 ]]; then
    continue
    # found close tag after config was read - exit loop
    elif [[ ${line:0} == "}" && $match == 1 ]]; then
    break
    # got a config line return it
    else
    echo $line
    fi
    done < "$CONFIG"
    for line in $(readconf "system"); do
    echo $line
    done
    As you can see I try to just echo the lines at the moment. And here's the problem: It seems I have some " escape issues, if I run it I get the following output:
    ./parseconfig.sh
    DATE_PREFIX="-I"
    SSHFS_OPTS="-C"
    EXT_FULL="full"
    EXT_DIFF="diff"
    EXT_CATALOGUE="catalogue"
    DAR_OPTS="-v
    -m
    256
    -y
    -s
    600M
    -D"
    DAR_NOCOMPR="-Z
    '*.gz'
    -Z
    '*.bz2'
    -Z
    '*.zip'
    -Z
    '*.png'"
    As you can see there are way to much newlines - which leads to problems when I try to use "eval" to initialize the variables.
    I am sure I am missing something simple here, however I am looking for a solution for a few days now - maybe one of the bash gurus on this board can enlighten me ;-).
    Thanks in advance
    PS.: I am trying to do this in pure bash because the script also needs to run on embedded machines with very low memory like my router on which I don't have sed or awk or the like. I also know that I could for example just use different config files to circumvent the whole parsing - but I am just curious if this could work the way I like ;-).
    Last edited by chimeric (2007-11-04 23:20:58)

    chimeric wrote:
    Hi MrWeatherbee,
    well yes, but I want to assign (eval) these lines to get variables out of them. Since the while loop is trapped in its' own subshell I need to return the lines into the parent one to be able to make these variables "visible" in the script itself.
    Right. But I was trying to show you that the way you were going about it wouldn't work at a very fundamental level.
    Without changing too much code just for a quick and dirty demo,
    change:
    # got a config line return it
    else
    echo $line
    fi
    done < "$CONFIG"
    # got a config line return it
    else
    line_array=( "${line_array[@]}" "$line" )
    fi
    done < "$CONFIG"
    numarrayelements=${#line_array[@]}
    and then in the main program code, do this:
    readconf "system"
    for index in $( seq $numarrayelements ); do
    line=${line_array[(($index-1))]}
    echo $line
    done
    Using an array to collect the good lines from the function allows you to reuse them later for whatever purpose. Although other ways exist, you certainly don't want to do what you originally did.
    Edit:
    I posted the code with an incorrectly referenced variable and had to fix it.
    Last edited by MrWeatherbee (2007-11-04 22:46:34)

  • [SOLVED] Only local config files for common shells?

    Just to understand matter a little better: As far is I've learned, common shells like fish or zsh only look in local directories for configuration files (like ~/.config/fish/config.fish or ~/.zshrc) but wouldn't this be extremly uncomfortable to lose all custumizations when running sudo su?  Or is it generally depreciated to use su and one should try to get everywhere using sudo only?  Vim, for example, also looks in /etc for a global vimrc.
    Thanks for some clarification!
    Last edited by ysetdng (2014-07-12 22:47:06)

    Thanks a lot for the inputs!  Now I've got some context.
    ConnorBehan wrote:Are you sure they only look in local config files?
    I'm unsure now, the man pages say that zsh indeed also parses /etc/zshrc, I only checked the Arch Wike page before and there it doesn't mention this.
    Last edited by ysetdng (2014-07-12 22:46:36)

  • [SOLVED] Reinstallation: Blank config files?

    OK, so I managed to hose my first Arch install (forgot to rehash the passwords after switching to sha512. D'oh!) so I decided to reinstall - probably not the easiest way to do it, I know, but I'm trying to learn Arch, so I thought I'd give it a try.
    As far as I am aware, I am not doing anything different, but every time I get to the system configuration section, every single configuration file is blank.  I have tried nuking the partition I'm installing Arch to (at the moment, I'm dual booting with Ubuntu) and rebuilding the Grub2 configuration from Ubuntu, in case there's any residual information that the Arch installer is picking up on and I have burned a new CD and tried installing from that, in case there's a problem with the CD.  The only clue I have - if, indeed, it is a clue to this problem and not something entirely different - is an error message I have never seen before in the boot process, right below the IsoLinux copyright message and just before the Arch boot screen comes up
    "Unknown keyword in configuration file: IAPPEND"
    which, unsurprisingly as it's an unknown keyword, provides no useful hits on Google.
    Any ideas?  What am I doing wrong?
    Many thanks,
    David Shaw
    Last edited by dtmc (2011-05-06 22:44:20)

    I'd just like to thank everyone for not helping me with this.
    No.  Seriously.
    By *not* helping me, you've forced me to actually use my brain and, in the process, I've learned more than I would have done with your help, which is the whole point of this exercise for me.  So, yeah, thank you all  :-)
    The problem?  Oh, yeah.  Three files in /boot - System.map26, vmlinuz26 and grub/menu.lst which, if I'd actually been paying attention, the install process was actually *telling me* were causing problems with the install.  I renamed them and the install went fine.
    Now I've just got to sort out the sha512 hashes on the passwords (and do it right, this time) and get the wireless working.  And everything else  :-)
    So, once again, thank you,
    David Shaw

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

  • XBMC-standalone config files location [solved]

    My HTPC seems to have corrupted one of the XBMC config files (probably the library) and now it doesn't seem to be able to add any videos (even with .nfo files) to the library (and it has lost quite a lot of videos that were already there).
    I've looked everywhere to try and delete the config files however I can't seem to find where they are when XBMC is started using systemctl (I thought I'd struck gold with "/usr/share/xbmc/system/" however deleting them didn't help).
    So far I've tried removing and re-installing XBMC and deleting /usr/share/xbmc/system (which is removed when uninstalling XBMC) and it doesn't seem to have reset configuration is there anywhere else I should look?
    Thanks for the help.
    Last edited by Aradreth (2013-10-19 12:32:48)

    There is no XBMC folder in any of the users under /home/ as it is run by the XBMC user created by the package. However you did make me think of looking at the .install file for where is puts the home directory for the user and the config files are in there ('/var/lib/xbmc/.xbmc/' if anyone else ever needs to find them).
    Problem solved.
    Thanks
    Last edited by Aradreth (2013-10-19 12:33:35)

  • [SOLVED]Shutdown fails, probably because of some config file I changed

    Right, i can't shutdown or reboot properly (pm-util's suspend works).
    When I try, all (or most, I can't tell) of the deamons are closed properly, but then something attempts to do something with slimlock. It loops so fast I cant' really read the error
    message, but I don't think slimlock is even suposed to be accessed at that point.
    Deleting slimlock doesn't help, it just gives a "couldn't find command slimlock" (or something similar) error instead.
    I have some vague idea that I'm to blame this, because I seem to remember messing around with the shutdown process, trying to get it to call slimlock before anything else.
    The thing is; I don't remember.
    From now on I'll keep some file with a log of changes I make to scripts and config files, to make this easier, but this time I really need help finding out what the heck I've done : )
    Last edited by Bladtman242 (2012-03-10 01:48:46)

    I've commented the bash scripts out, and the problem persists.
    So I figured I could "limit" the search to
    find / -mtime -14 -and -size -2M -exec grep -lisE ".*slimlock.* {} \;"
    It turned out to be a "sleep" script in /bin.
    I still have no idea why that was called, but I'm marking the thread as solved
    Thanks for your efforts
    Last edited by Bladtman242 (2012-03-10 01:42:56)

  • [SOLVED] Resetting config files from a package

    Suppose I modify a file called /etc/examplefile.conf from a package example-package.
    What is the easiest / most elegant way to reset this file? Reset = restore the file to its original, removing my modifications.
    This[1] topic discusses this, but it is two years old. I would say the "best" solution there was the one suggested in #7:
    you could move the config file first then reinstall.
    But I'm not sure if this is safe. For a dummy example, removing /etc/pacman.conf then reinstalling pacman wouldn't probably be a good idea (I suspect this wouldn't work).
    OBS.: Getting the original file from the package from the cache is an obvious solution, but I'm searching for a simpler (more direct) way to do this (a bash/zsh one-liner would be sufficient, for example).
    [1]: https://bbs.archlinux.org/viewtopic.php?id=137526
    Last edited by thiagowfx (2014-04-26 21:49:20)

    FYI, pkg_scripts are available both in the AUR https://aur.archlinux.org/packages/pkg_scripts/ and in Xyne's repo: https://wiki.archlinux.org/index.php/Un … #xyne-i686 or https://wiki.archlinux.org/index.php/Un … #xyne-i686

  • [SOLVED] no gui after wrong merge of config files

    Hi all,
    i'm writing from my pc through lynx. I'm not able anymore to log to gui interface in gdm.
    I upgraded the system and I'm sure I made wrong merge of some config files like shadow, gpasswd etc
    I first realized I was not able anymore to login, then the gnome/shel was unresponding.
    from command line i reset the password of my user, but nothing changed
    Now when booting I can read a message error on the screen:
    "failed to start recreate volatile files and directories" could you please help me fixing this issue?
    what should I check?
    thanks in advance
    Last edited by virusso80 (2013-08-09 10:14:06)

    thanks,
    this is the output:
    systemd-tmpfiles-setup.service - Recreate Volatile Files and Directories
    Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; static)
    Active: failed (Result: exit-code) since Tue 2013-08-06 20:13:25 CEST; 9min ago
    Docs: man:tmpfiles.d(5)
    man:systemd-tmpfiles(8)
    Process: 355 ExecStart=/usr/bin/systemd-tmpfiles --create --remove (code=exited, status=1/FAILURE)
    Aug 06 20:13:25 jily systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
    Aug 06 20:13:25 jily systemd[1]: Failed to start Recreate Volatile Files and Directories.
    Aug 06 20:13:25 jily systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.

  • [SOLVED] How to create array in bash from some lines in config file

    I have config file for small script and it looks like this:
    local_directory="$HOME/etc"
    excluded_directory="$HOME/etc1"
    excluded_directory2="$HOME/etc2"
    excluded_directory3="$HOME/etc3"
    I would like to place all "excluded_directoryXX" config options into array that can be parsed to program. This way i have to hardcode it and it is not practical at all.
    Can somebody help me out?
    Last edited by kuraku (2013-09-24 20:45:42)

    @jasonwryan
    Thank you, i was not aware of that builtin. At first i wanted to use this in combination with "grep --after-context=XX" and then i realized that i can use it this way:
    mapfile -s XX -t configs </etc; echo "${configs[@]}"
    Thank you very much.

  • Can I adjust the kernel config-file? [SOLVED]

    so i kicked out linux-3 kernel and installed the "aufs_friendly kernel" with the aufs2 package all went well...after the reboot i got an error "acer_wmid" failure .
    my question can i rebuild the kernel WHITOUT the "acer_wmi" part from the config-file within the kernel-source ????
    # Altera FPGA firmware download module
    CONFIG_ALTERA_STAPL=m
    CONFIG_X86_PLATFORM_DEVICES=y
    CONFIG_ACER_WMI=m <<==== compiled as module and i want to get rid off...
    CONFIG_ACERHDF=m
    CONFIG_ASUS_LAPTOP=m
    CONFIG_DELL_LAPTOP=m
    CONFIG_DELL_WMI=m
    CONFIG_DELL_WMI_AIO=m
    because in the heather of the file
    # Automatically generated make config: don't edit <<==== THIS ??!!
    # Linux/x86_64 2.6.39 Kernel Configuration
    # Mon Jun 6 22:07:19 2011
    anybody any ideas ??
    Last edited by gregor (2011-08-01 21:57:48)

    Uncomment the "make menuconfig" line in the PKGBUILD or run that command when creating your kernel config.  This will bring up the console config utility.  Navigate to Device Drivers --> all the way down to X86 Platform Specific..  Toggle Acer WMI Laptop Extras using the spacebar.
    gonna try ...i'd blacklisted the module for now.
    You can also edit the config file directly and change the 'm' to a 'n'  This will work but the reason it's not recommended is because some options are dependent on other kernel options.
    tried that one .....no success
    [EDIT:] Uncomment the "make menuconfig" line in the PKGBUILD = worked for me
    BIG THNX
    Last edited by gregor (2011-08-01 21:44:06)

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

  • [SOLVED] All input devices off through synaptics config file

    Hello guys,
    It seems that while I was experimenting with synaptics configuration file (/etc/X11/xorg.conf.d/10-synaptics.conf) I turned all input devices off, and as you may assume I can't change this.
    Is there a way to fix this issue?
    I was trying to use an live CD and change the config files but I realized that are read-only files.
    Thank you very much in advance.
    Einkilink
    Last edited by Einkilink (2012-10-18 15:11:58)

    Thank you for your answer WonderWoofy,
    I tried to switch to a tty but it is not possible, it seems to me that the keyboard is not even active as well as the touchpad or connected usb mouse's.
    Is there a way to start Arch directly without X, maybe modifying something at the GRUB sequence or during loading of the services an so son?
    How can I do it?
    Thank you.
    Einkilink

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

  • [SOLVED]Warning booting: All config files need .conf

    Recently i get this boot message:
    WARNING: All config files need .conf: /etc/modprobe.d/modprobe.conf.pacnew,
    I have another file called modprobe.conf.
    Do I just need to rename/delete the file??
    Thanks in advance.
    Last edited by Hyugga (2011-11-14 00:05:15)

    Yes... you should ALWAYS vimdiff (or whatever) your pacnew files against their existing counter parts to capture changes from the devs first!
    http://amjith.blogspot.com/2008/08/quic … orial.html

Maybe you are looking for

  • Adobe Premiere CS2 Export Problem.

    I'm running Adobe premiere CS2 on a windows XP machine, and I'm having trouble exporting are Sunday services. I'm encoding them into Adobe with a Matrox RT. Here's my problem, I can export the message part of the service fine which is about 20 to 30

  • Display MDM key mapping information in EP Item Detail iViews

    Hi, in my repository I have the main table 'customer' including key mapping information for several client systems (master data consolidation scenario). The customer data is diplayerd in EP using the Item Details iView. I'd additionally like to displ

  • Integrating External Operating System Commands into ABAP program.

    Hi folks, using the transaction code sm69 it is possible to create an SAP command that's executing an operating system command. Is it possible to integrate such an SAP command into our ABAP programs ? How would we do so ? Regards Thomas

  • Error when extracting huge table from MSSQL server.

    Hi: Under BI 7 I configured a DB datasouce to retrieve data from a view on MSSQL server. It runs well when the data amount is below 5 million rows. When the data volumn is over 5M, the datasouce start failed... If I use the PREVIEW button in the Data

  • 10g release notes page error

    Hi, Noticed a problem with the following page: http://otn.oracle.com/tech/java/oc4j/1003/release_notes/release-notes-1003-preview.html The URL to the Web Services discussion forum incorrectly includes the trailing period of the sentence. regards Geor