Can I type pinyin in Debian Linux?
You can install ibus and ibus-pinyin (there's also google pinyin but I personally prefer ibus-pinyin) or scim. Scim is more the historical software, but ibus is definitely better.

You will probably have to restart (!), but then there's about no configuration: at most, you learn the shortcuts to switch between input methods.