LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-23-2016, 09:44 AM   #61
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857

The 'buildall' script is just a convienience script if you have downloaded the individual archives if not just remothe command or build each manually, starting with the toolkit, all the parts are individual autotools pojects, you will probably be better off building each manually anyway.
 
Old 06-23-2016, 09:44 AM   #62
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
I installed each individually with:
./configure --prefix=/usr
make
make install

Everything went quick and simple, but what do I do to start the desktop? :-)

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 06-23-2016, 09:52 AM   #63
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
You can use an xinit script to start them, this is mine:
Code:
#!/bin/sh

usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/app-defaults/.Xresources
sysmodmap=/etc/X11/app-defaults/.Xmodmap
xcursorsfile=$HOME/xinits/XDefaults/XCursorsfile
customcolours=$HOME/xinits/XDefaults/XDefaults

# merge in defaults and keymaps

if [ -f $xcursorsfile ]; then
    xrdb -merge $xcursorsfile
fi

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $customcolours ]; then
    xrdb -merge $customcolours
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

#xrandr --output VGA-0 --below DVI-0
xrandr --output VGA-0 --below DVI-0 --mode 1920x1080
xrandr --output DVI-0 --gamma 1.35:1.28:1.56

compton -cC -r24 -o.6 -l-24 -t-22 --backend glx --glx-no-rebind-pixmap -z --glx-no-stencil &

setxkbmap -layout gb &>/dev/null &
/home/keithhedger/Scripts/StartBindKeys &>/dev/null &

#linuxdata
udevil mount $(findfs UUID=96347d37-6c5e-4a4d-8616-af519e44ed5e) &> /dev/null
#skynet
udevil mount $(findfs UUID=706a8af9-92d9-4c47-8441-7b009ba69141) &> /dev/null

lfssetwallpaper
#lfsdesktop &

sleep 1

cairo-dock &
conky -c /home/keithhedger/ConkyThemes/ringsbrass/conkyrc 2>/tmp/conky.log &

#sleep 1
#lfsdesktop --ignore "PQSERVICE;DATA;SYSTEM_RESERVED" &
#lfsdesktop &

#firefox &
chromium &
thunderbird&

#xdecorations -configfile /home/keithhedger/.XDecorations/autumn1.rc &
#xdecorations -configfile /home/keithhedger/XDecorations/halloween1.rc &
#xdecorations -configfile /home/keithhedger/XDecorations/xmas4.rc
#xdecorations -configfile /home/keithhedger/XDecorations/xmas$(( ( RANDOM % 4 )  + 1 )).rc &
sleep 1
xscreensaver -nosplash &

(while :;do lfsdesktop & waitpid $!;done) &
#lfswmanager -n 6 &
lfswmanager &
#sleep 1
#lfsdesktop &
sleep 2
lfslaunchpanels

#lfspanel &
#lfspanel LEFT &
#lfspanel RIGHT &
#  -B grey40 -F white -b grey80 -f grey60 -n 6 &
#xfwm4 &

file=`mktemp -u`
cat > $file << EOF
#!/bin/bash -e
echo $$ > /tmp/lfssession.pid
waitpid 0
EOF
chmod +x $file
$file

rm /tmp/lfssession.pid $file
I just use 'startx' to start the desktop, or you can start each piece manually, I don't know how you start X so I can't give detailed instructions.

Have a look here:
http://www.linuxfromscratch.org/blfs...e/x/xinit.html
 
Old 06-23-2016, 10:49 AM   #64
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Looks like you are referring to /etc/X11/app-defaults/xinitrc

Do you use ~/.xinitrc ?

Do you have a multi-user graphic log-in for your desktop? with choice of desktop? /usr/share/xsessions?

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com

Last edited by Wayne Sallee; 06-23-2016 at 10:51 AM.
 
Old 06-23-2016, 11:10 AM   #65
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Yes and no.
I use ~/.xinitrc but if you are the only one on your system I suppose you could use the global xinitrc.
There is no session manager/graphical login.
 
Old 06-23-2016, 01:35 PM   #66
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Quote:
Originally Posted by Keith Hedger View Post

I just use 'startx' to start the desktop, or you can start each piece manually, I don't know how you start X so I can't give detailed instructions.
Right now, I just type "startx".

I think I'm going to install LightDM, as I want the most flexibility possible for choosing which desktop or user I want to log in with.

For now, if I start each piece manually, (I tried a few of them with varying results) what is the ordered list of the items I should start?

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 06-23-2016, 02:10 PM   #67
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
there is no particular order, I start compton ( which is the composite manager, not mine ) first then set the wallpaper then the desktop then window manager and finally the panels.

all the various parts are independent and can be mixed and matched with other similar apps, xfce4-panel, openbox window manager etc, that's how I designed it.

Last edited by Keith Hedger; 06-23-2016 at 02:12 PM.
 
Old 07-06-2016, 10:33 AM   #68
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Quote:
Originally Posted by Keith Hedger View Post
The 'buildall' script is just a convienience script if you have downloaded the individual archives if not just remothe command or build each manually, starting with the toolkit, all the parts are individual autotools pojects, you will probably be better off building each manually anyway.
I ran
Code:
unzip /sources/LFSDesktopProject.zip && cd LFS* &&
cd LFSToolKit &&
./configure --prefix=/usr &&
make &&
make install &&
cd ../LFSSetWallpaper &&
./configure --prefix=/usr &&
make &&
make install &&
cd ../LFSDesktop &&
./configure --prefix=/usr &&
make &&
make install &&
cd ../LFSWManager &&
./configure --prefix=/usr &&
make &&
make install &&
cd ../LFSPanel &&
./configure --prefix=/usr &&
make &&
make install &&
cd ../LFSApplications &&
./configure --prefix=/usr &&
make &&
make install &&
cd ..
beep
and it installed without error. I'm using install users method, and if an install is not able to write because of a permission error, it will error out, but I'm thinking that your install does not error out, or there is configuring that needs to be done after the install. For example one of the errors I'm getting when trying to run is
Code:
cat: /root/.config/LFS/lfsdesktop.rc: No such file or directory
Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 07-06-2016, 10:54 AM   #69
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
instead of chaining it all together do each install individually and narrow down what is going wrong where.
I don't use the users install method this may be your problem, just untar the the packages one by one and use ./configure,make,make install as usual and see what happens.

I have manually installed all these on an standard LFS system as well as a number of 'test' distros like xubuntu just to see if they where all right, and have not encountered a problem.

Just try installing normally instead of using that users system and see what happens.
I'm also not sure it will work that way anyway as there is a setuid helper app that is needed for the ldesktop that may be you problem.
 
Old 07-06-2016, 11:23 AM   #70
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
As a P.S. please use the github repo as that is most up to date.
 
Old 07-07-2016, 11:15 AM   #71
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
Does compton still need to be installed in order for your desktop to work?

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 07-07-2016, 11:25 AM   #72
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
You need some sort of composite manager running or you wont see the desktop properly and some window themes may not render properly.
Compton is based on the old xcompmgr so is pretty stable and light weight, you don't actually need any drop shadows, special effects etc to be displayed but the composite manager should be running.
 
Old 08-30-2016, 01:56 PM   #73
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,155

Original Poster
Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Updated the github repos, improvments to the window manager, treats trasient/modal windows better and stops them from getting lost under other windows owned by the same app.
Improved the window manager prefs dialog ( lfswmprefs ) to show a preview of the title font, and a couple of check boxes to set bold/italic, with a alphabetized menu of fonts.

More improvements to come.
 
  


Reply

Tags
blfs, desktop, lfs



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
Linux From Scratch Desktop Screen Shots Keith Hedger Linux - Member Desktop Screenshots 3 03-18-2023 09:15 AM
Linux From Scratch project jurp Linux From Scratch 26 03-17-2012 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration