Changes recenly in the bash.bashrc?

so, i'm in some sort situation i wasn't able to fix in the last hours (hours bc of rebooting).. the last yaourt -Syua , full system upgrade left me with nothing but
(none) (user) (or was it "(none) (tty1)? I'm writing this from memory)
i made the mistake to not always care about .pacnews, so i have no automerge/vimmerge or whatever program at hand, also not vim because i have no access to my systen apart from archlivecd > mount the partition my system is on.
the recent .pacnews (fstab,gshadow,bash.bashrc,rc.conf) had no visible changes for me, diff (oldfile) (file.pacnew) was no big help. so the only file with visible changes was bash.bashrc.
so i did try and error, inserting lines of the old bash.bashrc, but mo success.
what i don't think is problem related is that i excluded the KDE-* package from updates but i still use kdm for starting i3 / scrotwm, i haven't got the time up to now to get ridd of kdm.
the source of the problem must be /etc/bash.bashrc or did I miss some updated file? find / *pacnew (or sth llike that) did uotput only the 4 files in /etc
a lot of searching forums/searchmachines didn't help. i know this sounds somehow 'greenhornish' but i have no access to the computer or access to output of cmds or some files, also sorry for constant lowercase letters but i'm typing this on my n900.
/add: keyboard at login shell doesn't work either, every reboot is pushing button.
Last edited by gpunkt (2011-04-16 09:21:10)

gpunkt wrote:- was about to delete the contents of the above thread ....
No. Never do that. It makes for nonsensical threads and is also against forum rules.

Similar Messages

  • How to change the bash prompt?

    When I open a shell, I get as prompt:
    user@myhost:~$
    Maybe it comes from my former Debian installation (I kept /home when installing Arch), because:
    $ echo $PS1
    ${debian_chroot:+($debian_chroot)}\u@\h:\w\$
    When I su to root, I get:
    bash-3.2#
    What do I have to do in order to get something like:
    root@myhost:/home/user#
    Browsing the Internet, I found that it has to do with /etc/profiles, but I did not manage to find out the specific steps.
    Thank you.

    Well, I renamed .bashrc (in order to keep it as a backup) in my home folder and then I got the bash-3.2$ prompt. For some reason, the PS1 in /etc/profile.bash is not taken.
    If I just su, I got bash-3.2#. If I "su -", I got [root@myhost ~]#. Hypothesis: /etc/profile.bash is only observed by the root environment. May this be right?
    So I edited the .bashrc that Debian had left, and I had to place it both as /home/user/.bashrc and /root/.bashrc. I copy it at the end. See that I made the prompt coloured when being root.
    Still, if I did "su -" or "su username -", or logged-in in text-mode as root, I got the profile that is on /etc/profile.bash So I renamed /etc/profile.bash and copied that same file /root/.bashrc as /etc/profile.bash. I hope not to have committed any insanity , otherwise please let me know.
    Thank you.
    # ~/.bashrc: executed by bash(1) for non-login shells.
    # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
    # for examples
    # If not running interactively, don't do anything
    [ -z "$PS1" ] && return
    # don't put duplicate lines in the history. See bash(1) for more options
    export HISTCONTROL=ignoredups
    # check the window size after each command and, if necessary,
    # update the values of LINES and COLUMNS.
    shopt -s checkwinsize
    # make less more friendly for non-text input files, see lesspipe(1)
    [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
    ## set variable identifying the chroot you work in (used in the prompt below)
    #if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    # debian_chroot=$(cat /etc/debian_chroot)
    #fi
    # set a fancy prompt (non-color, unless we know we "want" color)
    #case "$TERM" in
    #xterm-color)
    # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    # PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    #esac
    # Comment in the above and uncomment this below for a color prompt
    #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ## If this is an xterm set the title to user@host:dir
    #case "$TERM" in
    #xterm*|rxvt*)
    # PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
    #esac
    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.
    #if [ -f ~/.bash_aliases ]; then
    # . ~/.bash_aliases
    #fi
    # If id command returns zero, you've root access.
    if [ $(id -u) -eq 0 ];
    then # you are root, set colour prompt
    # see codes for colours on http://bash-hackers.org/wiki/doku.php/scripting/terminalcodes
    PS1="\\[$(tput setaf 5)\\][\\u@\\h:\\w]# \\[$(tput sgr0)\\]"
    else # normal
    PS1="[\\u@\\h:\\w]$ "
    fi
    # enable color support of ls and also add handy aliases
    if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'
    fi
    # some more ls aliases
    #alias ll='ls -l'
    #alias la='ls -A'
    #alias l='ls -CF'
    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
    # sources /etc/bash.bashrc).
    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi

  • [Solved]Terminals won't start after merging bash.bashrc

    Hi all,
    As the topic states, after merging the files using meld, none of my terminals will start. I've never modified bash.bashrc and seeing that the developers decided to change it, I'll like to get this working.
    Current bash.bashrc
    # /etc/bash.bashrc
    # If not running interactively, don't do anything
    [[ $- != *i* ]] && return
    PS1='[\u@\h \W]\$ '
    PS2='> '
    PS3='> '
    PS4='+ '
    case ${TERM} in
    xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    screen)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    esac
    [ -r /etc/bash_completion ] && . /etc/bash_completion
    [ -r /etc/bash.bashrc.local ] && . /etc/bash.bashrc.local
    Thanks in advance!
    EDIT: This is embarrassing... A crappy alias in my .bashrc was causing this. Sorry for wasting your time
    Last edited by Jodell (2011-02-22 02:40:25)

    startx at the command line.
    I just tried Xorg -reconfigure again, adding the AutoAddDevices = false option - still doesn't work, giving the error about config/hal. Without the option, it just goes back to the terminal with no errors.
    Pacman log says the only thing upgraded today (after pacman) was the kernel, nvidia, and kernel-firmware. cdfs conflicted with the new kernel, so I removed it. Then I rebooted, and X stopped working. Downgrading those back again doesn't fix it. I don't get it.
    >>EDIT:
    Okay - what does cdfs have to do with Xorg???? This makes no sense. I downgraded the kernel pkgs and nvidia again, and this time installed cdfs, which I forgot to do last time. Now X starts. I don't really get it.
    Maybe hal in xfce or some plugin needs to use cdfs for something?? I don't really know - but I'm just glad it's working. I guess I'll file a bug report for cdfs so it can be built to the new kernel and hold off upgrading until it's fixed with 2.6.31. sheesh! too weird.
    Last edited by userlander (2009-10-10 23:27:36)

  • How can i make the bash promt for the root user red ?

    After an Epic battle with Gnome3 and FGLRX i finnaly gave up and installed openbox instead :-)
    I use the xterm terminal and i would like to change the color of the root bash to red but i cannot get this done for some reason.
    I tried several suggestion in /etc/bash.bashrc but none work properly.
    I can change the prompt just fine i just can't get it to recognize the root user and give him a diffirent color.
    All i am looking todo is change the prompt from "dennis@hostname ~]$" to "Dennis" or "Root" and i wish root to be in red.
    Does anyone have this setup down and can ya share the bashrc file with me ? does anyone have suggestion for me ?

    Dennis Beekman wrote:is there no way todo it from /etc/bash.bashrc ? this would apply to all users at once... wich would be much nicer.
    I source this from my /etc/bash.bashrc: http://paste.xinu.at/5KkTu/bash Not exactly what you want, but you get the idea. (I just noticed though that the 'export' statements in all lines are probably incorrect and should be omitted.)
    EDIT: Yes, just tested, sed -i 's|export ||g' prompt.sh, please.
    EDIT2: Also, EXTRAPROMPT is not used in this simplified example, omit that too.
    Last edited by brain0 (2011-08-04 15:44:15)

  • Bash 4.2.008-1 does not source /etc/bash.bashrc.local

    I don't know if this was intended change or not but it seems that /etc/bash.bashrc.local is no longer sourced by default.  All the global alias that I had set there are no longer being set.  Was /etc/bash.bashrc.local depreciated (if so where is the new place for such aliases) or is this a bug?

    Allan wrote:/etc/bash.bashrc does not source /etc/bash.bashrc.local by default.  You can either put your alias in /etc/bash.bashrc directly or do the sourcing yourself.
    Hmmm, you are right http://projects.archlinux.org/svntogit/ … 657ba94213
    Last edited by karol (2011-05-01 00:03:02)

  • Writing a bash.bashrc?

    In debian and ubuntu you could have a file called bash.bashrc in /etc which (I think) was the only file launched when a terminal instance is launched. You usually (it's normally configured during install) set it to look for a ~/.bashrc and launches it if it's there. Can I do that in Arch? What do I need to have it executing?
    Will this little "if" clause do it (my bash isn't very good :oops: ).
    if [ -x "~/.bashrc" ]; then
    bash ~/.bashrc
    fi
    /Richard

    If you're concerned about new accounts and not having to re-create your settings for each person's </code>~/.bashrc</code>, then just alter the skeleton file in <code>/etc/skel/.bashrc</code> and that will get copied over whenever a new account is created.
    If you're worried about previously made accounts, you could handle it a number of ways, but the easiest would probably be a shell script.  AFAIK, I don't think there's a globally loaded bashrc file, but I could be wrong.

  • Using /etc/bash.bashrc to set system-wide alias

    Hi,
    I would like to set some system-side aliases and from what I read /etc/bash.bashrc is the correct place to put them.
    However, it seems that the root account doesn't load this file. 
    What is the correct way to define system-wide aliases?
    Thanks.

    To be more specific, the aliases are not visible when I use a login shell i.e. 'su -'.
    According this explanation http://stefaanlippens.net/bashrc_and_others this is correct. 
    So, do I need to duplicate the aliases in /etc/profile so they are visible from login shells?  Or there is a way to define system-wide aliases for
    login and non-login shells?
    Thx.

  • Is there a patch out for the bash bug (CVE 2014-6271)?

    Is there a patch out for the bash bug (CVE 2014-6271)? I saw one for Oracle Linux, so I hope there's one for Solaris as well.

    Hi,
    another approach could be to just build a custom bash package yourself using
    the available changes published here:
    https://java.net/projects/solaris-userland/sources/gate/show/components/bash
    That's the build infrastructure and source we use to build the official Solaris 11
    IPS packages.
    Regards,
    Ronald

  • Change mode of the excise invoice is showing zero excise values

    H ifriends,
    The change mode of the excise invoice is showing zero excise values.....and the same is reflected in the ARE1
    While creating the excise invoice,its showing BEd/Ed and Shed and after saving,if i check the doc the values are shown aero...
    Thanks
    Sasi

    s

  • How can i add an already existing iphone to a different itunes account without changing anything on the actual phone...just updating it?

    I have an iphone synced to my iTunes account.  But I need to add another used/existing iphone to my account to update it.  I do not want to sync my emails/contacts/apps, etc. from my computer/iTunes to this new iPhone.  This 2nd iPhone already has existing apps and is in use.
    Is there any way that I can do this without changing anything on the existing iPhone?  All I need to do is update it to the iOS 5.0.1. 
    Thanks!

    Thanks so much for the response!  You have been helpful and quick! 
    It wasn't my phone, hence the reason we didn't want to share/take each other's content (apps, contacts, music, photos, etc.).  But the owner's phone hadn't been able to update because of a computer crash/no access to a stable computer.  So, I just wasn't sure if we could do an update without sharing content. 
    But you most definitely answered my question!  So, thank you!

  • Error: Windows Vista failed to start. A recent hardware or software change might be the cause

    PLEASE HELP!
    My Lenovo SL500 is not working at all - I get error: "Windows Vista failed to start. A recent hardware or software change might be the cause"
    I tried the following on my Lenovo:
    Windows repair menu = "windows cannot be repaired"
    Lenovo Rescue and Repair 
    Rescued my files from Hard-drive (copied to external hdd)
    Restore System = Failed
    Diagnose hardware = HDD passes all tests
    Don't know what else to do with = Boot from another device ? Access BIOS?
    Because I do not have the windows vista install disks
    I purchased and downloaded the recovery disks from neosmart.net
    The neosmart windows vista recovery disks DO NOT WORK = Error is "Unable to find any valid Windows partitions on this computer".
    The Hard-drive exists because I was able to back-up files from HD through (Lenovo Rescue & Recovery Rescue files). So there is a hard-drive.
    I don't know what to do next? 
    Last resort is to Factory Restore via either the Lenovo R&R or Windows Vista Recovery Disks (neosmart)?
    Will I still have windows? 
    PLEASE HELP!

    Hi, Josemne
    Yes, if you can restore the system through Rescue & Recovery, then you will still have WIndows on your machine, but all your files will be deleted from the hard drive. Luckily, you have already saved those files elsewhere. I would recommend trying to restore the system and see if that works.
    Best,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Why is it that it would take a very long time [if ever] to change or adjust the tempo of a loop in the audio track when i set it to adjust regions to locators? Until now the spinning wheel of death is still very much spinning. thanks for any help.   Is th

    Why is it that it would take a very long time [if ever] to change or adjust the tempo of a loop in the audio track when i set it to adjust regions to locators? Until now the spinning wheel of death is still very much spinning. thanks for any help.
    Is there another way to adjust tempo of loops the faster way, any other technique?

    No clue why the final processes have suddenly started to take so long. Two things I'd try: a) capture from an older tape to see if some problem with the new tape is at fault.  And b) check the health of your RAM and the hard drive.
    The red frame sounds a bit like a glitch we used to have in OnLocation (actually in its predecessor HDV Rack) which was caused by a partial GOP. But that was a product of HDV Rack recording from the live video stream. It turned out that HDV cameras intentionally interrupt the data stream for an instant upon starting to record--specifically to avoid recording a partial GOP to tape. So my gut says that the tape has partial GOPs at the points where you stopped/started recording.

  • Downloaded loops not changing tempo with the project.

    I have all sorts of loops that I've downloaded in various formats.....wav, aiff, caf, etc. With many of these, when I insert them into a project, the loop retains its original tempo instead of stretching or shrinking to match the tempo of the project. Is there a way to convert these loops or change a setting somewhere that will cause them to change tempo as the tempo of the project changes?

    Hi, Just Re-record the loop to any empty track, and Voila....Now it will follw tempo change.
    Logic only recognizes material recorded in the session or apple loops...so just re-record any imported material and it will follow your tempo and pitch change.

  • The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, cont

    I have a user on an iMac 10.6 connected to our domain.  She uses Outlook web access for email on our exchange server.  Last week she received the following message which is randomly preventing her from sending emails.  She claims no attachment was involved in the original email when this all started.  I have not been able to look at her account as she is out of the office but maybe someone else dealt with this issue.  I realize this may not be Mac related but thought I'd give it a try.  She did say it occurred once over two days while working on a PC but it continued over the past weekend.
    If an internal user tries to send a message with infected attachment using Outlook Web Access, it may report the following error message: The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, contact technical support for your organization.
    This is because F-Secure Anti-Virus for Microsoft Exchange has detected a virus in the attachment. If the user tries to send the message again, the message will be sent but without the attachment. At the same time a blank message with an attachment named "Attachment_information.txt" will remain in the user's Drafts folder. The "Attachment_information.txt" will contain information about the virus detected in the message.

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • How to Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

Maybe you are looking for