Ubuntu :: Bash File Color Decoding?

Apr 15, 2011

Is there a place in my 10.04 OS that tells me the meaning of the colors of files? I have a folder that I moved to my home directory when i upgraded from 9.10 to 10.04. In that folder was a .tar.gz file that was green - I then deleted that file and ran another compression command - same files, same everything, but when I ran it this time, it is now red. Any ideas. I'd like to know what the color indication is on any given file.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Bash Color In A Script Not Working?

Mar 6, 2011

This works (meaning it changes color) from CLI...echo -e 'e[1;36m' testCyanBut if I put that same exact line in a script, the result is not colored, and it displays the actual command on screen like this...-e 'e[1;36m' testCyanThe script is obviously executing. Why isn't it interpreting the backslash command in the script?

View 2 Replies View Related

Red Hat :: Changing Bash Color Prompt?

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

Fedora :: Color Prompts Screws Bash?

Aug 7, 2010

I got a good one!I colorized my prompt as follow; Green for normal user, Red for root:

Root .bashrc:
PS1=e[0;31m[ ][u@h:w][!]\$ e[m"
User .bashrc:
PS1="e[0;37m[ ][u@h:w][!]\$ e[m"
Which gives:

[Code]...

View 7 Replies View Related

Programming :: Get Pixel Color From Screen In Bash Script?

Nov 25, 2010

I would like to get the pixel color from screen at (320,240) and if the color = 0xFFFFFFFF , i would like to execute a command.

View 3 Replies View Related

Red Hat / Fedora :: Change Input/Output Color In Bash?

Jun 5, 2009

When in the interactive envirment, my Input and Output are all mess-up. So i want to color the Input and Output with two different colors.. so i can figure them out..

View 1 Replies View Related

Programming :: Changing Color Of Output From Bash Script?

Apr 22, 2010

I am writing a bash script that utilizes the output of another script (which I will refer to as script#2.) Script#2 is not owned by me, I cannot modify it. All of the output from script#2 is blue, which makes it difficult for me to read.

I would like to have the output of it changed to grey. Is there a way I can do that in my script? A command I can pipe the output to?

Edit: One other question related to this. I put a trap function in my script that works well. Script#2 essentially runs a tail -f. When I ctrl+c to stop it, it stops script#2 and never calls the trap in my script. Is there any way I can work around that?

View 3 Replies View Related

Programming :: Easier Way To Color Text In Perl Like BASH?

Apr 8, 2010

I've been trying to figure out a way to more easily color text in Perl like I do on Bash on a Linux box. In bash, what I'll do is set color variables up to equal the escape sequence, then echo out with escape seqeunces to print it exactly how I want it. Typically I'll want a character or a word in a different color, not the whole line. For example

echo -n -e "My face is turning ${RED}red${UNCOLOR} like a lobster." In Perl with the term::ANSIColor module, it seems to just do a line. Am I being dense? Is there a way that I can do it like I do it in BASH that's fairly easy to read after the fact?

View 11 Replies View Related

Debian Configuration :: Change Prompt Color In Bash Shell?

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

Programming :: Bash : Searching For Info And Changing The Color Of Keywords In The Results?

May 5, 2011

(bare with me as I am sort of new with scripting) I am trying to figure out how to run a script that does a basic chkconfig and to get only those services that are running, but changing the color of "on" to red in my output file. Here is what I am working with so far:

Quote:

#/bin/bash
RED=$(tput setaf 1)
BLK=$(tput setaf 0)

[code]....

*I had to substitute a "-" and <colon_symbol> for ":" in front of the on's, because the forum thought they were smiley faces (i.e. n) how to make the "on" to be red while the rest of everything remains in black text. I have been trying to read up on sed and awk, but it is still pretty much a mystery to me right now. There will be other things in the output file that I wouldn't want a rogue "on" to be in red, so just the instances of "on" in that one chkconfig return.

View 4 Replies View Related

Ubuntu Multimedia :: Amd/ati Hd Video Decoding (preferably Vlc)?

Jul 1, 2011

I can't get vlc to decode video via my graphics, 720p uses about 80% of cpu and 1080p uses 125% (then crashes). I believe I have correctly installed the xvba driver and I think I just need to setup vlc correctly but I am not sure of this. I have read that people have had this board running full hd with about 15% cpu usage so I am sure it has something to do with the way I have things set.I am running a

MSI E350IA E45 (amd / ati 6310)
4gb ddr3 (running at 1333mhz)
Ubuntu 11.04 64bit

View 3 Replies View Related

Ubuntu :: Can GNOME Color Be Used To Alter Ambiance Theme Color?

Jan 12, 2011

Can GNOME Color be used to alter this change directory color in Ambiance theme? I'd rather have white.

View 4 Replies View Related

Ubuntu Multimedia :: Mediacenter With NVIDIA H264 Hardware Decoding?

Jun 8, 2011

I've setup a EEEBox 1501P exclusively to work as a Media Center. So i've picked up Ubuntu 11.04 x64, and Boxee x64 (latest), and installed the nVIDIA drivers directly from site. The problem is that video playback at 720p is a bit sloppy! I've tried on VLC player for example, and the CPU cores are at 10%. But when i use Boxee, one core gets stuck at 100%, and the others at 10%.

So this means that currently, boxee, cannot handle hardware acceleration in x86_64 Linux! My question is:What software can I use to set-up my Ubuntu-based Media Center?

View 9 Replies View Related

Ubuntu :: Specify A Color Of Letters In The File Name?

Jul 24, 2010

Is there any way to specify a color of letters in the file name?For example "my filename 001.txt".Is it possible in Nautilus?

View 1 Replies View Related

Debian Multimedia :: Hardware Decoding With Nouveau

Apr 27, 2016

I have installed debian jessie stable and would like to use hardware decoding with the nouveau driver. I have tested with the propietary nvidia 340.65 driver and MPV and successfully enabled hardware decoding. However, there seems to be a frame sync issue with mutter and nvidia that I want to avoid. I've followed the instructions for enabling hardware decoding with nouveau here, hURL..., but haven't had success. What I've done so far is install jessie stable, run updates, install mplayer2, mpv, mesa-vdpau-drivers, and follow the previously mentioned guide. Mplayer2 throws an error about not finding the proper codec. MPV at least attempts to play the video but promptly freezes the system so that I can't recover without rebooting. URL....

View 0 Replies View Related

General :: Write A Literal Bash Command In A Bash File?

Nov 29, 2010

I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:

Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END

[code]...

View 6 Replies View Related

General :: Desktop Environment Color Settings / Do They Affect Web Browser Color?

Jun 14, 2011

Kernel 2.6.21.5, Slackware 12.0
KDE 3.5.7
(Mozilla) Firefox 2.0.0.4

Do color settings in the desktop environment affect color in the web browser? Thanks.

View 2 Replies View Related

Software :: Screen App / Retain BG / Color Background Color Gets Lost

Jul 6, 2009

I am using the screen app, and have set bce to on, and issued the following commands to set my background and foreground color: tput setab 4; clear; tput setaf 7; clear;

This temporarily sets everything properly on my screen. However, when I issue any commands that change or set their own background color (for example, when I issue an "ls" command with colorized output), the background color gets lost for any new output and I have to reissue the commands listed above in order to retrieve my background color.Ideally I'd like to keep my background color when issuing these commands, as it serves as a good way to remind me of what environment I am currently issuing commands in.

View 1 Replies View Related

Ubuntu Multimedia :: Success: Fglrx + Radeon HD 2400 + Libva/vaapi GPU Decoding?

Jun 26, 2010

I'm owning an old single Core AMD (Opteron 148, like Athlon 64 3200+), it can't play h264 1080p-Videos without framedrops in active scenes. I'm also owning an not so old AMD/Ati Radeon HD 2400. It's not an UVD2 card, it's not even UVD+, its UVD i.e. UVD1. All articles regarding GPU h264 decoding I've found so far are saying "for vaapi gpu decoding on linux you need to have a UVD2 card". That's wrong! My UVD1-Card is playing fine some demo movies.

Setup:

Ubuntu "Lucid" 10.4
"deb http://ppa.launchpad.net/nvidia-vdpau/cutting-edge-multimedia/ubuntu lucid main" in /etc/apt/sources.list.d/cutting-edge-multimedia.list

[code]....

(With the original Ubuntu Lucid fglrx (8.723) there's some error, I don't remember the words. It doesn't work for me)It's working. I can play h.264 HD Videos with mplayer and decode it with a Radeon GPU. vlc 1.2 not working so far. It seems it's decoding fine, but screen remains green. Here's a screenshot, no fake! It's a two Monitor setup with fglrx' big Desktop. On the right there's running a movie Trailer (I Am Legend) and on the left there's some status info. Quality is not perfect (as you can see, horizontal displacement), but it's basically working.

View 4 Replies View Related

General :: How To Get Color While Editing File Through SSH Session

Nov 25, 2010

I use cygwin on Windows7 to open a ssh session to my linux box. When I edit a file with vim, I don't have color, only kind of gray bold. I have colors when I do a ls into my ssh session. I have also colors when I edit files from a ssh session from my linux box to my linux box. I modified the shortcut on Window7 to run cygwin in 256 colors, no effect. Do I need to set an environment variable on my cygwin session ?
On Cygwin and On Fedora when "sshed" from Gygwin : TERM=cygwin

View 2 Replies View Related

Software :: Changing Font Color In CSS File

Apr 27, 2011

I am working with a template.css file, and I want to change the color of the font in part of the header from black to blue. Is there syntax that can be inserted into the file to accomplish this?

View 14 Replies View Related

Software :: Eps File Change Color Attributes When Distilled?

Sep 23, 2010

GS 8.71 on f11. Using the eps2eps tool, some of a files colors get changed to RGB from CMYK. I see no flagging capable of changing this behavior. Is there another way or something I'm missing? Or is there a better place to ask about Ghostscript?

View 1 Replies View Related

Programming :: Favorite 256-color Vim Color Scheme

Feb 25, 2011

What is your favorite 256-color color scheme for vim?

View 6 Replies View Related

Networking :: (socket Progamming In C) / Decoding The Domain Name When An User In The Local Network Is Logging Onto Internet?

Jun 22, 2009

I am currently working on a project related to packet sniffing which has been implemented using the concept of raw sockets. I am using C language.I am able to decode the following details from the packets received from a local network,like:

source and Destination Mac Address
source and Destination IP Address
source and Destination port no

But I am having trouble in decoding the domain name when an user in the local network is logging onto internet.For eg. if a user in the local network is trying to log on to web using his browser say if he has logged on to url then from the packet I need to get the following details

source Mac Address from which user had logged on
source IP Address from which user had logged on
domain name

View 1 Replies View Related

General :: How To Print Part Of Text File In Bold And Color

Jul 6, 2011

I have a procedure say X
output of X is :
Fund name: Mutual
NAV is: 1234

So I appended this output into a file using shellscript. But now my requirement is changed. The part of output like Fund name and 1234 should be in bold. How can I do this using shell script.

View 14 Replies View Related

General :: Boot Processing File - Status Ok In Green Color

Mar 21, 2011

I am using cent os 5. When we turn on the PC I can see things which are going to be loaded and the status is [ok] in green colour. Which file linux uses for this process.

View 1 Replies View Related

Ubuntu :: Help With Bin File - Error Message - Bash - /hldsupdatetool.bin - No Such File Or Directory

Jun 9, 2009

I am new to Linux and I wanted to setup a dedicated game server on my notebook.

I've installed Ubuntu 9.04. I than created a directory named /home/phlex/kfserver. I downloaded the application binary from Steam. I changed the file permission with chmod +x hldsupdatetool.bin and now the file attributes are -rwxr-xr-x.

The problem is when I try to run the binary file. If I type ./hldsupdatetool.bin I get an error message "-bash: ./hldsupdatetool.bin: No such file or directory. It seems the OS can't find the file. I've downloaded the file several times thinking it may have been corrupt but it's not. I can delete the file, I can rename it and so the file is there. Sometimes Linux can be aggravating to use.

View 7 Replies View Related

Ubuntu Multimedia :: Error In GMPC Saying "mpd Reported Problems Decoding Mp3"

Sep 26, 2010

I have installed mpd & GMPC. I've set the MPC config to point to /Music & chown'd it to mpc. When I try to play a MP3 I get an error in GMPC saying"mpd reported problems decoding mp3"

edit: I tried playing from files instead of an saved playlist.. it worked

View 1 Replies View Related

Programming :: Bash File Comparing - Report How Many Matching Words My Main File ?

Jun 9, 2009

I have been messing with diff and grep for 2 days now without result

I am trying to match a file consisting of words to many separate other wordfiles in a specific directory. one by one.

What i want the script to do is to report how many matching words my main file has with every file in the directory, each in turn

setup:

Each of em are plain text files with 1 word per line

Output should be something like:

SCRIPT REPORT:

View 8 Replies View Related

General :: Printing From Bash Shell / Concatenate Files Into One File With File Names Included?

May 11, 2011

I am supposed to take some small files, and print them to a specific printer, such that the small files are concatenated into one file. The file name has to be included in the file that gets printed.

Should I be looking to concatenate the files into one file with the file names included, and then print them?

something like: -printfunction -printername < file*

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved