LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2014, 11:53 PM   #1
andrei186
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Rep: Reputation: Disabled
after installing xfce4, fluxbox would not start


Installed Debian Kernel 3.2.0-4-686-pae i686 (32 bit) Distro Debian GNU/Linux 7 from netinstall.

Added fluxbox, which starts with startх. OK
Added xfce as prescribed at
https://wiki.debian.org/ru/Xfce

Using nano command added the following line to file ~/.xinitrc:

exec ck-launch-session startxfce4

(BTW, when I opened ~/.xinitrc with nano it was empty)

xfce4 now starts from command line using startxfce4 OK.
Yet startх, which used to start fluxbox, now starts xfce4 too.

As prescribed at
http://forums.debian.net/viewtopic.p...58557&start=30
added to ~/.xinitrc another line:

exec startfluxbox

yet startfluxbox returns:

xmodmap: unable to open display ' '
Error: Could not connect to XServer

What am I doing wrong and how can I have both fluxbox and xfce4 ?
 
Old 11-17-2014, 07:35 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,576

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Looks right to me. The startx command starts the X server and will execute the contents of your .xinitrc file. Running startfluxbox or startxfce4 or (on my desktop PC) startlxde gives an error because there is no X server running. If I want to change what gets run when X starts, I just modify my .xinitrc file, uncommenting the executable to run:
Code:
~$ cat .xinitrc 
#!/bin/sh

# To start XFCE:
#exec startxfce4

# To start LXDE:
# exec startlxde

# To start Mate:
mate-session

# To start an openbox session with ~/.config/openbox/autostart:
lxterminal
#exec openbox-session
 
Old 11-17-2014, 07:48 AM   #3
andrei186
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
it's strange for as I said, startxfce4 works fine for me. So does startx, except it also starts xfce4 instead of fluxbox which was being started by startx before I installed xfce4

BTW, I have just sorted this problem out by adding the following code (found somewhere on the Web) to .xinitrc:
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi

It works fine, I now can start fluxbox and xfce from command line using startx and startxfce4 respectively.
Yet I am not still happy for I do not understand what exacly this code does. Obviously it does something with /etc/X11/xinit/xinitrc.d, but there is no xinitrc.d in /etc/X11/xinit/

Could you comment on it?
 
Old 11-17-2014, 10:55 AM   #4
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,576

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
Your addition causes all executable files in /etc/X11/xinit/xinitrc.d to be run when that block of code is encountered in .xinitrc. FWIW, my Fedora installs have the xinitrc.d directory, but my Linux Mint and Ubuntu installs do not.

What happens if you rename your .xinitrc file, so that it's never executed?
Does startx still start fluxbox?
Does startxfce4 still start xfce?
 
Old 11-17-2014, 11:16 AM   #5
andrei186
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
renamed my .xinitrc
both startx and startxfce4 launches xfce
renamed is back and startx starts fluxbox and startxfce4 starts xfce

command find / -name "xinitrc.d" still returns nothing

BTW, my .xinitrc has no
~$ cat .xinitrc - what is this for?

Apart from the code above it has a line:
exec startflubox

all other lines, including exec startxfce4 are commented out
I therefore am completely confused with how all this works

Last edited by andrei186; 11-17-2014 at 11:33 AM.
 
Old 11-17-2014, 04:18 PM   #6
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,576

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
~$ is my system prompt at a console or terminal window. The command
Code:
cat <filename>
lists the contents of a file (replace <filename> with the name of the actual file). I think your .xinitrc file could consist of two lines:
Code:
 startfluxbox
(I always end my .xinitrc file with a blank line). Running startx would start fluxbox; running startxfce4 would start xfce.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Xfce4-mixer in the taskbar of Fluxbox - possible? xj25vm Slackware 14 09-24-2013 09:16 AM
[SOLVED] xfce4 goes into a loop, does not start nigelc Mageia 2 06-02-2013 08:46 PM
KDE vs. Gnome vs. XFCE4 vs. fluxbox/idesk phantom_cyph General 6 02-25-2007 10:58 AM
How-to start wmaker/xfce4/fluxbox/fvwm as user Sader Slackware 6 03-11-2005 08:53 AM
dual monitor problem with xfce4 + fluxbox Jestrik Linux - Hardware 2 06-09-2004 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration