Ubuntu :: Permanently Keep Colored Shell Prompt?
Nov 3, 2010
After I succesfully instaled ubuntu 10.04 server, I applied
export PC1="[e[36;1m]u@[e[31;1m]h:w$ [e[32m"
and my prompt was nice and colorfull. But, when I make logout and login, my prompt appears all green ([e[32m.) After restart, nevertheless, it looses color settings (of course) and appears plain white.
What should I do in order to keep my prompt color settings permanently?
View 4 Replies
ADVERTISEMENT
Feb 12, 2011
I am working with Linux red hat project for my school projects. I am in command prompt and I see different colored letters. I have words in green and words in blue. I think the blue words are directories and the green ones are files is this true.
View 1 Replies
View Related
Feb 24, 2011
Regarding this task, I am able to print colored output in my putty sessions using tput or ASCI codes but whenever I tried to send that output through mail command to my outlook maillox, It always goes without colored. I need to produce those coloured output of the scripts as it is in mail.
View 1 Replies
View Related
Jun 4, 2010
permanently open BASH Shell open, on the side of the GUI. This would mean re-sizing the GUI... You would basically have a divider between the shell, and the GUI, so that you could resize either, depending on which you were working with more. For some programs, which open a new shell (aeroscript for example), that stays open behind the GUI, or has an ASCII "GUI", the program would simply open in a tab of the shell. The main shell would be dynamic; meaning that whenever you selected a new window in your GUI, the shell would automatically cd to that directory, in order to save some time. This would be especially useful when editing many files at once with a text editor such as Nano or VI. Alternatively, there could be a different shell tab open for each session of the file explorer. This however, could get quite cluttered. It's still a pretty raw idea. I did some Googling, and so far haven't come up with any similar ideas or actualities." This should also have options as to which shell you would like to install with it (BASH, KSH, ZSH, etc.)
View 1 Replies
View Related
Apr 8, 2010
I just added a new user to my ubuntu by:
useradd -gdevelopers -d/home/peter -m peter
when peter logs in (after I created a passwd for him) he doesn't see the shell as I do:
me:
adhg@server:~$
peter
$
ALSO, he can't user the TAB to move inside a folder (when you type cs /home/p and use tab to get /home/peter)
View 2 Replies
View Related
Jan 28, 2011
I have no user name or password and cannot log in. In recovery mode, I after I enter "drop to root shell prompt" my keyboard does not respond when I try to "give root password for maintenance" or try to enter "Control-D" at the blinking cursor.
View 3 Replies
View Related
Oct 30, 2010
I have an assignment that I have to change the prompt of shell through C.
View 11 Replies
View Related
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
Mar 7, 2010
Because I have to stare at my command prompt all the time on my computer, it should look at least half-decent, so I am trying to get it colored. The expected outcome is as seen on this site. I have the colors I want set in my .Xdefaults file, but they of course do not color my prompt.
[Code]....
View 1 Replies
View Related
Oct 26, 2010
Currently the terminal prompt looks like this:[karlis@karlis-desktop current_folder]$How can I minimize the prompt, so that it only shows $ or # without extra info in square brackets?I checked the preferences for the default Gnome-Terminal and Terminator - there are no settings for this. It is pretty hard to use terminal when working in directories with long names.
View 1 Replies
View Related
Jul 8, 2010
I have looked almost everywhere for how to change my default shell prompt. When I open my bash shell, the prompt is [fedora-dev@Fedora-Dev Documents]$. I would like it to open at fedora-dev@Fedora-Dev]$.
Can someone tell me where to change this at. I have looked in .bashrc, etc/profile, and environmental variables.
View 6 Replies
View Related
Oct 20, 2010
I need to create a shell script called 'custinfo' to prompt a customer to enter and display back the following: name, age, address, phone number, and product.
Below is what i have so far.
View 7 Replies
View Related
Jun 14, 2011
I would like to run some existing scripts and send it to a text file:
Note: 'script' is an exist shell script
Note: '/opt/2011jun15/my.db' auto generates everyday with only changes to the directory 2011jun15 base on the current date
currently i will need to run the script manually and make changes to the path below, change directory name 2011jun15 daily and text file new2011jun15.txt ./script -f /opt/2011jun15/my.db > new2011jun15.txt
Am i able to write a shell script to prompt me for a change of path for only '2011jun15' and 'new2011jun15.txt'?
It will be great if i can automate the whole process?
View 11 Replies
View Related
Aug 8, 2011
Whenever I go inside a directory in Linux, it shows the file path at prompt like:
root@vivek-HP-Pavilion-dv6-Notebook-PC:/var/www/abc/def/
How can I change it to show short names instead?
View 1 Replies
View Related
May 31, 2010
I have a problem when tried to upgrade my fedora 12 to fedora 13...
I run this command :
su -
yum update rpm ---- running success
yum -y update --- running success
After this, my laptop hang so i force to shutdown by pressed power button ! Next problem which is after i boot my laptop, it always shows me, GRUB prompt shell, GRUB > (commands GRUB) !
Code:
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>
I already run this command :
Code:
grub> find /grub/grub.conf
(hd0,5)
grub> root (hd0,5)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 30 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+30 p (hd0,5)/grub/stage2 /grub/menu
.lst"... succeeded
Done.
But when I reboot, it always shown me GRUB prompt shell.
View 7 Replies
View Related
Jan 13, 2010
I am getting more and more comfortable working with the shell, thus I would like to change its prompt color to my liking, as it will be easier for me to distinguish commands vs. outputs.
I've read a couple of instructions of how to change the .bashrc file and am familiar with what the codes in PS1 mean. Except, this file can be intimidating to newbie eyes.
Where exactly on the file is it that I need to make the change?
Here is what I am trying to do. I would like my prompt to like exactly like the prompt I use in Backtrack - which consist in two different colors, one for the host and another for the pwd. Here is what the Backtrack .bashrc file looks like:
# /etc/profile: This file contains system-wide defaults used by
# all Bourne (and related) shells.
# Set the values for some environment variables:
export MINICOM="-c on"
export MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/usr/local/share/man:/usr/bin/man:/usr/share/man
export HOSTNAME="`cat /etc/HOSTNAME`"
[Code]....
I also read that in order to have the same results when I log in as root, I will have to copy the modified .bashrc file into /root
View 8 Replies
View Related
May 30, 2011
I'm currently on a Linux machine and the shell prompt is showing me the last return value and number of executed commands (picture included, with these numbers shown in purple).
My own computer doesn't have this, how can I configure it? I'm using Xubunto, if more details are needed let me know -- I'm not much of a Linux user (I don't know what's relevant here).
View 3 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
Aug 7, 2010
How do I create a new mysql user and a mysql database at the shell prompt?
View 1 Replies
View Related
Jan 5, 2010
I have an annoying text color problem. I don't know what to change to fix it. I have played around with System->Preferences->Appearance to no avail. Here is the problem: I am getting very light colored text so only the currently selected item is readable. The funny thing is that in Nautilus, Firefox, Chrome, Amarok, etc.. it's fine. It seems to be in only some programs in boxes with selectable line items, but also in the area that displays status updates in FileZilla. So I'm not sure how to pinpoint the problem.
View 9 Replies
View Related
Jul 29, 2011
Even though the windows look pretty good, I would love to put them back to regular white. I don't know why they are black, or how to fix them. The picture should show what i mean.
View 2 Replies
View Related
Feb 13, 2010
I'm using Kubuntu 9.10 and I have a problem with my screen. I use the nvidia driver downloaded from the website, installed manually as I always do. I wanted to update it, but when I press ctr-alt-F1 to go to the console to stop kdm, I cannot see the usual black screen, but only a very strange blinking screen with lines and colours, strange symbols like $ & %. This happens for every F1 until F6, then F7 luckily brings me again on the graphical desktop.
I tried to install the drivers from the "Hardware drivers" manager in Kubuntu, but nothing changed. I don't know if it's an issue related to the kernel or to the driver. But I don't know how to update it without F1 console, and however it's a serious issue because I cannot do anything in case of desktop failure. The kernel is the last officially released (I don't use the proposed repos), that is 2.6.31-19.
View 1 Replies
View Related
May 7, 2011
I upgraded to Natty, some images appear in negative colours in Firefox, but not all. For example, photos on Facebook have negative colours, but not the thumbnail versions of the profile pictures do not. I have tried reinstalling Firefox in Synaptic to no avail. On another partition I have an installation of openSUSE 11.4 sharing the same /home (and therefore all Firefox settings etc), but no negative colours.
View 6 Replies
View Related
Sep 1, 2011
I notice the colored syntax and keywords in the terminal - the green, the blue etc? I did this in my machine a long time. Now I cannot trace back to how I did this. I need to do this in a new machine right now.
View 3 Replies
View Related
Jan 8, 2010
i have just installed skype for ubuntu beta version. when i put my mouse over icons it will bring up a text box but the words in it are very very light colored
View 1 Replies
View Related
Feb 2, 2011
I'm running Red Hat Linux 5.4 on HP DL580 server with 16 processors and 64 GB of RAM. I'm connecting to the server remotely through SSH. after entering the password, it takes time to return the command line, if I click ctrl+c during this time, I'll have the command line prompt but not the correct bash prompt (I have to run bash to pass to my correct prompt).I tried to install Apache on the server, ./configure took 4 hours to finish instead of 1 or two minutes, Oracle installation same behavior. Server Disks are mirrored using RAID controller.
View 6 Replies
View Related
Oct 27, 2009
I've been playing around with some themes recently, and a couple of the murrine themes have messed with my menu bars (this isn't ONLY occuring in firefox, but occurs in every window with a menu bar).Does anyone know how to remove the colored menu bar, and make it normal?
View 2 Replies
View Related
Sep 14, 2011
In my .bashrc I have the following lines to turn on colors for grep and ls alias ls='ls --color=auto'export GREP_OPTIONS='--color=auto'.I've tried changing the alias to export LS_OPTIONS='--color=auto' but that doesn't work.Is there anyway to use an export instead of alias. And are there actually any benefits to one way over the other?
View 2 Replies
View Related
Aug 11, 2010
how do you get color in the terminal like DSL in red-hat 9.
i have red-hat 9 running on a old 3dfx gaming pc I'd post a pic of the DSL terminal but the site would not let me
View 2 Replies
View Related
Sep 17, 2010
I have done a bunch of searches on this but the terms seem to get tangled in the more popular search of "colouring the output of grep / awk". I am trying to find a way to grep/awk through the output of a command to find text of a specific colour. The command's output has a range of colours signifying too many different things to specify using text, with colour being the only form of grouping.
View 5 Replies
View Related