Ubuntu :: Customizing Terminal - Changing Prompt (Maverick / Gnome)
Jun 9, 2011
To flesh out my *nix capability, I create new identities and give them the functionality that I liked in previous ones. I've added the "open terminal here" script, which I find invaluable. Now I want to change the prompt. This is what the terminal does right now:
ITo run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
elliot@dan:/media/KINGSTON$
- Where do I go to shorten the prompt dramatically? I can't really think of a situation where a shorter prompt isn't better or color matters.
- How do I adios the 2 sentences that want to appear every time I open this terminal? I'm aware what sudo does.
- Instead, I would like the equivalent of a pwd command. Where would I put that?
- How do I get the output of this terminal to be simultaneously saved in a file. I do so much copying and pasting out of these terminals that I'm looking for easier ways to do it.
View 2 Replies
ADVERTISEMENT
Jul 28, 2010
I changed the default SUSE prompt setting by modifying the shell variable PS1 to display the following information:
u : the username of the current user
h : the hostname up to the first '.'
w : the current working directory, with $HOME abbreviated with a tilde
I used export command to setup a new shell prompt:
export PS1="[u@h: w]$ " To add colors to the shell prompt and make a regular user prompt blue I used the following command syntax:export PS1="e[0;34m[u@h: w]$ e[m "
[Code]...
View 3 Replies
View Related
May 26, 2010
Since upgrading ubuntu boots to a prompt rather than logging into gnome. has anyone run into this? what can I do to fix this?
I recently upgraded from Ubuntu 9.10 to Ubuntu 10.4.
does anyone know the command to start gnome from the prompt?
View 4 Replies
View Related
Jun 9, 2010
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.
Q/Problem:
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?
View 14 Replies
View Related
Jul 26, 2010
Rather than having my text aligned to the left side of the window, I was wondering if there's a way to align it to the center?
View 8 Replies
View Related
Mar 24, 2010
I was attempting to change the bash shell color prompt on my RHEL / CentOS 5 server. When I login as my user account on my server I can see my 'PS1':
Code:
[carlos@srv1 ~]$ echo $PS1
[u@h W]$
I want to change my PS1 to:
PS1='[e[1;32m][u@h W]$[e[0m] '
When I look in ~/.bashrc, I don't see my 'PS1' line so I am confused and wondering how I do this on RHEL / CentOS systems.
View 2 Replies
View Related
May 21, 2011
I need to write a bash script that will allow me to manage my "virtual network" (in reality just a bunch of directories and files). I need to obtain something like : I have my own command 'connect'. We can use it in two different modes: user and admin.If I type 'connect adashiu virtual_machine_name, computer will ask about password, if password is correct he will change a prompt to :
adashiu_at_virtual_machine_name >
after that user can start to use commands reserved only for user mode.Analogically with admin mode: prompt 'admin >' and administrator can only use bunch of commands reserved for him.
View 1 Replies
View Related
Sep 13, 2010
i have changed my monitor from crt to lcd and find the fonts to be a little out of focus,
so far i have achieved native resolution of 1280x1024 in gnome which is great! i have configured grub by adding the vga=xxx appropraite for native resolution of my monitor which is great !.........but herein lay the problem, everything is so small and stuck up in the left corner , so small that i cant read it very well.
how do i increase the font sizes at cmd prompt without changing the resolution ? dare i say ........in windows i would increase the DPI , how do i achieve this in centos ?
View 7 Replies
View Related
Jan 1, 2010
How do I get a terminal prompt?
View 6 Replies
View Related
Apr 27, 2010
I was using ffmpeg and mencoder making a video of some jpgs of my grandson when something weird happened.I entered a chmod command and then all I got was ">" on the left side of the terminal.I closed the terminal and reopened it and got back to where I was at and ended up with the same thing.I can not enter exit or anything else. I just have to close it.Rebooting didn't even help it. Now I cannot enter other commands like an ffmpeg command.I was able to cd to where I wanted to go, but when I got there and tried about any command I ended up with a ">" prompt.
View 6 Replies
View Related
Oct 1, 2010
It appears to me that with the default .bashrc the user, computer, and working directory are shown in the title. If so, I see no need for that info in the prompt (space waster).
If this is always true, how do I change my prompt to simply "$" and the root prompt to simply "#"?
View 4 Replies
View Related
Oct 29, 2010
I want to open another terminal from typing a command to one terminal.
can anyone tell me a command for this..
View 5 Replies
View Related
Feb 7, 2011
I program in C with geany and two terminals open; one to compile and one to test the compiled program. The thing is that it's hard to the eyes to keep track of the messages and such when the terminal prompt is too long:
Code:
manos@manos-desktop:/media/Iomega1TB/Documents/UNI/Datastrukturer och Algoritmer/labbar/lab1$
How can I change that to something minimal? I don't want a permanent solution as all other times I want to be aware of the current path.
View 3 Replies
View Related
Oct 16, 2010
Since the upgrade to Xubuntu 10.10, I'm having issues with Xfce4-terminal. When I use aptitude, the home and end keys don't scroll the list to the top or bottom. With vim, it generates input of adding a new line with F or H on it above the current line. Ctrl+arrow left/right also generate unwanted signals/characters.This does not happen with Kubuntu or Ubuntu and when I install Gnome-terminal and use that, everything works as you expect. This even happens on the live environment. I don't want to use gnome-terminal, as it pulls in more packages than I need and the Xfce4-terminal should just work.
Another thing that happens is that when I read a man page or close vim or aptitude, it behaves as if it's in a TTY: the text it just showed stays on screen or it clears the bunch in the current view and puts the prompt at the bottom. It should be that the application just closes and you get the prompt back the way it was before you started to read the man page for example.It is purely a terminal emulator problem. Does anyone have a solution for these issues?
View 5 Replies
View Related
Jun 30, 2010
I can boot up ubuntu but it's just showing the default background, the login prompt won't come up. What do I do? Startx doesn't work in the terminal (ctrl-alt F1), it gives an error. I can log in as root (recovery mode) and startx works and the desktop comes up though.
View 5 Replies
View Related
Apr 23, 2011
I tested 11.04 for a couple of days, and it was (my opinion, of course,) terrible! I want to try out Gnome Shell, but I'd rather do so on my 10.10 install, instead of having to mess with the mess of 11.04. Anybody know of a PPA that works with 10.10?
View 4 Replies
View Related
Mar 22, 2010
If u are usibg debaian or its derivative we can tweak out the terminal prompt. For example:
Quote:
If you are interested in tweaking. open up the .bashrc file in your home directory and add these lines
Quote:
replace this with :-) or any other thingy u can think of. 34 represents colour, in our case it is red. The result will be
Quote:
This was seen in a book i read. if u have any doubt at all please post. i'm stll thinking of how i can remove the line saying "ubuntu@ubuntu" and just have "~$" at the prompt.
View 2 Replies
View Related
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
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
Apr 3, 2010
I am creating a bash script file, and I want to know if there is a yes/no command for Gnome? Specifically, if I accidentally click the batch file, I want it to prompt me first. I a clutch I could use gksudo, but that's really not what I'm looking for.
View 2 Replies
View Related
Jul 31, 2010
Ive just done a fresh install of F13, after an install of AMD Cat 10.7 screwed up my system.Although everything works, ive just noticed that when I open a terminal, instead of my username prompt, I now have "bash-4.1$".Firstly is this a problem? and if so how can I get my normal prompt back?
View 4 Replies
View Related
Jul 15, 2010
Something unfortunate just happened. I was editing the bash file from my terminal and changed a source. After this I was no longer able to input commands for interpreting in the terminal.
View 13 Replies
View Related
Nov 7, 2010
What has happened to the option to display names of each workspace on the lower panel bar?
Normally it was just a case of 'right click' any of the workspace and selecting 'Preferences', setting number of workspaces required and then using the name listbox to name each to desired title. In Maverick only the number of work places can be set; the list of names facility has been deleted from display. The current workspace name displays in the tooltip display as "workspace n", but there seems to be no easy way to change this title.
In 'gconf-editor' under schemas>apps>workspace_switcher_applet>prefs>displ ay_workspace_names it only gives the system message "...can't be edited..."
View 4 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
Oct 12, 2010
Had a couple of problems installing Maverick from USB last night and figured I should share in case someone else finds themselves in the same situation.Hardware: HP 4510s 1.20GHz Duo CPUStart-out OS: Karmic 9.10Downloaded 32-bit ISO of Maverick 10.10Formatted USB drive to FAT32 using Gparted as Startup Disk Creator would not format it for me for some reasonRan Startup Disk Creator on formatted driveRebooted, opted to boot from USBAfter the boot menu but before being given any setup-related options from the Ubuntu installer, I got the following error: Quote:
SYSLINUX copyright info (I forget exact wording)
Unknown keyword in configuration file
boot: _
[code]...
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
Sep 24, 2010
I'm using Nomachine NX client for Windows to remotely connect to my Ubuntu.Every now and then I experience a strange phenomena: the text in the prompt of all open terminal windows becomes black, so it can't be viewed over the black background. Typed commands are also black, but the results are in normal colors. So I can run stuff, but can't see what I'm typing...After I close all open terminal windows and start a new terminal window, everything goes back to normal.
View 1 Replies
View Related
Nov 22, 2010
I just got a Tablet PC, and I installed Ubuntu on it. But, problem is, I tried to install 10.10, and it would install properly, but it wouldn't load, just brought up the GRUB loader with a terminal prompt. I ended up having to install 7.04, and it works great. but I'd like to upgrade it.
View 9 Replies
View Related
Aug 9, 2010
mojo@mojo:~/Downloads$ sudo apt-get install gnome-shell
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following packages have unmet dependencies: gnome-shell : Depends: mutter but it is not going to be installed it asks for mutter, yet mutter is already installed. I think it asks for different version of mutter.
View 2 Replies
View Related
Jan 14, 2011
after the upgrade to maverick, gnome-session-save doesn't save applications on shutdown or logout as it did on Lucid.I've noticed the following things:
On Lucid, if I had a stopped job in a shell, the system refused to logout or shutdown, showing a confirmation window. On Maverick, the CPU goes to 100% and then the computer shuts down; on reboot, no application is saved
On Maverick, if there are NO stopped jobs in a shell, I can logout cleanly but only a few applications are saved (eg. terminal, firefox) but others aren't (eg. empathy,evolution) I've checked "Automatically remember application on exit" in "Session management" menu.
View 3 Replies
View Related