Ubuntu :: Bash Broken, Lost Functionality In Terminal (gnome-terminal)?
Dec 10, 2010
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!
View 9 Replies
ADVERTISEMENT
Mar 17, 2010
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.
View 8 Replies
View Related
Feb 29, 2016
I mainly use debian jessie , recently i have installed daragora as my second os to get a feel of gnu/linux . the problem is that dragora uses bash , and it's commands are different from debian jessie terminal is there a way that i can use the same commands here in dragora?
View 4 Replies
View Related
Apr 8, 2010
I want to write a bash script which can open a new gnome-terminal window.
In that gnome-terminal window, it should goto a specific directory and edit a file using Vi Editor.
How is it possible to do that?
View 7 Replies
View Related
Nov 6, 2010
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.
View 2 Replies
View Related
Mar 13, 2011
$ execute_some_long_command <command is executing> <Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console>
How to let execute_some_long_command finish, but not execute inserted things?
View 1 Replies
View Related
Jan 24, 2011
gnome-terminal from the Debian squeeze does not use the 'default_size_columns' and 'default_size_rows' from the /apps/gnome-terminal/profiles/Default/ folder of gconf.
View 6 Replies
View Related
Mar 5, 2011
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).
View 2 Replies
View Related
Jul 21, 2010
Are x-terminal-emulator and gnome-terminal different in any way? I noticed when I when I put those commands in my terminal they both opened the gnome-terminal.
View 4 Replies
View Related
Aug 26, 2011
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.
View 3 Replies
View Related
May 3, 2010
Does somebody know how to disable (in RedHat) terminal auto correction functionality
View 3 Replies
View Related
Jun 5, 2011
I got a problem with terminal, since i'm really a noob with terminal i don't know how to fix it.Everytime i type in a command it shows for example:
-bash: ls: command not found
Even the basic commands don't work... just cd <directory> and those things works
View 9 Replies
View Related
Apr 30, 2010
I upgraded to Ubuntu 10.04 from 9.10.
The terminal and boot show nothing but some random colored pixels at the top.
I also saw the old grub menu on boot.
View 9 Replies
View Related
Apr 22, 2010
I just tried to install a game for Linux using some commands in the terminal and suddently all of the content of my desktop disappeared. I can't find any documents that was there using the search option.. Here are the command I used. the content was moved elsewhere and not deleted...!
mkdir -p ~/.Games/TripleA
cd ~/Desktop
unzip triplea_0_9_0_2_all_platforms.zip
cd triplea_0_9_0_2
mv * ~/.Games/TripleA
[URL]
View 1 Replies
View Related
Aug 27, 2010
i'm using LucidLynx. for some reason my console lost all colors. and i can't restore them.
View 8 Replies
View Related
Mar 5, 2011
I have been using Ubuntu for a week and getting on well with it. After reading reviews I decided to try Kubuntu. I installed it from the terminal and all seemed to go well. Now when I start the computer and select ubuntu it goes to a log in screen. I type in my user name and password and all I get is a terminal screen in the top left. If I close this I go through a 'broken screen' and back to the sign in.
View 1 Replies
View Related
Jul 15, 2010
how a ubuntu machine can ping another (I can see the ICMP request and response in wireshark) but in the terminal I get 100 % packet lost ? Same with the DNS requests ( I see the query to the DNS and the DNS is giving me the IP of the site) and internet connections at all. this machine is sharing it's internet connection and machines behind it have no problem with the internet. I tried to flush the iptables - same result. This thing occurred after a restart
View 2 Replies
View Related
Apr 29, 2011
I upgraded to 11.04. All went well, until I (stupidly) enable the desktop cube. And my launcher dissapeared. How do I get into terminal, and once there how do I dissable compiz? unity --reset?I tried CTRL-ALT-T and that doesn't workCTRL-ALT-F1 brings up a screen that aks me to log in but won't accept my login info.
View 6 Replies
View Related
Nov 24, 2010
I had a program print lot of data on the terminal. The terminal scrolled over and now I cannot see all the data. Some of it is lost. How do I get it back ?
View 3 Replies
View Related
Apr 29, 2010
In KDE's Konsole, I can do the following from the terminal:
dcop kwin KWinInterface currentDesktop
And it will tell me which desktop my terminal is connected to ( per [URL])
How can I determine what desktop number the current gnome terminal in a gnome session is connected to?
View 1 Replies
View Related
Jul 17, 2011
Im having a lot of trouble getting my t mobile dongle to work. I have looked through most of the other threads about resolving the problem. when I see the answer about typing comands into the terminal I get lost and dont know what to do... I now have ubuntu 10.04 and 11.04 duel boot on laptop (hp nx6325). Cant seem to get it work on either virsion. I have tryed to chance passwords as other threads have sugested.
Am now trying (and failing) with this thread http://ubuntuforums.org/showthread.php?t=1147685 I have downloaded the mode switch and extracted it to the desktop. In the above thread it say "3) Open the Terminal, and go to the location of the decompressed file and execute"
View 3 Replies
View Related
Feb 15, 2010
terminal i open i have no history; the history is kept only in that terminal and is gone when i exit the terminal.If I count lines:as a user:
Code:
$ wc -l .bash_history
wc: .bash_history: Permission denied
[code]....
View 2 Replies
View Related
Apr 20, 2011
I wanted to change my $PATH and my prompt, had some trouble with setting and exporting the variables and found that the shell was csh instead of the bash which I expected. I worked around it by creating a .cshrc which calls bash but don't know what caused the change. I've got as far as seeing that the gnome-terminal command kicks it all off from the Applications>System Tools menu but what happens between there and the terminal popping up?
View 3 Replies
View Related
Mar 18, 2010
Im used to using nautilus within centos but have recently just got a VPS and quickly realising that using a KDE is unacceptable in this environment. Although I do find it so much quicker doing things like folder permissions in KDE rather than typing it all out in the terminal? Everyone I speak to says, use the terminal and I should learn this way as opposed to using the KDE, but theres certain things I just dont get
How is it possible to make quick changes to scripts and viewing them in a browser etc , without a mouse or using KDE? and only using a terminal?? I am wondering how to develop websites just using the terminal?
How can it be quicker to type out/view permissions etc in the terminal when its instant and just a few clicks in the KDE?
View 3 Replies
View Related
May 30, 2010
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
View 4 Replies
View Related
Jul 10, 2010
I'm writing a bash script to move files around based on various bits of metadata. For a few reasons, this script will be run regularly both from the terminal, and from the nautilus-scripts folder ("graphically", if you will). What I'm stumped on is having the script defer outputs based on which mode the script is running in. For example, how can I have the script know whether to echo error statements, or pump them out to zenity based on the method of invocation?
View 2 Replies
View Related
Apr 13, 2011
I'm trying to make a cheap bash script that will log me into a remote terminal. When I run the script, it prompts me for a password. I'd like to include the password entry into the bash script. How do I do this?
View 2 Replies
View Related
Aug 9, 2011
Trying to write a script for desktop launchers that are adaptable to screen resolution. Ideally, the program should:
1. Determine screen resolution:
if "a" use xdotool options window size 1305 x 869 px and move to 135,0
if "b" use xdotool options window size 1545 x 1019 px and move to 135,0
2. Check if program running:
if no, open program, and use "a" or "b" placement options, focus window
if yes, focus window
3. Close script and leave program open (if possible).
Problems arise when trying to use the script on programs that run from and hog the terminal
(e.g. brasero, gcalctool, nautilus)
Here the script will load the program, and nothing else (probably because it still occupies the terminal as it runs)
Code:
gcalctool && xdotool search "calculator" windowmove 135 0
This next command will cause the program to load, move, but it keeps focusing itself like xdotool is running the windowmove function constantly - it keeps focusing itself until script stopped.
Code:
gcalctool & xdotool search "calculator" windowmove 135 0
This had the same effect as the above code, but seems to work as a conditional subscript running when the process is running in the terminal - it just goes infinitely.
Code:
while [1] ; do xdotool search "calculator" windowmove 135 0 done exit
Is there some kind of "if, then" or "while, do" or some kind of conditional I can put in to the script ensure the window is moved only once if the program is running within the terminal? Is there a way to remove the program from the terminal from the script once it's been called?
View 5 Replies
View Related
May 7, 2011
I finally upgraded my desktop from 9.10 to 10.04. I do not feel that this was a step forward; a lot of little things just don't work. For example, when shutting down with 9.10, it automatically shuts down in 60 seconds. With 10.04, it waits *forever* for a 2nd mouse click.
The USB drive - there used to be an option to un-mount it without removing it. That's gone now, and I'm guessing that I will find more of these as the days go on. And all the colors have been removed from the panel applets. Not really a functionality issue, but it is a negative to the user experience.
So my question is: How can I restore these features? Is there a configuration somewhere I can edit?
View 3 Replies
View Related
Oct 15, 2010
I was working on something important in 11.2 and did a "zypper up" in the terminal in the background. I wasn't paying that much attention to it, I believe it was an update to 11.3. After returning to the computer after about one hour the windows were behaving strangely and the machine wasn't very responsive. I decided to reboot. Now at login I have neither mouse nor keyboard. I have switched the keyboard to PS2 model, no difference. If someone could help me with booting to run level 3 from the grub menu perhaps I could change some settings there to make everything work. I really regret doing the update. It would be very important for me to be able to get back in to machine with spending as little time as possible on this. Could I reverse the update? This machine is very important for me and my family for their daily communication, but currently I have very little time to fix this. My quick fix was to install Kubuntu 10.10 so I could resume working, but I would really need to get back in to 11.2.
View 9 Replies
View Related