View previous topic :: View next topic |
Author |
Message |
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 1:15 pm Post subject: Best terminal? |
|
|
im looking for a nice terminal without kde-gnome dependencies i would prefer it gtk or sth . i want it with good looking freetype fonts colours (i suppose this is standard) and trasparency _________________ psofa |
|
Back to top |
|
|
flyinspirit001 Apprentice
Joined: 25 May 2004 Posts: 266 Location: localhost,localdomain
|
Posted: Thu Jun 10, 2004 1:28 pm Post subject: |
|
|
for me aterm.. i use it with transparency and i haven't gnome or kde dependencies
anyway this forum is full of posts like this , try with quick search
byez _________________ "Ride the infinity, be your best. For you, for all"
Dungeon01 - linux registered user #362502
Last edited by flyinspirit001 on Thu Jun 10, 2004 1:49 pm; edited 1 time in total |
|
Back to top |
|
|
ozonator Guru
Joined: 11 Jun 2003 Posts: 591 Location: Ontario, Canada
|
|
Back to top |
|
|
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 2:25 pm Post subject: |
|
|
ok ive read the other threads and tried aterm. though i have a slight prob. instead of it showing ie psofa@barton it says bash sth can i fix this? _________________ psofa |
|
Back to top |
|
|
ozonator Guru
Joined: 11 Jun 2003 Posts: 591 Location: Ontario, Canada
|
Posted: Thu Jun 10, 2004 2:37 pm Post subject: |
|
|
psofa wrote: | ok ive read the other threads and tried aterm. though i have a slight prob. instead of it showing ie psofa@barton it says bash sth can i fix this? |
Yes. It's not the terminal but your shell that sets the prompt. Put this in your ~/.profile for a prompt of "user@host ":
Code: | export PS1="\u@\h " |
If that's not exactly the prompt you want, there are many other options. See the bash prompt howto for lots of detail and other examples. |
|
Back to top |
|
|
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 2:47 pm Post subject: |
|
|
ok this works but i want it coloured!
meh ill read the bash howto! but if u dont bother tell me how! red-blue i think _________________ psofa |
|
Back to top |
|
|
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 2:51 pm Post subject: |
|
|
or even better do u know where gnome terminal used to take the info about the promt and its colours _________________ psofa |
|
Back to top |
|
|
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 2:54 pm Post subject: |
|
|
ok ive found the part in profile that handles this:
if [ `/usr/bin/whoami` = 'root' ]
then
# Do not set PS1 for dumb terminals
if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
then
export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
# Do not set PS1 for dumb terminals
if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
then
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00$
fi
export PATH="/bin:/usr/bin:${PATH}"
fi
now why doesnt aterm read this?
doesnt it like the
if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ] ?
is my terminal dumb _________________ psofa
Last edited by psofa on Thu Jun 10, 2004 2:55 pm; edited 1 time in total |
|
Back to top |
|
|
Boris27 Guru
Joined: 05 Nov 2003 Posts: 562 Location: Almelo, The Netherlands
|
Posted: Thu Jun 10, 2004 2:54 pm Post subject: |
|
|
psofa wrote: | ok this works but i want it coloured!
meh ill read the bash howto! but if u dont bother tell me how! red-blue i think |
put source /etc/profile in your .profile
_________________ we are microsoft, lower your firewalls and surrender your pc's. we will add your biological and technological distinctiveness to our own. your culture will adapt and service us. resistance is futile. |
|
Back to top |
|
|
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 2:56 pm Post subject: |
|
|
but i made the changes to /etc/profile i didnt change the ~/.profile
EDIT:
never mind im stupid!
ok it seems .profile is not read!
if i write in the term source /etc/profile it will work
but the thing in .profile doesnt
maybe a syntax error?
i just created a file called .profile in my root dir wrote the command and saved it _________________ psofa |
|
Back to top |
|
|
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 3:15 pm Post subject: |
|
|
ok found it! it doesnt want .profile it wants .bashrc! _________________ psofa |
|
Back to top |
|
|
loseruser Tux's lil' helper
Joined: 27 May 2003 Posts: 110 Location: Seattle,WA
|
Posted: Thu Jun 10, 2004 5:01 pm Post subject: |
|
|
psofa wrote: | ok found it! it doesnt want .profile it wants .bashrc! |
or .bash_profile I do believe. |
|
Back to top |
|
|
psofa Guru
Joined: 28 Feb 2004 Posts: 485
|
Posted: Thu Jun 10, 2004 5:40 pm Post subject: |
|
|
tried it .bash_profile didnt work _________________ psofa |
|
Back to top |
|
|
loseruser Tux's lil' helper
Joined: 27 May 2003 Posts: 110 Location: Seattle,WA
|
Posted: Thu Jun 10, 2004 6:02 pm Post subject: |
|
|
Decided to go hunting for the difference because I knew .bash_profile would work in at least one situation. So here it comes, straight from the man page for bash
Quote: |
When bash is invoked as an interactive login shell, or as a non-interactive shell with the
--login option, it first reads and executes commands from the file /etc/profile, if that
file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile, in that order, and reads and executes commands from the first one that exists
and is readable. The --noprofile option may be used when the shell is started to inhibit
this behavior.
When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if
it exists.
When an interactive shell that is not a login shell is started, bash reads and executes com-
mands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc
option. The --rcfile file option will force bash to read and execute commands from file
instead of ~/.bashrc.
|
|
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Thu Oct 14, 2004 5:44 pm Post subject: |
|
|
this is my favourite prompt:
Code: | PS1='\n\[\033[33m\]\w\n\[\033[0m\]\[\033[1;32m\]\u@\h \[\033[1;34m\]$(/usr/bin/tty | /bin/sed -e '\''s:/dev/::'\'') \[\033[0m\]\[\033[0m\]' |
this should be one single line. put it in ~/.bashrc and don't forget to source it afterwards, or it will not change for your current terminal session =>
or
i put this line in every users directory and this one in root's:
Code: | PS1='\n\[\033[33m\]\w\n\[\033[0m\]\[\033[1;31m\]\u@\h \[\033[1;34m\]$(/usr/bin/tty | /bin/sed -e '\''s:/dev/::'\'') \[\033[0m\]\[\033[0m\]' |
user's prompt are green and root's is red - prevents stupid confusions. _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Last edited by BlinkEye on Thu Oct 14, 2004 6:06 pm; edited 1 time in total |
|
Back to top |
|
|
brettlpb Apprentice
Joined: 27 May 2003 Posts: 197
|
Posted: Thu Oct 14, 2004 5:46 pm Post subject: |
|
|
How can you people live with a non-anti-aliased terminal?
I'll take KDE just for Konsole. |
|
Back to top |
|
|
nighty Apprentice
Joined: 10 Aug 2003 Posts: 217 Location: right behind you.
|
Posted: Thu Oct 14, 2004 6:15 pm Post subject: |
|
|
aterm with screen. if you use kde then konsole is quite nice when custumized (keyboard shortcuts). |
|
Back to top |
|
|
lebel n00b
Joined: 25 Aug 2004 Posts: 36
|
Posted: Thu Oct 14, 2004 6:18 pm Post subject: |
|
|
Why not use xterm? I mean, what's so special about all the other terms? xterm can use anti-aliased fonts (parameter -fa), is the defacto terminal you'll find everywhere (it's the "vi" of terminals).
Plus, you can tweak it to your heart content.
Really.
Plus, with 6.8 of Xorg's X11, you can have transparent terminals if you wish so. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
|
Back to top |
|
|
|