Ubuntu :: Gnome-terminal Not A Login Shell / Why Is So?
Mar 3, 2011
I've seen lots of posts all over the Internet that advise users to check the "Run command as a login shell" checkbox in GNOME Terminal under Edit->Profile Preferences->Title and Command.
This makes gnome-terminal run bash/csh/tcsh/ksh as a login shell, which it does not do by default. In turn, running gnome-terminal as a login shell sources the system and user login scripts. This sets up things like colored ls etc.
It seems like gnome-terminal should be a login shell by default. Why isn't it? I've never seen a good explanation of why gnome-terminal isn't a login shell. The "Run command as a login shell" checkbox must be unchecked by default for some good reason, right?
i've finally got a NIX environment...yipee! Installed opensuse 11.2 in a dual boot with windoze with no problem whatsoever. unfortunately, my NIX skills are sadly dated or maybe things have changed or both. in any case, i have a rather trivial problem that i have not been able to figure out.
i go to gnome terminal to get to the bash shell, no problem except when i do things like cat, less and so on. the commands do what they do then when done the last line output is "some text" and "(END)" - at the completion of the command it does not return to the bash shell. i've tried ctrl-everything, enter, escape, actually all keystrokes i can think of to get back to the bash shell...no luck. man and docs have not been helpful or i simply missed the answer (i'm a little saturated at this point).the only thing i've been able to do to solve my dilema is close the terminal an start a new instance, not elegant but works.
I just installed GS following the instructions here:[URL]... and the classic way of getting GS to start at login (adding gnome-shell --replace in start up applications) doesnt work.
To start GS now we have to use the command "~/gnome-shell/source/gnome-shell/src/gnome-shell --replace" via the terminal adding that to start up doesnt work either, does anyone know how to get GS to start at login?
I've been having some problems and was trying to diagnose them. My graphics were going wonky at the BIOS stage (spots, letters changing colour, and even the very first screen of nVidia details swapping "version" for "versikn") so I went to try a new graphics card. Not long before I got my new graphics card, Gnome 3 really started playing up and did the "oops, a problem occurred" at every login. I created a new account and got the same behaviour. I swapped my GeForce 7950 out for a GeForce 7300 that I scrounged up. The spots and changing letters disappeared, so I knew that at least part of the issue was the graphics and not something else (e.g. motherboard or memory). I still got the "Ooops" screen, so I knew that wasn't caused by a bad response from the graphics card or anything.
I've since nuked the install (which started out as 11.4 RC1 with GNOME3:STABLE) and re-installed from a new download of the 11.4 DVD plus GNOME3:STABLE (in accordance with these instructions) with all of the updates. I can now log in without the "Ooops", but if I am using the proprietary nVidia drivers then the display won't repaint after a few seconds (long enough for Gnome Do to appear, but not long long enough for me to do anything else) - clicking on Activities or on the menu in the top-right doesn't seem to do anything. If I Ctrl+Alt+F1 then Ctrl+Alt+F7 to skip to a terminal and back then the cursor is still there, but the screen is blank.
If I swap to the Nouveau drivers then I can log in to Gnome Shell and it continues to render, but even simple things like dialogs folding down from the top of their parent window can grind along and take a few seconds to finish painting. That is on the 7300 rather than the 7950, but I haven't swapped the cards back as I'm still suspicious of how healthy the 7950 is. I've not seen anything that appears relevant in the XOrg log, but given that X will reboot and isn't completely hung then it could be a repaint bug more than an error. I've tried all of this with clean accounts with the same results, so it wouldn't seem to be any of the standard .gconf/.dconf etc folders.
I've created a brand new CentOS 5.4 (Final) 64bit machine AMI on Amazon EC2. This was based off an existing image. I was able to follow the wiki to add NX server. I am using WIN XP desktop for NX client.
I can connect to the EC2 machine and get the GNOME desktop fine. I see the usual CentOS desktop and poke around.
I expected to open the Terminal window and get a shell prompt to su into root user (I need to be root to install some software that needs GUI). I do not want to install this from my plain SSH connection to EC2 (hence the NX server etc.).
When I open the Terminal window, all I get is the NX>105 prompt. I need to get to a shell prompt so I can su into root. For life of me, I cannot get around this prompt (I looked at NX documentation too). Note that this is a prompt NOT on client but on the remote machine. I do not need this as I'm already authenticated and logged in to remote GNOME desktop.
Obviously the TERMINAL is running some NX start up script (I've no idea which one). If there is some other way to sudo into root?
I installed 11.3 last week and eventually got nvidia drivers working. I was quite happy how most things were progressing, then the temptation to upgrade to 11.4 got too much I upgraded today (online, not dvd) and everything went well. On rebooting the desktop came up as normal and all was good. I installed nvidia and got that working ok. I then installed Gnome-Shell and couldn't figure out how to get it working. I've been using Fedora recently and the Gnome-Shell option is available at Login. I then discovered the gnome-shell --replace terminal command and I tried it. It seemed to load ok, but as I had used the terminal, when I closed the terminal it seems like compiz crashed. I lost all windows borders and nothing was usable. I REISUB'd and started again. On reboot I got a CLI login prompt. After logging in I tried startx, to no avail. I then tried gdm start and got to the desktop again (not gnome-shell). I Alt+F2'd and ran gnome-shell --replace again and all was good - except no network I rebooted again, and got the CLI again. Went through it all again and tried to configure network (wireless) no good. I then connected an ethernet cable and tried again. That worked, but I'm not sure why - I didn't think anything was downloaded. Anyway wireless now works ok - even on reboot. However I'm still getting dumped to the CLI login on restarts.
I've seen a lot of posts related to problems with GNOME 3 shell and nvidia drivers but I have yet to find anything that seems to fix my problem. At this point, the laptop, a Dell D850, boots just fine all the way to the gdm login screen. When I log in, the background and menus initialize and the mouse can be moved around, but nothing works---I can't click on anything, Alt-F1 does nothing, and I have to switch to a VT and shut-down X. I've uninstalled all things nvidia and now I have a working laptop, so long as I use Classic with Compiz.
I upgraded two other hosts, but both had ATI graphics cards; they worked without a hitch. I'm regretting having decided to upgrade this laptop
I have a 'special script' in my .bashrc file, which I want to be performed only at Login. When I open a terminal (through a gnome launcher <gnome-terminal> as the command) it unfortunately sources .bashrc.
Hence the opening of the terminal runs the 'special script' again.
How can I instruct .bashrc not to do something except when and only when I am logging in? I found a segment of code which is supposed to do what I want but I am not sure of how it works.
Will this work to put my 'special script' in to ensure that it only runs when it is a login script and not when it is a simple launcher terminal opening?
Every time I start Ubuntu, I set up an ssh session to a server. In order to automate this I made an entry in startup programs like this:/usr/bin/gnome-terminal -e '/usr/bin/ssh firstname.lastname@example.org'Nothing happens when I log in, and I've checked that the command works.
I'm unable to reset using either the reset option in gnome shell or the command using a terminal. When I select it the shell exits and displays the graphic "exploding" and then it just sits there. Shutdown works fine; just no reset. Any ideas? I've installed from the DVD. I booted the live CD and it resets just fine so I know it's no my hardware
Is there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.
(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)
Linux-goers. I did some research on this, but I am still fairly new to Linux. In Ubuntu 10.10 (Maverick), I accidentally overwrote my "/bin/bash" file. Dude, using "sudo" with a small typo can work disasters. Bash is now broken in the Terminal (gnome-terminal). Terminal itself still works fine, technically, but bash is still hosed/broken. Here is what I did to try to fix it: Booted from Ubuntu 10.10 live CD. Mounted my Ubuntu partition and manually copied the good/fresh "bash" file onto my hard drive. Verified copy was successful. Didn't help, as you see. Reinstalled "gnome-terminal" using synaptic package manager. Tried to reinstall bash via synaptic, it failed with error, "E: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb: subprocess new pre-removal script returned error exit status 2"
In Terminal, all basic commands work as far as I can tell. ("ls", "pwd", navigation, etc.) Here are some problems:My "username@computername" does not display in the prompt; only the $ sign. Bash keyboard shortcuts such as uparrow and tab do not work. Instead, each inserts a key code. I can't even move the cursor left/right. Aliases (a function of bash and .bashrc) are broken, of course. My sanity level decreases when I use Terminal now. For what it's worth, even with "sudo" I get a "permission denied" error when trying to run Google Chrome! I read something about a ".bashrc" file being a possible problem, but I don't know how to make it work, or the file's proper locations in Ubuntu 10.10. Is there something I can do with a "make" or "apt-get install" command or something?? Could this simply be a permissions problem? Is the link to "/bin/bash", "/bin/sh", or a ".bashrc" file broken? Guide me, oh Linux gurus.
P.S. I always wondered what exactly bash was and how it was different from the basic terminal. LoL, this is an excellent way to demonstrate the difference, and I WANT IT BACK!
I'm using 10.04, and gnome-terminal GNOME Terminal 2.30.2 . I have irssi running on screen session on remote host. And I've been struggling for quite many days to configure it to produce either visual feedback or ring terminal's bell when I receive a private message or one of those that are highlighted.
My compiz settings window in General tab has 'Audible bell' checked.
My GNOME terminal has 'Terminal bell' checked.
I also added 'set bell-style audible' to my ~/.inputrc
And I also tried to manually load pcspkr module into my kernel.
No of the above helped or at least I haven't been able to notice any difference.
I also used some commands for irssi to produce bell sign.
is there some wiki page on GNOME or Fedora that list which graphics cards work without problems on Fedora 15 with GNOME Shell? I have tried 3 older cards and they all failed, so I would like to share this info with others so people know which cards to avoid if they want to use full features of GNOME 3 via GNOME Shell.
Please excuse my ignorance, but I need to get it straight. I've been reading and trying to find out more about these three new desktop environments, but still am rather confused. I have had Unity on my netbook for a couple of months now and know it inside out (more or less by now). The problem is: what is the main difference between Gnome 3 and Gnome Shell?
To my understanding Gnome 3 will be a continuation of the panelled Gnome we are so used to? But then I read the panels will be gone forever, so I'm confused again Gnome Shell is somewhat similar-looking to Unity, but I haven't had a chance to try it properly yet.
Is there a terminal emulator which works well in an Ubuntu desktop and provides the following features which Mac OS X's Terminal application has? Re-wrapping text when the window is resized.A Clear¯ command which clears scrollback (as the shell clear does not) and does not clear the cursor's line (typically containing a prompt).
I'm hoping someone can help me out.I made configurations changes to/etc/pam.d/system-auth and /etc/pam.d/login. When these files are configured the way they are, I can't login and/or I can't login in the GUI interface and a terminal. Contents of /etc/pam.d/login
I recently did a fresh install of Ubuntu 10.10 64-bit. After installing the ATI drivers, I had to tweak GRUB to get the nice splash screen back during boot. Then, I installed drivers for my TV Tuner (Hauppauge 2250). The card works fine. However, my boot now goes splash screen to a terminal login for around 10 sec where system messages also show up to the GUI Login screen. I was wondering if there was anyway to return to a normal boot.
I find xcompmgr more than adequate for making a desktop look pretty modern, and I don't like the more extravagentCompiz gimmicks - but there is one thing that irritates when using xcompmgr which someone here might have worked round.
Rounded window borders don't draw and redraw properly when using the Terminal (gnome-terminal and the LXDE and Xfce ones) or system monitor and moving them from their default place. You get this little white botch at the corners. I'm not massively technical and I'm ambivalent about how much more I want to learn as I have plenty of creative outlets already, but I would like to solve this. Somehow xcompmgr is treating these programs as a different class? It's capable of drawing the window borders properly as it is just these two programs that get botched. Possibly this doesn't get noticed as maybe people usually use xcompmgr with openbox and LXDE and their square window borders. I did do a search but there was nothing matching what I saw.
I have installed Ubuntu 9.10 on my Dell GX240. I have severe difficulty logging in. If I try to login on GNOME or GNOME fail safe mode , I just cant get in . I keep getting the login screen again. I am able to go into terminal mode. Sometimes I have to try upto 100 times to login in GNOME or failsafe mode. Once I am in everything is fine. Is there a way to do some troublshooting? Also transfer to USB sticks is very slow - sometimes as slow as 1MB per min. Is this normal with Ubuntu?
I'm running CentOS 5.4 on i386 machine with 2.6.18-194.3.1.el5Whenever I login into Gnome, a gnome-termial window comes up. Instantly title says root@localhost before settling with user@localhost with current directory as ~/Downloads. Only happens with my particular user account (normal user), not with root as I tried. I also have KDE, Xfce, Fluxbox as other option at login, but terminal only shows up when I log into Gnome (not kde, xfce or fluxbox)I've done and
1. cronetab -e Nothing there. 2. Don't have ~/.xinitrc ~/.session 3. Nothing in ~/.bashrc or ~/.bash_profile 4. Nothing in /etc/rc.local
I'm seeing really bad user login format under a standard installation and am wondering why ubuntu does this as default. I have noticed that the graphical login for gnome sizes itself to accommodate a user's exact password length. This indicates to me that somewhere on the unencrypted part of a standard installation with user encryption contains at least some indication of the content of the password length which seems a security flaw even if not a complete hole, it majorly reduces the number of attempts a cracker would have to cycle through.
And that's assuming that *only* the length is contained. Furthermore it seems that it would be MUCH better to simply display the number of characters entered into the pw field and allowing the gui to expand itself from an fixed size as the field is filled out so the the user still receives visual feedback for entering characters. Either a simple character count display should be entered into the field or a 10 dot to new line so that one can visually quickly count the number enter by multiplying from a 10base graphical observation.
when I get into the login page, I can only see the background and the login box in the middle of the page just turns whole white and keeps flashing. no response for any clicks. I was force to ctrl+alt+F1 to switch to init 1 to do my work. But I still want to use my graphical desktop either KDE or Gnome is ok. I am using gnome.