3/29/2009

change Kerberos user password with kadmin

Basic kadmin Commands

Here is a brief list of kadmin commands. For more information, refer to the manual page of kadmin.

Available kadmin requests:

add_principal, addprinc, ank
Add principal
delete_principal, delprinc
Delete principal
modify_principal, modprinc
Modify principal
change_password, cpw
Change password
get_principal, getprinc
Get principal
list_principals, listprincs, get_principals, getprincs
List principals
add_policy, addpol
Add policy
modify_policy, modpol
Modify policy
delete_policy, delpol
Delete policy
get_policy, getpol
Get policy
list_policies, listpols, get_policies, getpols
List policies
get_privs, getprivs
Get privileges
ktadd, xst
Add entry(s) to a keytab
ktremove, ktrem
Remove entry(s) from a keytab
lock
Lock database exclusively (use with extreme caution!)
unlock
Release exclusive database lock
list_requests, lr, ?
List available requests.
quit, exit, q
Exit program.


At all stages, help is available by typing ? and Enter. This even works in prompt environments generated by modify and add.

Difference between klog and kinit

The klog command obtains an AFS token from the Authentication Server.

Sites that employ Kerberos authentication instead of the AFS Authentication Server should normally use the combination of kinit and aklog instead of klog.

After creat a new account(chown)

creat /home/gyuan

change owner to gyuan

chown -R gyuan:users /home/gyuan

ssh问题解决

pam的安全性问题,
编辑 system-auth文件,使其和zen相同
/etc/pam.d

3/20/2009

gentoo 显卡驱动问题

google "gentoo nvidia "
按步骤更新驱动

kstartupconfig4 - installing kde4

找不到kstartupconfig4,需要下面解决

'chown -R username:users /home/username'

3/19/2009

su permission denied

I prefer editing /etc/group make the entry for wheel look like this

wheel:x:10:root,username,another_user_name

or edit

/etc/pam.d/su

# Uncomment the following line to require a user to be in the "wheel" group.

ubuntu wireless问题

有些时候没有无线是因为在/etc/network/interfaces文件中根本没有wireless
选项

sudo nano -w /etc/network/interfaces

内容如下
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
#wireless-essid MYNETWOTK
#wireless-key FEFEFEFEFE
#wireless-channel 11
#wireless-mode managed

3/18/2009

offiline install notes

CDAS missing problem
first, down load cdas package from

http://www.auger.org.ar/CDAS/download/

put it to the same folder with
$./AugerRequiredInstall

then execute

$./AugerRequiredInstall --reverse --with-CDAS

3/03/2009

清空 垃圾站ubuntu

/home/gyuan/.local/share/Trash

3/02/2009

ubuntu 中文输入法

安装完毕后,增加中文支持
sudo apt-get install language-support-zh

如果您要在非CJK(中日韩)的locales下使用scim,请在终端执行如下命令:(如果默认是中文环境不需要这一步,系统已经设置好了。)
sudo apt-get install scim scim-modules-socket scim-modules-table scim-pinyin scim-tables-zh scim-gtk2-immodule im-switch libapt-pkg-perl

如果需要英文界面使用中文输入法,做如下操作
进入系统后,系统->系统设置->语言支持->选择默认语言英文。
然后
sudo gedit /etc/X11/Xsession.d/95xinput
输入内容
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim(如果没有QT程序可以不加)
scim -d

然后保存,注销,重新进入就可以了。

scim-bridge的使用
sudo aptitude install scim-bridge
然后修改/etc/X11/xinit/xinput.d/zh_CN

GTK_IM_MODULE=”scim-bridge”