You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2011-09-29 15:04:22

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Colored Terminal

Can maybe anyone help me to get my Terminal colored, i tested it with ArchWiki, but dont understand this :S

Would be nice.

/e: http://img151.imageshack.us/img151/241/ … 71280x.png
Like this, wanna have it too transparent and with color big_smile

Last edited by Keta (2011-09-29 15:49:04)

Offline

#2 2011-09-29 16:57:22

Conker1r
AB Artist
From: GlobeVille
Registered: 2010-10-07
Posts: 144

Re: Colored Terminal

that's lxterminal.
download it and edit the prefs


It's only chaos to those not interested.

"Power aint nothing if you don't use it."
"I call it a sin Not to rule the world, if you've been blessed, with the strength!"

Offline

#3 2011-09-30 03:37:29

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

where can i edit this? :S

/e: when i make it transparent i see ever the desktop, i wanna see, that what open :S
and the name, like root name etc how can i make it in color?

Last edited by Keta (2011-09-30 03:39:32)

Offline

#4 2011-09-30 13:41:51

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

Once you have lxterminal installed, it should just be a matter of right-clicking and going to Preferences... but I don't see anything about transparency there. Huh.

It looks like terminator has transparency. Install terminator and right-click, then go Preferences > Profiles > Background.

Now the colors for the name and prompt are done through the bash preferences, defined in the .bashrc file in your home directory. I will refer you to bash.org for info on setting the PS1 shell variable.


--Ben

Offline

#5 2011-09-30 14:02:19

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,752

Re: Colored Terminal

Lxterminal go into Preferences, Click Background and slide the Opacity .... done!

Offline

#6 2011-09-30 14:29:19

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

Mr Green wrote:

Lxterminal go into Preferences, Click Background and slide the Opacity .... done!

yes, i got that, but i ever see the desktop, when a programm is behind terminal, i wanna see this!!!

/e:

alias ls='ls --color=auto'
[ ! "$UID" = "0" ] && archbey -c cyan
[  "$UID" = "0" ] && archbey -c red
PS1="\[\e[01;31m\][\[\e[01;35m\u\e[01;31m\]@\[\e[00;37m\]${HOSTNAME%%.*}\[\e[01;32m\]]:\w$\[\e[01;31m\]\n\[\e[01;31m\]\[\e[01;36m\]>>\[\e[0m\]"

can anyone post my code that regular is too in color, not only root? :S
Would be nice.

Last edited by Keta (2011-09-30 15:04:49)

Offline

#7 2011-09-30 15:13:14

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

By default, the user prompt (the >>) and AB logo show up in cyan in a b/w terminal window.

Here's mine:

PS1='\u@\h:\w $\n\[\e[01;36m\]>>\[\e[0m\]'

The

\e[01;36m\]

sets the color and the

\e[0m\]

unsets it. All of that stuff with the semicolons sets the colors.


--Ben

Offline

#8 2011-09-30 15:16:38

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

... but once you've changed your PSI variable you should exit the terminal and start a new one or at least run

. ~/.bashrc


to make it stick.


--Ben

Offline

#9 2011-09-30 15:22:55

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

bigbenaugust wrote:

By default, the user prompt (the >>) and AB logo show up in cyan in a b/w terminal window.

Here's mine:

PS1='\u@\h:\w $\n\[\e[01;36m\]>>\[\e[0m\]'

The

\e[01;36m\]

sets the color and the

\e[0m\]

unsets it. All of that stuff with the semicolons sets the colors.

okok, i know now, but how i can make it by normal user too, by me is it only by root :S

/e: how can i change the AB Logo to archlinux logo like picture?

Last edited by Keta (2011-09-30 15:30:28)

Offline

#10 2011-09-30 15:44:36

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

Put that line of text in the .bashrc file in your home directory using your favorite editor (nano or vi or gedit). Then restart your shell.

The arch logo appears to be provided by /usr/bin/archbey in AB, which refers to /usr/bin/archey in Arch.


--Ben

Offline

#11 2011-09-30 15:49:08

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

bigbenaugust wrote:

Put that line of text in the .bashrc file in your home directory using your favorite editor (nano or vi or gedit). Then restart your shell.

The arch logo appears to be provided by /usr/bin/archbey in AB, which refers to /usr/bin/archey in Arch.

i love ya! ^^
/e: maybe u got code for the archlinux logo? :S

Last edited by Keta (2011-09-30 15:55:06)

Offline

#12 2011-09-30 16:01:44

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

Install the archey3 package from the AUR.

>>packer -Ss archey
aur/archey 20101103-1
    Simple python script that displays the arch logo and some basic
    information.
aur/archey3 20110904-1
    Python script to display system infomation alongside the Arch Linux logo
aur/alsi 0.3.2-1
    Arch Linux System Information tool. [Inspired by Archey]

--Ben

Offline

#13 2011-09-30 16:08:22

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

bigbenaugust wrote:

Install the archey3 package from the AUR.

>>packer -Ss archey
aur/archey 20101103-1
    Simple python script that displays the arch logo and some basic
    information.
aur/archey3 20110904-1
    Python script to display system infomation alongside the Arch Linux logo
aur/alsi 0.3.2-1
    Arch Linux System Information tool. [Inspired by Archey]

where i find now the script? when i edit by ~/.bashrc

archbey to archey there stand archey dont exist or so^^

Offline

#14 2011-09-30 16:17:17

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

That's a good question, I don't have an Arch box here, only AB. But my box says:

>>whereis archbey
archbey: /usr/bin/archbey
baugust@vpue-baugust-lt:~ $
>>

and if I run archbey --help, I get:

baugust@vpue-baugust-lt:~ $
>>archbey --help
Usage: archbey [-c COLOR] [-s, --screenshot]

To customize the info displayed on archey, edit "/usr/bin/archey" directly and
look for the display array. Note: Archey can only allow up to 15 fields.

Options:
  --version         show program's version number and exit
  -h, --help        show this help message and exit
  -c COLOR          choose a color: black, red, green, yellow, blue, magenta,
                    cyan, white [Default: blue]
  -s, --screenshot  take a screenshot
baugust@vpue-baugust-lt:~ $
>>

Now if I install archey

>>sudo packer -S archey
Password: 
... blah blah blah ...

When all of that's done, it is located in:

>>whereis archey
archey: /usr/bin/archey
baugust@vpue-baugust-lt:~ $
>>

--Ben

Offline

#15 2011-09-30 16:25:31

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

2011-10-01--1317421463uufr.png

when i tip in packer -S archey Oo before comes install, i tip y then comes that xD

Last edited by Keta (2011-09-30 16:31:36)

Offline

#16 2011-09-30 16:29:54

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

Try hitting n instead to the "Do you want to edit?" prompt, go with the defaults.


--Ben

Offline

#17 2011-09-30 16:31:58

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

bigbenaugust wrote:

Try hitting n instead to the "Do you want to edit?" prompt, go with the defaults.

if i make this, than comes to an error xDD :

2011-10-01--1317421820nu95.png

dont wanna me sad xD

Offline

#18 2011-09-30 16:34:50

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

Odd that it can't reach the server with the source. How's your network, can you ping that server (207.97.227.239)?


--Ben

Offline

#19 2011-09-30 16:38:45

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

bigbenaugust wrote:

Odd that it can't reach the server with the source. How's your network, can you ping that server (207.97.227.239)?

yes, i can ping 3 pings in 2002 ms

Offline

#20 2011-09-30 16:41:15

bigbenaugust
Member
From: the 408/650
Registered: 2011-09-21
Posts: 23

Re: Colored Terminal

Weird. Not sure how to get around that one, other than to tell you to try again and keep trying if there's some sort of connectivity issue.


--Ben

Offline

#21 2011-09-30 16:43:43

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

bigbenaugust wrote:

Weird. Not sure how to get around that one, other than to tell you to try again and keep trying if there's some sort of connectivity issue.

omfg i got it now..
i tip in only as root : "packer -S archey" now i tip in as root "sudo packer -S archey" and its go :S
Thx alot man :S

Offline

#22 2011-10-01 04:57:31

Keta
ArchBanger
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Colored Terminal

can anyone post maybe the original .bashrc? ^^

Offline

#23 2012-06-14 15:59:31

angel
New member
Registered: 2012-06-14
Posts: 1

Re: Colored Terminal

Keta wrote:

http://www.abload.de/img/2011-10-01--1317421463uufr.png

when i tip in packer -S archey Oo before comes install, i tip y then comes that xD

I realize this is an old post. But do you mind telling me what  panel you are using and how you got it to look like that also what openbox theme are you using?

Offline

Board footer

Powered by FluxBB