LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   startfluxbox doesn't work. but sudo startfluxbox does! but logged in as root (https://www.linuxquestions.org/questions/linux-software-2/startfluxbox-doesnt-work-but-sudo-startfluxbox-does-but-logged-in-as-root-4175516643/)

CodyAcer 08-28-2014 07:31 AM

startfluxbox doesn't work. but sudo startfluxbox does! but logged in as root
 
I want to login with my current user profile. But whenever I type startx. It gaves me a Xterminal to start my fluxbox.
Code:

root@Emely:~# startfluxbox
Logging to /home/emely/.fluxbox/log...
Loading...



then it start.! but i logged in as root which is very risky

and then when i try
Code:

root@Emely:~# sudo -su emely startfluxbox
No protocol specified
No protocol specified
Error: Could not connect to XServer

my OS
Code:


OS: LINUX LITE
Version: 1.0.8 i386

is this a Xorg problem??? cause i created Xorg in sudo mode...

frankbell 08-28-2014 08:32 PM

What happens when you start fluxbox as user, without the sudo stuff?

I have used Fluxbox on several distros, mostly Slackware and Debian, but also for a time on Ubuntu, before I got fed up with Canonical's antics. When I have it selected as my default window manager in .xinitrc, then login to TTY as user and type "startx," Fluxbox has just worked. I have no experience with Linux Lite, though.

I have a sense that, on some level, you are making this more complicated than it needs to be, but, from the information provided, I can't offer anything more specific.

CodyAcer 08-28-2014 09:35 PM

it just gave me an empty black screen...!

frankbell 08-29-2014 07:51 PM

Could you post the contents of your .xinitrc file?

Also, have you successfully another GUI on this machine?


All times are GMT -5. The time now is 08:22 PM.