You are not logged in.

#1 2006-12-13 11:22:12

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

xkill and bash [solved]

Hi friends,

I had 2 small issues with arch. Here are they.
1. xkill does not work. Earlier it used to work fine, but not after i re-installed my system. xkill is there in men>settings>keyboard settings>shortcuts>defaults, but its not working.
2. whenever I start aterm or any terminal, i get "bash-3.2$" instead of the usual "[username@hosname]#. This happens in one user login, not in root loging though I have not tried with other user loging (i have only 1 user in my comp).

Guys, any solution for the above..

Offline

#2 2006-12-13 14:50:17

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: xkill and bash [solved]

1. Does xkill work from the command line?
2. Did you modified your .bashrc? To get the prompt you like, define the PS1 variable in your .bashrc. ex:

PS1='[33[01;34m]#[33[00m] [33[01;31m]u@H[33[00m][33[01;39m] w $[33[00m] '

Offline

#3 2006-12-14 08:52:11

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: xkill and bash [solved]

1. xkill does not work frm cli too. it says command not found. xkill is not there in repos, pacman -S xkill does not work.
2. my /etc/skel/.bashrc is like this:

alias ls='ls --color=auto'
PS1='[u@h W]$ '

but if there is something wrong in /etc/skel/.bashrc then it should affect all the logins including root. There is no .bashrc in my home folder.


<edit>
problem solved by doing

cp /etc/skel/.bashrc /home/shantanu/
sudo chown shantanu /home/shantanu/.bashrc

Offline

#4 2006-12-14 12:35:52

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: xkill and bash [solved]

The .bashrc would have been there if you had used the adduser script for adding your default user.

[j@chronos ~]$ pacman -Qo `which xkill`
/usr/bin/xkill is owned by xorg-apps 1.0.2-2

1000

Offline

#5 2006-12-15 01:44:10

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: xkill and bash [solved]

[root@bluehead shantanu]# pacman -Qo 'which xkill'
No package owns which xkill

Offline

#6 2006-12-15 02:30:37

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: xkill and bash [solved]

Didn't you see the "owned by xorg-apps 1.0.2-2" part?


1000

Offline

#7 2006-12-15 12:41:50

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: xkill and bash [solved]

no. the only thing i get is "no package owns which xkill" and also:

[shantanu@bluehead ~]$ sudo pacman -Qo xkill
Password:
No package owns xkill

Offline

#8 2006-12-15 16:13:49

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: xkill and bash [solved]

Wow, I give up.

pacman -S xorg-apps.

Have fun. And RTFM.


1000

Offline

#9 2006-12-15 16:30:05

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: xkill and bash [solved]

Heh. ravisghosh, they are telling you what package to get, not what command you should execute on your machine. We know you don't have xkill.


I am a gated community.

Offline

#10 2006-12-15 17:12:19

metzen
Member
From: New York City
Registered: 2004-08-27
Posts: 14

Re: xkill and bash [solved]

Also, single quotes

'which xkill'

are not the same as backticks

`which xkill`

Please read http://tldp.org/LDP/Bash-Beginners-Guid … t_03_04_04

Offline

#11 2006-12-16 01:32:26

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: xkill and bash [solved]

thanks a lot guys for making that clear.. its fine now and xkill is workin...

Offline

#12 2006-12-18 10:01:13

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: xkill and bash [solved]

Is there a way to deactivate xkill after activating and not using it. what i mean to say is suppose u activing xill using the keys u have set, but then find the application that u wanted to kill responding and do not want to use xkill. but now whereever u click, that application will be killed.. is there a way out.

Offline

#13 2006-12-18 15:41:22

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: xkill and bash [solved]

I usually start xkill from a terminal so I could just type ctrl-c to interrupt it. Running it from a terminal also gives another hint, it outputs: "Select the window whose client you wish to kill with button 1...."
Clicking any other mouse button will close it.


1000

Offline

#14 2007-06-25 20:19:01

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 517
Website

Re: xkill and bash [solved]

just putting the way to deactivate xkill. Press right mouse button. smile simple

Offline

Board footer

Powered by FluxBB