Aterm now opens with source /etc/profile

I was in aterm when I did source /etc/profile, but now whenever I open aterm I get the results of source /etc/profile. Xterm doesn't do this, only aterm. Why is it doing this and how can I fix it?

just add "source /etc/profile" (without the quotes) to .bashrc (thats located in ur home directory)

Similar Messages

  • Cannot source /etc/profile from within the PKGBUILD anymore

    Hi,
    Short story: the command
    source /etc/profile
    within the build() section of my PKGBUILD now returns a build() error. It used to work before, is there a reason for this? Should it be executed in another section than build()? (Note source /etc/profile works properly in console, within the build directory)
    Long story:
    I need to use $JAVA_HOME in my PKGBUILD (to patch a lua source file with the current JDK path, which can be detected with $JAVA_HOME. Patching is done with a sed command). However, if java-environment is installed for the first time (as a makedepends) along with my package, then I need to source /etc/profile first to set the $JAVA_HOME environment variable, before being able to use it within my build() section. Otherwise it is not set yet and building fails.
    Many thanks for your help.
    Last edited by zebulon (2012-12-28 14:57:23)

    Hi,
    Many thanks for the advice. I was unclear though: I maintain the aacskeys package in AUR, not the lua package. However, the file I am patching in aacskeys is named premake.lua, used for the project file generator premake.sourceforge.net.
    I'll try your first suggestion, since this is the only one which may work without touching the system. Another alternative would be to directly source the /etc/profile.d/jdk.sh file. EDIT: nope, because there could be openjdk6.sh instead. I really need to be able to source the correct file. The maintainer of opencascade uses:
    if [ -z $JAVA_HOME ]; then
    [ -e /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
    [ -e /etc/profile.d/jdk.sh ] && source /etc/profile.d/jdk.sh
    fi
    which is efficacious but less generic.
    Besides, is it normal that we get this error code, since the Arch documentation only recommends to set LANG in /etc/locale.conf? SHould I report it as a bug or request a design change for /etc/profile.d/locale.sh there (as suggested in your (b) entry)? I am asking this because my PKGBUILD is not the only one to use this trick, and this problem breaks them all.
    Thanks.
    Last edited by zebulon (2012-12-30 06:14:58)

  • When I open a file it normally opens in 12.5% stated on the header. For some reason, it now opens with 100+% on the header and is much smaller in size. How do I go back to the first option I noted? I use AP to work on blueprints for measuring so the accur

    When I open a file it normally opens in 12.5% stated on the header. For some reason, it now opens with 100+% on the header and is much smaller in size. How do I go back to the first option I noted? I use AP to work on blueprints for measuring so the accuracy matters. Any direction would be greatly appreciated. Thank you.

    Are the image all the same size the % files open into a document seems to vary with the number of pixels the image being opened has.  Check the Image size.

  • In 10.4, an internet audio file now opens with Quicktime?

    Many thanks in advance for your attention.
    When I was using 10.3 (and before), when clicking on an audio file on the internet, RealPlayer 9 automatically opened.
    One could see the % of the file being downloaded and then (quickly), one would automatically hear the audio clip.
    Most often, I am talking about audio clips available on NPR (National Public Radio).
    Since I have installed 10.4 (now at 10.4.3), when I click on the same audio file, now Quicktime opens instead. And then nothing happens. Quicktime opens, a Quicktime Player is seen, but I hear nothing and nothing tells me whether the audio file is being downloaded, is ready to be listened to, or anything.
    With Quicktime 7, is RealPlayer now supposedly superfluous?
    - Ross

    Many thanks QuickTimeKirk,
    But think I need more step-by-step directions.
    1. I have RealPlayer (9) already.
    2. MIME settings in QuickTime Preference Pane. Set it to use RealPlayer for the Format .SMIL How?
    3. In the QuickTime Preference Pane, there is a box for .SMIL, one box only, under "Miscellaneous." It IS unchecked already. But NPR still opens with QuickTime.
    4. By "Change your Mac to use Real Player to open .SMIL files - ." I assume you mean, I will be on NPR, download a QT file and then try to change it to a RealPlayer file under "Get Info?"
    - Ross

  • Open with External Editor Profile sRGB instead of Adobe RGB

    Hi,
    I know in the export presets I can adjust what profile aperture will use. But what about when I open with External Editor. I like doing this because I can open my image in PhotoShop make my adjustments then save it and have aperture manage my files. But when I do this it opens the file with Adobe RGB, my lab and I sometimes want Adobe RGB. How can I change this without exporting the file and reimporting the file. Thanks.

    Aperture uses a color space larger than AdobeRGB and sRGB. When an image is sent to Photoshop is converted to a 16bit AdobeRGB PSD file in order to get the largest color space to work with.
    sRGB would be necessary when exporting to the web and/or send it to a printer that requieres that color profile, and that's why you have it in the export presets.

  • .wmv files now open with premier

    Hi:
    I have CS2. Just in the last week, any .wmv file that I download now wants to open with Premier! Of course, I have to start a new project and when I do, there isn;'t any file to open. I have looked in the download manager and it is downloaded, ready to play, but premier can't import it. Media Player can't find it either. I have unchecked the file types with MP and then re linked them, no luck. I think MS did an update, but I haven't changed any file associations with premier or QT or any other player. Anyone else having this problem or heard of it? I have looked online and can't find anything relating to this. it is very frustrating not to be able to look at amy .wmv files. TIA

    You need to change the file association for.wmv.
    Explorer Window>Folder options>file types - edit

  • Startup scripts in rc3.d not sourcing /etc/profile

    I'm trying to set some global parameters for the entire system e.g. JAVA_HOME
    I have placed these in /etc/profile
    If I login in as whoever /etc/profile is sourced.
    However when the system boots up /etc/profile is not sourced before a startup script e.g. /etc/rc3.d/S99xxxx is called
    Why is this and where can I set global parameters so that they are visible in the startup scripts and for anyone logging in etc.?

    /etc/profile (and $HOME/.profile) are not normally sourced by non-interactive shell invocations.
    Modify the script to source it explicitly if that's what you want.
    Darren

  • Safari is now opening with multiple windows. Not sure what changed in my settings. I prefer Safari to open with a single homepage, which I've always set to Yahoo. Any help?

    Safari is has begun opening with multiple windows. Not sure how this change happened. I prefer Safari to open with a single homepage, which I've always set to Yahoo. Any suggestions?

    Quit the application. Force quit if necessary.
    Relaunch it by holding down the shift key and clicking its icon in the Dock. From the menu bar, select
    Safari ▹ Preferences... ▹ General ▹ New windows open with: Homepage

  • Help with pico /etc/profile

    I have redhat 7.3 and i install the sdk. Its in usr/java/j2sdk1.4.1/bin
    Where exactly do I put the line path so every user can use the java/javac etc commands anywhere. I tried. but it dont work. Im I clicked on save settings, but im not sure that saves it. I was trying to follow the other thread instructions but everyone seems kinda different. Im very new to linux by the way. Think i installed it by accident :P
    # /etc/profile
    # System wide environment and startup programs, for login setup
    # Functions and aliases go in /etc/bashrc
    pathmunge () {
    if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
    if [ "$2" = "after" ] ; then
    PATH="$PATH:/usr/java/j2sdk1.4.0/bin"
    else
    PATH=$1:$PATH
    fi
    fi
    # Path manipulation
    if [ `id -u` = 0 ]; then
    pathmunge /sbin
    pathmunge /usr/sbin

    It seems to me that when ".plist" files contain references to other files or folders, most require full paths and they won't accept anything to represent a generic "home". Either that, or items are represented by "alias" data, referring to a specific file, which would be completely independent of paths. That of course means that any sort of "template" account must avoid containing references to items within the "home" folder because the template will contain references to the original items, not their counterparts in the new user's home. Note that things like the "sidebar" in a regular account or the "Dock" in a "Simple Finder" do contain shortcuts to items within the "home" folder, but these aren't generated from ".plist" files in the template but rather are generated on the fly by "Finder" during login.
    In the case of the default download location for "Safari", I think it defaults to the user's "Desktop" in the absence of a ".plist" file. However, if the user changes the location, then a ".plist" file is created at that point. It would also appear that the default download location is set to the user's "Desktop" if the default Safari "home page" is changed, which also causes the same file to be created. The file appears to be: "~/Library/Preferences/com.apple.internetconfigpriv.plist"
    I haven't tested this to see if it would work, but it might be possible to modify your existing template to remove the reference to the "download folder" while retaining the desired Safari "home page" using something along these lines:<pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">sudo defaults delete /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.internetconfigpriv DownloadFolder</pre>

  • HT202225 I keep getting pop ups on my iMac for the first time in 6 years after one of my kids tried to watch football through crichd tv. safari now opens with smart search engine rather than google every time i try to open a new web page.

    Ever since one of my kids tried to watch football on a website called crichd tv I keep getting pop us come up like Mackeeper and every time i try to open a web page it comes up with Smartsearch rather than google which is my preferred search engine in preferences. I have blocked extensions and changed homepage to google but this Smartsearch keeps overriding. Also a thing called MacKeeper keeps popping up I have followed the instructions to uninstall but the file it says to move to trash from the Applications folder but it simply isn't there or anywhere else. The file to uninstall Smartsearch is also not where they say it is in Library>frameworks>
    Very frustrating from going from a perfectly working system to a now very frustrating and annoying pop ups coming uo after every time i open a new web page.
    Any help or assistance in this matter would be very much appreciated.
    Russ

    You (or your kids) inadvertently installed adware. You do not need to download or install anything to fix it.
    Any tips on how to stop it from happening?
    Yes. To learn how to avoid it in the future read How to install adware.
    If you require them, Apple's removal instructions are linked in the Recovery Procedure near the end of that document. Read and follow them carefully. Pay particular attention to the easily overlooked passages directing you to restart your Mac when required.

  • Somehow firefox now opens with my windows mail. Each time I enter my password it asks if I want to save it so I don't have to retype my login and password each time. I hit yes and when I leave firefox it doesn't keep my password. I would like to either

    I recently went to open my windows live mail,which normally opens because it has my login and password saved. Now it opens in firefox and I have to retype my login and password everytime I open my mail. I would like when I open my mail not to have to retype my login and password as this is why I have it set up in the original windows mail anyway. So I have attempted to live with this problem by adjusting the options to save my password and when I close out of firefox and try to reopen it later in the day I have to retype my login and password again.
    == This happened ==
    Every time Firefox opened
    == about a month ago

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and Preferences are not saved

  • Firefox now opens with Crawler as the browser how do I return to normal firefox home page withthe google search box?

    When I opened firefox the search page just showed Mozilla firefox and had a search inptu boxwih google underneath to show the search engine being used. Suddenly I opened firefox and the page is showing lots of text and is Crawler.com. I have tried to change it back to firefox as it was before but without success. I even uninstalled and reinstalled forefox but it still opensCrawler.com and not mozilla firefox.
    Can anyone explain why this has happened and where Crawler.cm came from as I have not downloaded any software with the name crawler, and how can return to the set up that I am familiar wih and prefer.

    Try resetting your homepage. <br />
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page

  • FF 20.0 now opens with tabs that I closed in previous sessions even when I close without checking the open tabs box. How to fix?

    OS 10.7.5; FF 20.0

    Firefox will automatically resume your previous session if it detects that it crashed. I'm not sure how to troubleshoot that on Mac, but you could check out the "Firefox hangs when you quit it" part of this article: [[Firefox hangs or is not responding - How to fix]].
    You might also want to review your home page setting as some tabs might appear there that weren't intended to open every time you start Firefox:
    Firefox > Preferences > General

  • /etc/profile isn't sourced on startx

    the command
    source /etc/profile
    isn't used on startx
    and now all paths and locales aren't set, has anyone an idea whats wrong here?
    if i login on console it behaves normal. But if i login on X with qingy or slim it doesn't work.
    It also doesn't work if i startx on a console with /etc/profile sourced.
    i hope someone can help me.
    so long
    ukognos

    but if i run X, there's no locale set, or environment variable, so how can i set that at startup of X?

  • /etc/profile doesn't get sourced at start of session

    Hello to everyone :D. I've been using Windows my entire life until January when someone recommended me Ubuntu. I tried (and loved it) for some months but got sick of the lack of control, the pre-installed packages and the incorporation of Unity in 11.04, so went all out for Arch.
    It took me 2-whole-days to install everything correctly (because of issues related with the PC rather than Arch itself) and I've been configuring it bit by bit in the last two weeks (wasted my whole winter vacations on it, but it was worth it :P), ran through a lot of trouble which I've been (somehow) able to overcome almost completely by just using the Wikia (and Googling through old forum posts). I also learned a whole lot about Linux in that time and I'm very happy with my new system :D. So a thanks a lot to all the community for the great documentation you've developed, it really made a complete Linux-newbie (with a whole lot of patience :P) get a working system all by himself which is saying a lot.
    ------------------------------------------------------------------START READING HERE TO SKIP PERSONAL INTRO :P ---------------------------------------------------------------------
    However right now I'm having a couple of minor issues which don't prevent me from enjoying the system but I would rather fix in order to have a clean system (and avoid further trouble in the future). I have LXDE installed with Slim as a login manager which I start through inittab in run level 5 to start X (relevant files attached at the end of the post). The system was working perfectly but I noticed that my session wasn't being registered by ConsoleKit (it didn't appear in the "who" command which was a problem for some scripts I was building) so I read the wikia and added the following lines at "slim.conf":
    sessionstart_cmd    /usr/bin/sessreg -a -l $DISPLAY %user
    sessionstop_cmd     /usr/bin/sessreg -d -l $DISPLAY %user
    Which happily made the session appear at the "who" command as I needed. However some days after that, for no apparent reason (actually me touching config files probably), my PATH environment variable was wrong after booting (just had the /bin and /usr/bin on it, not /sbin or /usr/sbin). This just happens when I boot directly to X, when booting from a terminal the variable value was correct.
    After some research (and adding debugging commands in the initialization scripts) I concluded that my "/etc/profile" script wasn't getting ran when I boot directly to X. In order to bypass this problem temporally I made a (absolutely horrible and temporal) patch by adding the line "source /etc/profile" at ".xinitrc" which sourced the file and gave me the right value for the PATH variable. However by doing it seems I ruined the former problem and my session doesn't appear at the "who" command again :S (by removing it again, the session appears again but the PATH variable is wrong). So I've been searching exactly when /etc/profile is sourced and, apparently, it's when the "login" command is executed (which I guess is done by either the LXDE session or Slim itself).
    Since none of these packages got updates when the problem appeared I'm pretty sure it must have been one of my editions of the config files. So I leave the ones I think are relevant to the issue (and the ones that I tinkered it with the most).
    If anyone has the time to point me in the right direction I would greatly appreciate it:
    /etc/rc.conf: http://pastebin.com/qd5xYYsT
    /etc/inittab: http://pastebin.com/M1h60Hym
    /etc/slim.conf: http://pastebin.com/iaRqya07
    /etc/profile: http://pastebin.com/JLtNCMtn
    ~/.xinitrc: http://pastebin.com/XGrNuhpv
    My rc.local file is completely blank and rc.sysinit and rc.multi haven't been modified from their default values. If you need any more files, logs or any kind of experiment to gather more info just let me know and I'll post it as soon as I read it.
    Thanks a lot in advance :-).
    Last edited by facucosta (2011-07-27 08:29:50)

    There is quite some confusion about the different startup files For real terminal work you can check the bash manual. Graphical login managers however do not always follow these rules even though Slim should read /etc/profile as /etc/slim.conf seems to invoke bash with --login... You could try to put the settings in /etc/environment (see the arch wiki). There might also be a slim specific bug
    --edit--
    On second look line 35 seems odd in your slim.conf. You could try to change it to:
    login_cmd           exec /bin/sh --login ~/.xinitrc %session
    Last edited by FarmerF (2011-07-27 11:10:15)

Maybe you are looking for

  • HT1349 My Ipod wont open any of my apps, help!

    So when i tried to use my ipod today, it wouldnt open mostly all of my apps. It would open a few. I connected it to my sisters computer yesterday to charge, but she has an Iphone with an Itunes account on her computer, and it gave me all of her apps.

  • Select WBS elements with the extension u201C.DRLu201D (i.e. DL000001.DRLu201D)

    Hi All. In my report requirement  I need to get the data with Extn .DRL like, How to get in report. and excluding cost elements 5000994-5000999 like this. Please help me out. Thanks in advance. Durga

  • Using Formula in Pages Table (Syntax error)

    I thought this would be simple, but I get a syntax error: My Table Date Start Date End Bytes Redo Rate (Mbps) 20/06/2010 11:00:00 PM 21/06/2010 03:00:00 AM 850,648,576 0 21/06/2010 11:00:00 PM 22/06/2010 03:00:00 AM 561,487,360 0.4456 22/06/2010 11:0

  • SimpleButton, simple problem I think

    I've been modifying a slideshow class I've found on the web and need a little direction. Everything is working fine except the button I'm trying to add. I want a button that covers part of the stage and I've created that. I just cant seem to figure o

  • Error while installing NW04s

    Hi, We are currently in the process of installing a BI 7.0 (NW04s) system. Its stuck at the Install software units phase: Error: Aborted: development component 'caf/eu/es/portalcontent'/'sap.com'/'MAIN_APL70VAL_C'/'1077422'/'2', grouped by software c