I have installed Oracle 10g xe from a deb file on linux, and then started to configure it using this terminal command
sudo /etc/init.d/oracle-xe configure
Oracle creates a system account named oracle. To change password to that account just use
passwd oracle
if you forgot another password from DB then log in as oracle user and use
sqlplus / as sysdba
to change the password for various DB accounts.
To reconfigure change in /etc/default/oracle-xe
CONFIGURE_RUN=true
to
CONFIGURE_RUN=false
and rerun
sudo /etc/init.d/oracle-xe configure