[Solved] zsh and pkexec

[Synopsys] Edit /etc/shells manually, and add /bin/zsh to the list of shells and specify the full path to the app in the policy file. i.e. /usr/bin/leafpad and NOT just leafpad. The policy file for gparted serves as a good one to model your own policy files after.
My environment variable SHELL is still being set to /bin/zsh even though binaries have been moved to /usr/bin/zsh making pkexec complain and fail to run apps in privileged mode.
Where is SHELL set and where would be the most appropriate place to fix it globally for all users?
Last edited by KairiTech (2013-06-29 20:53:49)

karol wrote:What exactly does pkexec say?
The value for the SHELL variable was not found the /etc/shells file
This incident has been reported.
...but if I set SHELL like so...
export SHELL=`which zsh` ; pkexec gnome-system-monitor !
...after I enter a password the error message changes to...
(process:9562): GLib-WARNING **: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_child_watch_add()/g_spawn_sync() either directly or indirectly.
==== AUTHENTICATION COMPLETE ===
(gnome-system-monitor:9562): Gtk-WARNING **: cannot open display:
Last edited by KairiTech (2013-06-29 17:40:34)

Similar Messages

  • [SOLVED]ZSH and regular expressions

    Hi
    I am getting into regular expressions and i have noticed that with my .zshrc file i have some problem. In bash this expression works:
    \^\[^#]
    but not also in zsh. I have also noted that regular expression works fine with other zshrc configurations found in archwiki (like grml) but i want to have my configuration. And i really can't find what command make a difference
    My .zshrc file is pulled from this site https://github.com/slashbeast/things/bl … s/DOTzshrc.
    # .zshrc
    # Author: Piotr Karbowski <[email protected]>
    # License: beerware.
    # Basic zsh config.
    umask 077
    ZDOTDIR=${ZDOTDIR:-${HOME}}
    ZSHDDIR="${HOME}/.config/zsh.d"
    HISTFILE="${ZDOTDIR}/.zsh_history"
    HISTSIZE='10000'
    SAVEHIST="${HISTSIZE}"
    export EDITOR="/usr/bin/vim"
    export TMP="$HOME/tmp"
    export TEMP="$TMP"
    export TMPDIR="$TMP"
    export TMPPREFIX="${TMPDIR}/zsh"
    if [ ! -d "${TMP}" ]; then mkdir "${TMP}"; fi
    if ! [[ "${PATH}" =~ "^${HOME}/bin" ]]; then
    export PATH="${HOME}/bin:${PATH}"
    fi
    # Not all servers have terminfo for rxvt-256color. :<
    if [ "${TERM}" = 'rxvt-256color' ] && ! [ -f '/usr/share/terminfo/r/rxvt-256color' ] && ! [ -f '/lib/terminfo/r/rxvt-256color' ] && ! [ -f "${HOME}/.terminfo/r/rxvt-256color" ]; then
    export TERM='rxvt-unicode'
    fi
    # Colors.
    red='\e[0;31m'
    RED='\e[1;31m'
    green='\e[0;32m'
    GREEN='\e[1;32m'
    yellow='\e[0;33m'
    YELLOW='\e[1;33m'
    blue='\e[0;34m'
    BLUE='\e[1;34m'
    purple='\e[0;35m'
    PURPLE='\e[1;35m'
    cyan='\e[0;36m'
    CYAN='\e[1;36m'
    NC='\e[0m'
    # Functions
    if [ -f '/etc/profile.d/prll.sh' ]; then
    . "/etc/profile.d/prll.sh"
    fi
    run_under_tmux() {
    # Run $1 under session or attach if such session already exist.
    # $2 is optional path, if no specified, will use $1 from $PATH.
    # If you need to pass extra variables, use $2 for it as in example below..
    # Example usage:
    # torrent() { run_under_tmux 'rtorrent' '/usr/local/rtorrent-git/bin/rtorrent'; }
    # mutt() { run_under_tmux 'mutt'; }
    # irc() { run_under_tmux 'irssi' "TERM='screen' command irssi"; }
    # There is a bug in linux's libevent...
    # export EVENT_NOEPOLL=1
    command -v tmux >/dev/null 2>&1 || return 1
    if [ -z "$1" ]; then return 1; fi
    local name="$1"
    if [ -n "$2" ]; then
    local file_path="$2"
    else
    local file_path="command ${name}"
    fi
    if tmux has-session -t "${name}" 2>/dev/null; then
    tmux attach -d -t "${name}"
    else
    tmux new-session -s "${name}" "${file_path}" \; set-option status \; set set-titles-string "${name} (tmux@${HOST})"
    fi
    t() { run_under_tmux rtorrent; }
    irc() { run_under_tmux irssi "TERM='screen' command irssi"; }
    over_ssh() {
    if [ -n "${SSH_CLIENT}" ]; then
    return 0
    else
    return 1
    fi
    reload () {
    exec "${SHELL}" "$@"
    confirm() {
    local answer
    echo -ne "zsh: sure you want to run '${YELLOW}$@${NC}' [yN]? "
    read -q answer
    echo
    if [[ "${answer}" =~ ^[Yy]$ ]]; then
    command "${=1}" "${=@:2}"
    else
    return 1
    fi
    confirm_wrapper() {
    if [ "$1" = '--root' ]; then
    local as_root='true'
    shift
    fi
    local runcommand="$1"; shift
    if [ "${as_root}" = 'true' ] && [ "${USER}" != 'root' ]; then
    runcommand="sudo ${runcommand}"
    fi
    confirm "${runcommand}" "$@"
    poweroff() { confirm_wrapper --root $0 "$@"; }
    reboot() { confirm_wrapper --root $0 "$@"; }
    hibernate() { confirm_wrapper --root $0 "$@"; }
    detox() {
    if [ "$#" -ge 1 ]; then
    confirm detox "$@"
    else
    command detox "$@"
    fi
    has() {
    local string="${1}"
    shift
    local element=''
    for element in "$@"; do
    if [ "${string}" = "${element}" ]; then
    return 0
    fi
    done
    return 1
    begin_with() {
    local string="${1}"
    shift
    local element=''
    for element in "$@"; do
    if [[ "${string}" =~ "^${element}" ]]; then
    return 0
    fi
    done
    return 1
    termtitle() {
    case "$TERM" in
    rxvt*|xterm|nxterm|gnome|screen|screen-*)
    local prompt_host="${(%):-%m}"
    local prompt_user="${(%):-%n}"
    local prompt_char="${(%):-%~}"
    case "$1" in
    precmd)
    printf '\e]0;%s@%s: %s\a' "${prompt_user}" "${prompt_host}" "${prompt_char}"
    preexec)
    printf '\e]0;%s [%s@%s: %s]\a' "$2" "${prompt_user}" "${prompt_host}" "${prompt_char}"
    esac
    esac
    git_check_if_worktree() {
    # This function intend to be only executed in chpwd().
    # Check if the current path is in git repo.
    # We would want stop this function, on some big git repos it can take some time to cd into.
    if [ -n "${skip_zsh_git}" ]; then
    git_pwd_is_worktree='false'
    return 1
    fi
    # The : separated list of paths where we will run check for git repo.
    # If not set, then we will do it only for /root and /home.
    if [ "${UID}" = '0' ]; then
    # running 'git' in repo changes owner of git's index files to root, skip prompt git magic if CWD=/home/*
    git_check_if_workdir_path="${git_check_if_workdir_path:-/root:/etc}"
    else
    git_check_if_workdir_path="${git_check_if_workdir_path:-/home}"
    git_check_if_workdir_path_exclude="${git_check_if_workdir_path_exclude:-${HOME}/_sshfs}"
    fi
    if begin_with "${PWD}" ${=git_check_if_workdir_path//:/ }; then
    if ! begin_with "${PWD}" ${=git_check_if_workdir_path_exclude//:/ }; then
    local git_pwd_is_worktree_match='true'
    else
    local git_pwd_is_worktree_match='false'
    fi
    fi
    if ! [ "${git_pwd_is_worktree_match}" = 'true' ]; then
    git_pwd_is_worktree='false'
    return 1
    fi
    # todo: Prevent checking for /.git or /home/.git, if PWD=/home or PWD=/ maybe...
    # damn annoying RBAC messages about Access denied there.
    if [ -d '.git' ] || [ "$(git rev-parse --is-inside-work-tree 2> /dev/null)" = 'true' ]; then
    git_pwd_is_worktree='true'
    git_worktree_is_bare="$(git config core.bare)"
    else
    unset git_branch git_worktree_is_bare
    git_pwd_is_worktree='false'
    fi
    git_branch() {
    git_branch="$(git symbolic-ref HEAD 2>/dev/null)"
    git_branch="${git_branch##*/}"
    git_branch="${git_branch:-no branch}"
    git_dirty() {
    if [ "${git_worktree_is_bare}" = 'false' ] && [ -n "$(git status --untracked-files='no' --porcelain)" ]; then
    git_dirty='%F{green}*'
    else
    unset git_dirty
    fi
    precmd() {
    # Set terminal title.
    termtitle precmd
    if [ "${git_pwd_is_worktree}" = 'true' ]; then
    git_branch
    git_dirty
    git_prompt=" %F{blue}[%F{253}${git_branch}${git_dirty}%F{blue}]"
    else
    unset git_prompt
    fi
    preexec() {
    # Set terminal title along with current executed command pass as second argument
    termtitle preexec "${(V)1}"
    chpwd() {
    git_check_if_worktree
    man() {
    if command -v vimmanpager >/dev/null 2>&1; then
    PAGER="vimmanpager" command man "$@"
    else
    command man "$@"
    fi
    # Are we running under grsecurity's RBAC?
    rbac_auth() {
    local auth_to_role='admin'
    if [ "${USER}" = 'root' ]; then
    if ! grep -qE '^RBAC:' "/proc/self/status" && command -v gradm > /dev/null 2>&1; then
    echo -e "\n${BLUE}*${NC} ${GREEN}RBAC${NC} Authorize to '${auth_to_role}' RBAC role."
    gradm -a "${auth_to_role}"
    fi
    fi
    #rbac_auth
    # Check if we started zsh in git worktree, useful with tmux when your new zsh may spawn in source dir.
    git_check_if_worktree
    if [ "${git_pwd_is_worktree}" = 'true' ]; then
    git_branch
    git_dirty
    git_prompt=" %F{blue}[%F{253}${git_branch}${git_dirty}%F{blue}]"
    else
    unset git_prompt
    fi
    # Le features!
    # extended globbing, awesome!
    setopt extendedGlob
    # zmv - a command for renaming files by means of shell patterns.
    autoload -U zmv
    # zargs, as an alternative to find -exec and xargs.
    autoload -U zargs
    # Turn on command substitution in the prompt (and parameter expansion and arithmetic expansion).
    setopt promptsubst
    # Control-x-e to open current line in $EDITOR, awesome when writting functions or editing multiline commands.
    autoload -U edit-command-line
    zle -N edit-command-line
    bindkey '^x^e' edit-command-line
    # Include user-specified configs.
    if [ ! -d "${ZSHDDIR}" ]; then
    mkdir -p "${ZSHDDIR}" && echo "# Put your user-specified config here." > "${ZSHDDIR}/example.zsh"
    fi
    for zshd in $(ls -A ${HOME}/.config/zsh.d/^*.(z)sh$); do
    . "${zshd}"
    done
    # Completion.
    autoload -Uz compinit
    compinit
    zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
    zstyle ':completion:*' completer _expand _complete _ignored _approximate
    zstyle ':completion:*' menu select=2
    zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
    zstyle ':completion::complete:*' use-cache 1
    zstyle ':completion:*:descriptions' format '%U%F{cyan}%d%f%u'
    # If running as root and nice >0, renice to 0.
    if [ "$USER" = 'root' ] && [ "$(cut -d ' ' -f 19 /proc/$$/stat)" -gt 0 ]; then
    renice -n 0 -p "$$" && echo "# Adjusted nice level for current shell to 0."
    fi
    # Fancy prompt.
    if over_ssh && [ -z "${TMUX}" ]; then
    prompt_is_ssh='%F{blue}[%F{red}SSH%F{blue}] '
    elif over_ssh; then
    prompt_is_ssh='%F{blue}[%F{253}SSH%F{blue}] '
    else
    unset prompt_is_ssh
    fi
    case $USER in
    root)
    PROMPT='%B%F{cyan}%m%k %(?..%F{blue}[%F{253}%?%F{blue}] )${prompt_is_ssh}%B%F{blue}%1~${git_prompt}%F{blue} %# %b%f%k'
    PROMPT='%B%F{blue}%n@%m%k %(?..%F{blue}[%F{253}%?%F{blue}] )${prompt_is_ssh}%B%F{cyan}%1~${git_prompt}%F{cyan} %# %b%f%k'
    esac
    # Ignore lines prefixed with '#'.
    setopt interactivecomments
    # Ignore duplicate in history.
    setopt hist_ignore_dups
    # Prevent record in history entry if preceding them with at least one space
    setopt hist_ignore_space
    # Nobody need flow control anymore. Troublesome feature.
    #stty -ixon
    setopt noflowcontrol
    # Fix for tmux on linux.
    case "$(uname -o)" in
    'GNU/Linux')
    export EVENT_NOEPOLL=1
    esac
    # Aliases
    alias cp='cp -iv'
    alias rcp='rsync -v --progress'
    alias rmv='rsync -v --progress --remove-source-files'
    alias mv='mv -iv'
    alias rm='rm -iv'
    alias rmdir='rmdir -v'
    alias ln='ln -v'
    alias chmod="chmod -c"
    alias chown="chown -c"
    if command -v colordiff > /dev/null 2>&1; then
    alias diff="colordiff -Nuar"
    else
    alias diff="diff -Nuar"
    fi
    alias grep='grep --colour=auto'
    alias egrep='egrep --colour=auto'
    alias ls='ls --color=auto --human-readable --group-directories-first --classify'
    # Keys.
    case $TERM in
    rxvt*|xterm*)
    bindkey "^[[7~" beginning-of-line #Home key
    bindkey "^[[8~" end-of-line #End key
    bindkey "^[[3~" delete-char #Del key
    bindkey "^[[A" history-beginning-search-backward #Up Arrow
    bindkey "^[[B" history-beginning-search-forward #Down Arrow
    bindkey "^[Oc" forward-word # control + right arrow
    bindkey "^[Od" backward-word # control + left arrow
    bindkey "^H" backward-kill-word # control + backspace
    bindkey "^[[3^" kill-word # control + delete
    linux)
    bindkey "^[[1~" beginning-of-line #Home key
    bindkey "^[[4~" end-of-line #End key
    bindkey "^[[3~" delete-char #Del key
    bindkey "^[[A" history-beginning-search-backward
    bindkey "^[[B" history-beginning-search-forward
    screen|screen-*)
    bindkey "^[[1~" beginning-of-line #Home key
    bindkey "^[[4~" end-of-line #End key
    bindkey "^[[3~" delete-char #Del key
    bindkey "^[[A" history-beginning-search-backward #Up Arrow
    bindkey "^[[B" history-beginning-search-forward #Down Arrow
    bindkey "^[Oc" forward-word # control + right arrow
    bindkey "^[Od" backward-word # control + left arrow
    bindkey "^H" backward-kill-word # control + backspace
    bindkey "^[[3^" kill-word # control + delete
    esac
    bindkey "^R" history-incremental-pattern-search-backward
    bindkey "^S" history-incremental-pattern-search-forward
    if [ -f ~/.alert ]; then cat ~/.alert; fi
    Thanks for all the help.
    Last edited by Shark (2013-05-11 22:32:24)

    Raynman wrote:
    "This expression doesn't work", "It doesn't work" ...
    Could you try being a bit more specific?
    Firstly, i am sorry i didn't post the output. I should have know better.
    Secondly, chill out.
    I have used above regex with grep command. Output from terminal is:
    zsh: bad pattern: ^[^#]
    In bash it works perfectly.
    If i issue "setopt re_match_pcre" i have the same ouput as above.
    EDIT: If i issue "unsetopt no_match" it actually works but i have to change the regex from "\^\[^#]" to "\^[^#]" otherwise i get the same output as above. In bash both options work.
    Last edited by Shark (2013-05-11 22:07:21)

  • [SOLVED] Zsh and the move to /usr/bin

    I've done everything in the article, and I have no unofficial packages.
    However, I do use zsh as my shell, so I thought I might as well ask before doing anything:
    Blog wrote:# pacman -Syu --ignore filesystem,bash
    # pacman -S bash
    # pacman -Su
    Should I replace bash with zsh here? I do have both bash and zsh installed.
    EDIT: I did indeed forget to mount /boot. After doing that the update worked perfectly.
    Last edited by graph (2013-06-03 19:23:37)

    Alright, I have one working shell. I have no Ignores but I do have
    HoldPkg = pacman glibc
    in /etc/pacman.conf - Could this be the culprit?
    Also, here are the (missing) output of the commands from the article. I'm quite interested in knowing whether all my autofs-partitions are mounted, which I believe they are.
    # pacman -Qqo /bin /sbin /usr/sbin | pacman -Qm -
    # find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null
    # mount
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    dev on /dev type devtmpfs (rw,nosuid,relatime,size=1538736k,nr_inodes=216743,mode=755)
    run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    /dev/sda5 on / type ext4 (rw,relatime,data=ordered)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    systemd-1 on /boot type autofs (rw,relatime,fd=36,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    systemd-1 on /home type autofs (rw,relatime,fd=37,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    configfs on /sys/kernel/config type configfs (rw,relatime)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    tmpfs on /tmp type tmpfs (rw)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    /dev/sda6 on /home type ext4 (rw,noatime,data=ordered)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
    Last edited by graph (2013-06-03 18:00:47)

  • [SOLVED]zsh and variables?

    hello,
    is there possibility to export global(local) variables with spaces between names?
    now my shell only export first part of variable, to space
    regards
    Last edited by falomir (2009-08-18 04:33:00)

    --> zsh
    --> export test=$(echo one two three)
    --> echo $test
    one
    --> export test="$(echo one two three)"
    --> echo $test
    one two three
    --> bash
    --> export test=$(echo one two three)
    --> echo $test
    one two three
    --> exit
    A bug maybe?
    var=$(..) should work without quotes
    --> test=$(echo one two three)
    --> export test
    --> echo $test
    one two three

  • [SOLVED] problem with zsh and urxvt and keybinding

    I hope this is the right forum to post this problem, else please move it to the right forum.
    I have zsh and urxvt installed and I am quite pleased with it, except for one problem,
    When I push the delete button in urxvt I get a ~ instead of deleting the next character. In aterm and xterm I don't have this problem.
    I'm sure that there is a way to make the right keybinding for this, but I can't find the solution. Is there someone who can point me in the right direction?
    Last edited by NeoXP (2009-02-24 21:00:02)

    These are my most current bindkeys...
    case $TERM in (rxvt*) #urxvt
    bindkey "\e[7~" beginning-of-line
    bindkey "\e[8~" end-of-line
    esac
    bindkey "^A" beginning-of-line
    bindkey "^E" end-of-line
    bindkey '^?' backward-delete-char
    bindkey "\e[3~" delete-char
    Open a terminal, hit ctrl-V, and press delete.  It should print the key generated.  The first ^[ is escaped as \e.
    So, on my terminal I see ^[[3~
    I put bindkey "\e[3~" delete-char in my ~/.zshrc, and there you go.

  • Zsh (and Bash) Backgrounds Refuse to Change Color [SOLVED]

    I'm sorry if this sounds like a stupid question, but here goes.
    I installed Arch about a week ago and decided that I wanted to change the color of the terminal. I followed the guide on the Arch Wiki, (https://wiki.archlinux.org/index.php/Color_Bash_Prompt), creating all of the necessary files and copy-and-pasting all of the given text into those files. When I restarted my terminal, nothing happened. Fed up, I tried installing Zsh + oh-my-zsh. I successfully installed the two and installed  a zsh theme, but the background color still does not change. The text color, however, changes to the appopriate colors, but the background color remains white.
    Can anyone please tell me what I'm doing wrong?
    Edit: I didn't specify, but I really don't care which terminal I end up using, just as long as the colors work.
    Last edited by Thermite (2012-12-19 01:23:20)

    zsh and bash are shells, not terminal emulators. There is no "default" terminal, if you're using Arch. You had to install a terminal emulator at some point. Or maybe if you followed the beginner's guide you're using xterm. What window manager are you using?
    There are ways to set the background color in rxvt and in xterm using your .Xresources file. Look at the wiki topic for each of those terminals for more information.
    Maybe an easier method for you would be to install a terminal emulator that has menu support, like Terminator, LXTerminal, or Sakura. Then you can just right-click in the terminal and use the menu to set the background color and opacity.
    Last edited by 2ManyDogs (2012-12-18 23:03:53)

  • I want to install Photoshop but everytime I get an ERROR CODE: A12E1.How do I solve that and what is it?

    Hello,
    I want to install Photoshop but everytime I get an ERROR CODE: A12E1.How do I solve that and what is it?

    A12E1 error installing Creative Cloud products | CC
    Mylenium

  • After i download ios 5.1.1 i cant install it there is msg tell me an error occurred installing ios 5.1.1 what can i do to solve this and install the update ( i have ipad 2 ) ?????

    After i download ios 5.1.1 i cant install it there is msg tell me an error occurred installing ios 5.1.1 what can i do to solve this and install the update ( i have ipad 2 ) ?????

    No codes on the error just msg in the center of the ipad tell me that without any codes :@

  • My iMail keeps crashing -- how do I solve this and do I need to re-install

    my iMail keeps crashing -- how to solve this and do I need to re-install

    Is it iMail or Mail ?

  • My iphone  screen has gone white with a few grey lines down the right hand side.. Has anyone any ideas how I can solve this and get my screen back to normal..? Thanks

    my iphone screen has gone white with a few grey lines down the right hand side.. Has anyone any idea how I can solve this and get my screen back to normal..? Thanks

    Hi tag71,
    If you are having issues with the display on your iPhone, you may find the Display portion of the following article helpful:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Regards,
    - Brenden

  • I would like to get data analysis for solving statistic and making graphs, but this function is not in add-in. How should I do? I also set up microsoft office for mac 2011.

    I would like to get data analysis for solving statistic and making graphs, but this function is not in add-in. How should I do? I also set up microsoft office for mac 2011.

    Microsoft didn't include that with the 2011 version.
    There is a third-party application that substitutes for the add-in: http://www.analystsoft.com/en/products/statplusmac/
    They also have a limited, free version.

  • [Solved] $LANG and zsh prompt color problems

    Hi,
    I recently discovered, trying to use Newsbeuter, that, in X, certain parts of my profile aren't set. Until now it only seemed to be $LANG, which is empty if I echo it from urxvt in XMonad, but yields the correct setting if I do the same in a tty.
    To make things worse now, my zsh seems to be acting up. I have differently colored prompts for my normal user and root. But since a few days ago, the root colors aren't applied unless I source .zshrc again after sudo-ing.
    I updated a lot recently and it's gotten hard to track these issues, especially the $LANG one, to a specific update. The only thing I know is that my desktop, running Kdemod, doesn't have these problems.
    I'm using Slim and XMonad. Neither issue is limited to a certain terminal.
    Most of my configs can be found in my GitHub dotfiles repository. If anything's missing to get a clear picture, ask for it.
    My rc.conf can be found here [Gist].
    Last edited by count-corrupt (2010-08-22 13:33:06)

    jac wrote:
    I finally went through the new sudoers file and got mine to work, see this thread for details. Using that, and using a workaround for libetc, your prompt works for me.
    You appear not to use libetc, but if you do and don't also have root set up to use libetc, you will need to create a link to/from ~/.zshrc from/to ~/.config/zshrc
    I actually just solved it in another way. Your original point, that sudo changed it's default behavior was the key. In the official zsh documentation somewhere it says that all settings that are wanted for root should be put into /root/.zshrc. I just did that and it works.
    Your solution works too by the way. Just enabling
    Defaults env_keep += "HOME"
    does the trick and also (logically) re-enables other things that I hadn't even realized were gone yet like syntax highlighting in vim. I guess I should read into the nature of said privilige escalation problems. Maybe there's a way to selectively keep parts of HOME.
    So thank you very much for the help.

  • [solved] problem with zsh and makepkg

    I've had this problem for quite a while, but now finally it really starts pissing me off
    When I want to build a package with makepkg and the PKGBUILD has versioned dependencies, makepkg isn't able to resolve the dependencies.
    An example to demonstrate what this looks like
    PKGBUILD:
    # Maintainer: Army <[email protected]>
    pkgname=ardour3-svn
    _realname=ardour3
    pkgver=7501
    pkgrel=1
    pkgdesc="A multichannel hard disk recorder and digital audio workstation"
    arch=('i686' 'x86_64')
    url="http://www.ardour.org"
    license=('GPL')
    depends=("util-linux-ng" "liblrdf>=0.4.0" "liblo" "libgnomecanvasmm>=2.12.0" "slv2>=0.6.4" "aubio")
    makedepends=("boost>=1.39" "cppunit>=1.12.0" "soundtouch" "libvorbis>=1.1.2" "flac>=1.2.1" "python>=2.3" "jack-audio-connection-kit-svn")
    source=(${pkgname}.desktop)
    _svntrunk=http://subversion.ardour.org/svn/ardour2/branches/3.0
    _svnmod=${_realname}
    build() {
    cd ${srcdir}
    rm -rf ${_svnmod}-build
    svn co ${_svntrunk} ${_svnmod}
    cp -rf ${_svnmod} ${_svnmod}-build
    cd ${_svnmod}-build
    ./waf configure --prefix=/usr --configdir=/etc --tranzport --freesound --freedesktop --lv2 -p
    ./waf build
    DESTDIR="${pkgdir}" ./waf install
    # install some freedesktop.org compatibility
    install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${_realname}.desktop"
    md5sums=('2736c648e452ae45c703e48cf64f75e7')
    and this is the output:
    % makepkg -sir
    ==> Bestimme letzte SVN-Revision...
    -> Gefundene Version: 7501
    ==> Erstelle Paket: ardour3-svn 7501-1 (Di 27. Jul 00:44:01 CEST 2010)
    ==> Prüfe Laufzeit-Abhängigkeiten...
    ==> Prüfe Buildtime-Abhängigkeiten...
    ==> Installiere fehlende Abhängigkeiten...
    Passwort:
    zsh:1: 1.39 not found
    ==> Fehlende Abhängigkeiten:
    -> boost>=1.39
    -> cppunit>=1.12.0
    Seems like it changes
    makedepends=("boost>=1.39" "cppunit>=1.12.0" ...)
    to
    makedepends=("boost" "1.39" "cppunit" "1.12.0" ...)
    It doesn't matter if I put the dependencies into " or ' nothing, it's always the same output. I already created a new user to verify the situation, same problem there. With bash as shell all runs fine.
    I use grml-zsh-config from [extra], but that cannot be the trouble maker, I tested it with an uninstalled grml-zsh-config and a blank ~/.zshrc, still the same.
    How do you zsh users do this??
    Thanks for any idea!
    Last edited by Army (2010-07-28 08:01:19)

    Oh boy, sorry for these many posts, but without my sudo replacement package things are even worse!
    % bash -c "export SHELL=/bin/bash && makepkg -sir"
    ==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
    ==> Determining latest svn revision...
    -> Version found: 7518
    ==> Making package: ardour3-svn 7518-1 (Wed Jul 28 09:36:19 CEST 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Installing missing dependencies...
    Password:
    zsh:1: 1.39 not found
    ==> ERROR: 'pacman' failed to install missing dependencies.
    ==> WARNING: Failed to remove installed dependencies.
    This command works with nosudo installed ... I get the same errors when I do
    % bash --login
    $ echo $SHELL
    /bin/zsh
    $ export SHELL=/bin/bash
    $ echo $SHELL
    /bin/bash
    $ export LANG=C
    $ makepkg -sir
    ==> WARNING: Sudo can not be found. Will use su to acquire root privileges.
    ==> Determining latest svn revision...
    -> Version found: 7518
    ==> Making package: ardour3-svn 7518-1 (Wed Jul 28 09:41:51 CEST 2010)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Installing missing dependencies...
    Password:
    zsh:1: 1.39 not found
    ==> ERROR: 'pacman' failed to install missing dependencies.
    ==> WARNING: Failed to remove installed dependencies.
    Am I just still too much of a noob to see the obvious mistake I make or is makepkg really screwed up? Because in case I don't do anything wrong, I'll file a bug report asap!
    Last edited by Army (2010-07-28 07:43:05)

  • [solved] zsh, compinit and colors

    Hi all,
    I've just updated my zsh package to version 4.3.11-1 and now I can't run two of its built-in functions, namely compinit and colors.
    My .zshrc contains the following code:
    # rest of ~/.zshrc ...
    zstyle :compinstall filename '/home/andre/.local/.zshrc'
    autoload -U compinit
    compinit
    zstyle ':completion:*' completer _complete _match _approximate
    zstyle ':completion:*:match:*' original only
    zstyle ':completion:*:approximate:*' max-errors 1 numeric
    zstyle ':completion:*' menu select=5
    zstyle ':completion:*' squeeze-slashes true
    zstyle ':completion:*:*:kill:*' menu yes select
    zstyle ':completion:*:kill:*' force-list always
    zstyle ':completion:*:cd:*' ignore-parents parent pwd
    # colors array (e.g. $fg[blue])
    autoload colors
    colors
    # rest of ~/.zshrc ...
    But when I open up a terminal (or type any of these two functions) I get the messages:
    /home/ars/.zshrc:57: compinit: function definition file not found
    /home/ars/.zshrc:69: colors: function definition file not found
    I guess this isn't something very complex, but I couldn't find anything about it.
    TIA.
    Last edited by andre.ramaciotti (2010-12-22 00:15:09)

    So what do lines 57 and 69 of your .zshrc file say specificially?
    It's hard to tell what the line numbers are from what you posted, so.....
    Also are those functions actually in your /usr/share/zsh/<version number>/functions directory?
    colors appears to be in Misc and compinit appears to be in Completion in mine (version 4.3.10).

  • [Solved] zsh (vi-mode) and RPS1

    I'm a zsh (oh-my-zsh) user and vi-mode plugin works: https://github.com/robbyrussell/oh-my-z … plugin.zsh
    So I want to improve it:
    function zle-line-init zle-keymap-select {
    zle reset-prompt
    # change cursor color to reflect vicmd mode from http://andreasbwagner.tumblr.com/post/804629866/zsh-cursor-color-vi-mode
    zle-keymap-select () {
    if [ $TERM = "screen" ]; then
    if [ $KEYMAP = vicmd ]; then
    echo -ne '\033P\033]12;#FF3333\007\033\\'
    else
    echo -ne '\033P\033]12;#99FF33\007\033\\'
    fi
    elif [ $TERM != "linux" ]; then
    if [ $KEYMAP = vicmd ]; then
    echo -ne "\033]12;#FF3333\007"
    else
    echo -ne "\033]12;#99FF33\007"
    fi
    fi
    }; zle -N zle-keymap-select
    zle-line-init () {
    zle -K viins
    if [ $TERM = "screen" ]; then
    echo -ne '\033P\033]12;#99FF33\007\033\\'
    elif [ $TERM != "linux" ]; then
    echo -ne "\033]12;#99FF33\007"
    fi
    }; zle -N zle-line-init
    bindkey -v
    # if mode indicator wasn't setup by theme, define default
    if [[ "$MODE_INDICATOR" == "" ]]; then
    MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"
    fi
    function vi_mode_prompt_info() {
    echo "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
    # define right prompt, if it wasn't defined by a theme
    if [[ "$RPS1" == "" && "$RPROMPT" == "" ]]; then
    RPS1='$(vi_mode_prompt_info)'
    fi
    My theme did not defined the right prompt, so I'm expecting that "<<<" as RPS1 in vicmd mode, but for some odd reason it did not appeared, only the cursor color changed as expected. What is wrong with it?
    Last edited by irtigor (2011-06-17 21:35:59)

    You basically define function zle-line-init and zle-keymap-select to reset the prompt (your first 3 lines) and then you overwrite them to change the cursor colors so 'zle reset-prompt' is never called.

Maybe you are looking for

  • Locking issue in workflow with conseutive database update

    Dear Workflowers, We are in ECC 5.0 and release 6.40. We went live for SAP in February and we are currently using workflow in PLM module for DMS and ECM. We have been facing this locking issue randomly happened in our production and quality system. T

  • [Request] RubyTorrent

    http://benclarke.ca/rubytorrent/ RubyTorrentan easy to use torrent creator for Linux/UNIX Features     * Works in CLI mode, optionally with no output at all     * Comes with a GTK2 user interface for those more desktop-oriented     * AJAX HTML user i

  • Import and use custom Illustrator Symbol Library in Photoshop?

    I would like to import and use my own (project-specific) Illustrator Symbol Libraries in Photoshop Background info - I create BIG amounts of assets (for UI design) in Adobe Illustrator which I save as Symbols. - I store these symbols in a custom symb

  • Purchase group in MRp elements

    Hi gurus, When MRP is run PR is generating with a doc.type and purchase group Where from the doc type and purch group are picked by the system?

  • CS6 The selected file cannot be linked because its type (audio) does not match the original file's t

    I understand there is another posting in this forum with the same error happening on CS5 and their solution had something to do with Quicktime.  Mine has nothing to do with this. I ran into this exact same problem in CS6 and I found that the issue is