Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

January 29 2010

locale foo

locale: Cannot set LC_ALL to default locale: No such file or directory

now and then this happenes to me on a new machine. usually I just set
LC_ALL, LC_LANG & LANGUAGE like this

root@gargamel:~# cat /etc/profile.d/locale 
export LANGUAGE = "en_US.UTF-8"
export LC_ALL = "en_US.UTF-8"
export LANG = "en_US.UTF-8"

still it complains about missing default locale. so we hafta do this:

localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 

because usually en_US is probably defined.
we r done. we give back to the connected funk-haeusers!

January 13 2010

little bash helper: mkcd

mkcd - mkdir & cd directly into it

phaidros@42:~/ #$ echo 'mkcd() { mkdir -p "$@" && cd $_; }' >> ~/.bashrc
phaidros@42:~/ #$ . ~/.bashrc
phaidros@42:~/ #$ mkcd /path/to/a/new/folder/
phaidros@42:/path/to/a/new/folder/#$ echo "Well done :) !"

Little, easy, damn useful.
We give back to the connected funk-haeusers!

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.

Don't be the product, buy the product!

Schweinderl