DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th May 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default HOWTO: Lightest XFCE - Making XFCE lighter and faster

XFCE is generally light out from the box but it can be a lot more light, to have most of its functionality we need only these 3 processes running:
Code:
 VSZ   RSS   COMMAND
14080  9300  xfwm4
23448 12020  xfce4-panel
19836  9512  xfce4-menu-plugin
mandatory ports: [thanks to lvlamb ]
/usr/ports/x11-wm/xfce4-wm
/usr/ports/x11-wm/xfce4-panel
/usr/ports/x11-wm/xfce4-desktop
# to get xfce4-menu-plugin
/usr/ports/x11-fm/thunar # to have nice and light file manager
/usr/ports/graphics/feh # to have wallpaper and nice ultra light/fast image viewer.

to start XFCE with only these processes we will use this ~/.xinitrc:
Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon && killall -9 xfce-mcs-manager &
  random_wallpaper.sh ~/gfx/wallpapers &
}
wait $pid
my random_wallpaper.sh script:
Code:
#! /bin/sh

walls="${1}"
count=`ls ${walls} | wc -l`
random=`( time ps aux ; date +"%S" ; w ) 2>&1 | cksum | awk '{print substr($0, 0, 5)}'`
choosen=`expr ${random} % ${count} + 1`
feh --bg-scale ${walls}/`ls ${walls} | sed -n ${choosen}p`
In XFCE generally all settings like current theme icon theme and so are handled by xfce-mcs-manager but we kill it and use pure old ~/.gtkrc-2.0 for that:
Code:
gtk-icon-theme-name = "Tango-Blue-Materia"
gtk-theme-name      = "Luminance"
gtk-font-name       = "Sans 10"
here are links for that themes if You like them:
gtk-icon-theme-name: http://vermaden.go.pl/tmp/xfce-icons.tar.gz
gtk-theme-name: http://vermaden.go.pl/tmp/xfce-theme.tar.gz

icons dir: ~/.icons/Tango-Blue-Materia
theme dir: ~/.themes/Luminance

to end work with XFCE You can traditionally hit CTRL + ALT + BACKSPACE or hit EXIT on XFCE panel.

the END RESULT looks like that:



Have Fun.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #2   (View Single Post)  
Old 5th May 2008
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by vermaden View Post
... is 404, not found.
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
  #3   (View Single Post)  
Old 5th May 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

These links were dead loong before now, I just moved these HOWTOs to daemonforums.org but I fixed the link you pointed.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #4   (View Single Post)  
Old 5th May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

You can attach files to your posts, please use this feature since it ensures the files will still be available in a few years.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 11th May 2008
mmusang mmusang is offline
New User
 
Join Date: May 2008
Posts: 2
Default

thx alot! it will benefits the community
Reply With Quote
  #6   (View Single Post)  
Old 3rd June 2008
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default

Quote:
Originally Posted by mmusang View Post
thx alot! it will benefits the community
I have done some small change on ~/.xinitrc:
Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon 
}
wait $pid
This is my screenshot:
Reply With Quote
  #7   (View Single Post)  
Old 4th June 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Quote:
Originally Posted by aleunix View Post
I have done some small change on ~/.xinitrc
killall -9 xfce-mcs-manager &
I needed to kill xfce-mcs-manager process because it was useless if you use ~/.gtkrc-2.0 fot GTK2 configuration, mabye now it does not load by default.

random_wallpaper.sh ~/gfx/wallpapers &
Just sets some random wallpaper as the script name says.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #8   (View Single Post)  
Old 9th July 2008
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

I fail to see how your "light" Xfce-desktop is any different than xfce-panel running
along any window manager. You would get the same screen shoot with
.xsession (I use XDM) which looks like

Code:
feh --bg-scale /home/oko/mywallpaper.jpg & 
xfce4-panel &
exec openbox

Last edited by Oko; 9th July 2008 at 09:29 PM.
Reply With Quote
  #9   (View Single Post)  
Old 27th August 2010
vato vato is offline
Port Guard
 
Join Date: Aug 2010
Posts: 31
Default

Quote:
Originally Posted by vermaden View Post
mandatory ports: [thanks to lvlamb ]
/usr/ports/x11-wm/xfce4-wm
/usr/ports/x11-wm/xfce4-panel
/usr/ports/x11-wm/xfce4-desktop
# to get xfce4-menu-plugin
/usr/ports/x11-fm/thunar # to have nice and light file manager
/usr/ports/graphics/feh # to have wallpaper and nice ultra light/fast image viewer
well...if i
Code:
pkg_add -r
xfce4-wm,xfce4-panel and xfce4-desktop got errors...
Reply With Quote
Old 27th August 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

@vato

I have just succesfully added these packages like that:
# pkg_add -r xfce4-wm xfce4-panel xfce4-desktop

What errors You got?
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Old 28th August 2010
vato vato is offline
Port Guard
 
Join Date: Aug 2010
Posts: 31
Default

by now got those 3 packages installed on system but can't start as u say:

where can i write/find this script? ==>
Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon 
}
wait $pid
i use to start gnomo with startx[echo "/usr/local/bin/gnome-session" > ~/.xinitrc]

Last edited by vato; 28th August 2010 at 02:03 AM.
Reply With Quote
Old 29th August 2010
rpindy rpindy is offline
Fdisk Soldier
 
Join Date: May 2010
Posts: 59
Default

Does that light XFCE have any GPL in it? I think it would be great if there was a decent GUI desktop with all BSD-compatible licenses.
Reply With Quote
Old 29th August 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Wikipedia's page on XFCE4 says:
Quote:
License GNU General Public License, GNU Lesser General Public License and BSD License
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 29th August 2010
vato vato is offline
Port Guard
 
Join Date: Aug 2010
Posts: 31
Default

Quote:
Originally Posted by vermaden View Post
What errors You got?
that can not start cause dunno where/how to put this script(whatever is):

Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon 
}
wait $pid
Reply With Quote
Old 30th August 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Quote:
Originally Posted by vato View Post
that can not start cause dunno where/how to put this script(whatever is):

Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon 
}
wait $pid
Which part You do not understand?

Quote:
Originally Posted by vermaden View Post
to start XFCE with only these processes we will use this ~/.xinitrc:
Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon && killall -9 xfce-mcs-manager &
  random_wallpaper.sh ~/gfx/wallpapers &
}
wait $pid
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Old 30th August 2010
vato vato is offline
Port Guard
 
Join Date: Aug 2010
Posts: 31
Default

Quote:
Originally Posted by vermaden View Post
Which part You do not understand?
do i have to put that on terminal? like root or user? do i need install xfce4?(in such case which is the bargain)
my way to start gnome:
Code:
$ echo "/usr/local/bin/gnome-session" > ~/.xinitrc
==> startx

kde:
Code:
$ echo "exec: /usr/localkde4/bin/startkde" > ~/.xinitrc
==> startx

xfce:
Code:
$ echo "/usr/local/bin/startxfce4" > ~/.xinitrc
==> startx
then got this error: /home/my_user/.xinitrc: /usr/localbin/startxfce4: not found


Last edited by vato; 30th August 2010 at 05:33 PM.
Reply With Quote
Old 30th August 2010
vato vato is offline
Port Guard
 
Join Date: Aug 2010
Posts: 31
Default

anyone with patience and a little time to spend...
Reply With Quote
Old 30th August 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
do i need install xfce4?
Yes, in order to run XFCE4 you need to install it first. You can install it with pkg_add: # pkg_add -r xfce4
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 30th August 2010
vato vato is offline
Port Guard
 
Join Date: Aug 2010
Posts: 31
Default

ok! but don't get still this part:
Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon 
}
wait $pid
where/how the f_ _k to put it?

if i install xfce is cause i wanna a speed WM/DE...like vermaden show/start this post...in others words i wanna xfce only with that 3 process running...

Last edited by vato; 30th August 2010 at 08:04 PM.
Reply With Quote
Old 30th August 2010
klanger klanger is offline
Port Guard
 
Join Date: May 2010
Posts: 29
Default

Quote:
Originally Posted by aleunix View Post
I have done some small change on ~/.xinitrc:
Code:
xfce4-panel & pid=$!
{
  xfwm4 --compositor=off --daemon 
}
wait $pid
How?
Open terminal (or in console):
Code:
ee /home/yourusername/.xinitrc
copy above lines
hit esc and hit enter

reboot and startx or simply
Code:
pkill Xorg
and startx


I would also install xfce4-goodies for all xfce4 goodies
Reply With Quote
Reply

Tags
xfce

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: XFCE MacOS-like menu plugin vermaden Guides 13 20th April 2009 06:40 AM
Xfce. Why didnt anyone tell me? neurosis FreeBSD Ports and Packages 4 21st October 2008 03:10 PM
xfce darken FreeBSD Ports and Packages 4 31st July 2008 05:28 PM
Autostart Xfce ninjatux FreeBSD General 8 16th June 2008 06:47 AM
Howto start the Xfce? aleunix OpenBSD Packages and Ports 5 3rd June 2008 10:58 AM


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick