Monday, February 16, 2009

configure a fresh-installed Foresight Linux

[update]: The following may become obsoleted. I have changed some of it.

Recently I reinstalled my Foresight, well, because the root partition was too small. 10G root is never enough for a system where I do some packaging.

With a fresh-installed Foresight, some configure is needed. The "Foresight User Guide" is helpful, but besides that, here is what I do,

1) Chinese font
sudo conary update wqy-zenhei=jesse.rpath.org@fl:2-devel

2) input method - SCIM

3) $PATH
I want ~/bin to come before /usr/bin and others. Obviously there is something wrong with $PATH setup in Foresight... echo $PATH and see how it is messed up :)

Edit /etc/profile,
# Path manipulation
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
pathmunge /usr/local/bin
pathmunge $HOME/bin # add this line


(Still at mess but it works)

4) stardict
sudo conary update stardict

2 comments:

grissiom said...

For Tip1, maybe it's good to have a wqy-zenhei pkg for your distro. It can make things easier. Slackware has it ;)

For Tip4, it's dangerous to edit system level configurations(as it in /etc), I think the better way is to edit your user configurations. In this case, it can be ~/.profile or ~/.bash_profile. You may could seek in your distro doc for details.

For me, I created a git repo to maintain my local configurations.(http://github.com/grissiom/etc/tree/master) And provide a install.sh to install the configuration onto a fresh new (or a messed up?) system. Although it haven't get fully tested yet... ;)

Jesse said...

@grissiom,

I agree with you on Tip1 and Tip4 :) Though Tip4 should be fixed by Foresight developers.

The idea of a git repos is so great! Actually I forgot to back up several config files and wasted some time on it. I will get a repos soon :)

Post a Comment