The Terminal won't start.

Solved
elmarokkino Posted messages 27 Status Member -  
 initials 76 -
Hello,

I've been on Ubuntu for barely a month. I tried to customize my terminal (in edit>profile...)
and like an idiot, I checked something like "execute command on terminal startup" and I entered the command, if I remember correctly, "linuxlogo -l" (that's the command that normally gives me info about my PC: cpu, ram, etc...). So I closed and reopened the terminal:

and that's where the bug happens --> the terminal window launches and closes immediately..

So I would like to know what I should modify in ".bashrc"

thanks in advance! ! >_
Configuration: Linux, Ubuntu 8.10 Firefox 3.0.9

21 answers

  • 1
  • 2
lugicha
 
I also had the same problem when customizing my terminal. Here's what I found on the net that worked:
In Ubuntu, you have the Applications menu, then Accessories, then LXterminal that you launch.
You type gconf-editor

/apps/gnome-terminal/profiles/Default/custom_command

There, you uncheck custom_command
That's it.
2
bryan69003
 
Hello everyone,
I have a problem similar to the one you resolved.
I wanted to change my shell from bash to tcsh. I modified the .bashrc file but I made a syntax error. Now I can't access the terminal.
How can I fix this?
Best regards
0
initials 76 > bryan69003
 
Hello ;)

You repair by entering a virtual console (ctrl+alt+f1)

See you later
--
If you want to go quickly, go alone. If you want to go far, go together.
0
lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
 
Re,

I would also like you to display the commands you type.
Otherwise, go through gconf-editor and check in /apps/gnome-terminal/profiles/Default

--
106485010510997108
2
lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
 
Re,
Press ALT+F2 and in the window that opens type gconf-editor
--
106485010510997108
3
elmarokkino Posted messages 27 Status Member 1
 
WOOoohoo ! ! ! !
Thank you guys for the help, especially lami20j

It worked: I deleted the command linux_logo -l thanks to gconf-editor
then as soon as I opened the terminal, I disabled "run a custom command"

and so I launched the terminal and "IT WORKS ! ! !"

thanks again
1
elmarokkino Posted messages 27 Status Member 1
 
Thank you initials 76
I tried and retried but nothing changes
I even copied the ".bashrc" from another user on the PC into my ".bashrc" and still nothing

So if there’s another solution, I’m all ears

And thank you anyway..
0
initials 76
 
Re ;)

"I even copied the ".bashrc" from another user on the PC into my ".bashrc" and nothing happened either"


Did you run:

source $HOME/.bashrc


right after?


--
If you want to go quickly, go alone. If you want to go far, go together.
0
elmarokkino Posted messages 27 Status Member 1
 
I just did it but it still doesn't change..
0
bob031 Posted messages 8228 Status Member 473
 
Hello,

is it the .bashrc file that has been modified or the .bash_profile file, or even the /etc/profile file????

--
a penguin on the ice cap!
0
initials 76
 
Try in the virtual console:

sudo dpkg-reconfigure gnome-terminal


or

sudo dpkg-reconfigure -phigh gnome-terminal


good luck
--
If you want to go quickly, go alone. If you want to go far, go together.
0
elmarokkino Posted messages 27 Status Member 1
 
I just executed the two commands and then restarted the PC (just in case)

and now the terminal window doesn't even open like before (because before it would appear for less than a second and then disappear) -->> it doesn't open at all now

and thanks again for your attention
..
0
lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
 
Hi,

Did you go to the Title and Command tab to type linuxlogo -l ?
--
106485010510997108
0
elmarokkino Posted messages 27 Status Member 1
 
what is "title and command"
yes, I have already executed it in the terminal and in one of the virtual consoles (Ctrl+Alt+F1)
0
elmarokkino Posted messages 27 Status Member 1
 
et en fait c linux_logo -l
0
lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
 
Re,

Show the result of
 gconftool-2 --get /apps/gnome-terminal/profiles/Default/custom_command


--
106485010510997108
0
elmarokkino Posted messages 27 Status Member 1
 
```bash
linux_logo -l
```
0
lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
 
Hi,

Is this the result of my order?!
--
106485010510997108
0
elmarokkino Posted messages 27 Status Member 1
 
Can I know what this command is supposed to do??!
please..
0
initials 76 > elmarokkino Posted messages 27 Status Member
 
Well, it displays the custom command you entered in your terminal profile ;)

Good catch lami20j :)

You can disable it by going through gconf-editor graphically and following the same shortcut,
what I don't understand is that by purging the configuration with aptitude (post 1) this configuration still remained :(( ???

For the shell recipe, I'll let lami20j handle it, I know that going through gconf-editor works.
--
If you want to go quickly, go alone. If you want to go far, go together.
0
elmarokkino Posted messages 27 Status Member 1
 
completely.
0
lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
 
Re,

Type
gconftool-2 -t bool -s /apps/gnome-terminal/profiles/Default/use_custom_command false
and then try to open gnome-terminal
--
106485010510997108
0
elmarokkino Posted messages 27 Status Member 1
 
still nothing ....T^T
0
lami20j Posted messages 21506 Registration date   Status Moderator, Security Contributor Last intervention   3 571
 
Re,
gconftool-2 -t string -s /apps/gnome-terminal/profiles/Default/custom_command "" gconftool-2 -t bool -s /apps/gnome-terminal/profiles/Default/use_custom_command false gconftool-2 --unset /apps/gnome-terminal/profiles/Default/custom_command 
and display again the result of
 gconftool-2 --get /apps/gnome-terminal/profiles/Default/custom_command


--
106485010510997108
0
elmarokkino Posted messages 27 Status Member 1
 
it always displays >> linux_logo -l <<
0
elmarokkino Posted messages 27 Status Member 1
 
I'm sorry, it may sound silly, but how do I start gconf-editor (I don't know where it is)
because, as I mentioned earlier, I've been using Linux for less than a month

;-)
0
  • 1
  • 2