By mistake I closed in Session and Startup: xfwm4
now I have no keyboard only mouse is working, I can not move any icons and icons on every windows "close, minimize" are gone.
How to restart xfwm4?
I've tried to restart it by login in via ssh:
xfwm4 ** Message: To replace the current window manager, try "--replace" ** (xfwm4:6632): WARNING **: Another Window Manager is already running
when I type: xfwm4 --replace, I'm losing the connection and even my computer I connected from via ssh freezes,
which process should I close; there is no process name: xfwm4
If no WM is running, Xfwm4 wouldn't be giving you that error. Are you sure you haven't installed another window manager by accident?
Either way, tried appending Xfwm to your .xinitrc?
Switch to a virtual terminal and type the following:
$ echo "exec startxfce4 &" > .xinitrc
$ echo "exec sleep 5 && xfwm4 --replace" >> .xinitrc
Then restart X/logout.
Edit: fixed goof.
If by chance anybody find himself in similar situation here was my solution:
login via ssh or "ALT + F1" find process "xfconfd"
ps fax |grep xfconfd
kill it, keyboard should start working
at the console in graphic interface run "xfwm4 --replace" (not via ssh)
Sounds like you had your keyboard misconfigured.