DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th June 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default Autostart Xfce

I run Xfce 4.4.2, whatever the latest is. On Debian, I used GDM to start Xfce, which I didn't like. On Gentoo, I used my /etc/conf.d/local file (I think, been a while) to start Xfce by running a command with su as my normal user. Then, I eventually started using Slim. I liked the first method better, but I'd like to change it up a bit. Is there a way for me to login first in the text interface and then once I've done so automatically run startxfce4 to start Xfce?
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #2   (View Single Post)  
Old 13th June 2008
chill's Avatar
chill chill is offline
Fdisk Soldier
 
Join Date: Jun 2008
Location: Federal Republic of the US
Posts: 74
Thanked 6 Times in 6 Posts
Default

echo "/usr/local/bin/startxfce4" > ~/.xinitrc

or are you trying to avoid having to do startx?

Last edited by chill; 13th June 2008 at 10:27 PM.
Reply With Quote
  #3   (View Single Post)  
Old 13th June 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

I'm trying to avoid doing that. I know how to do that.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #4   (View Single Post)  
Old 13th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

That's what ~/.xinitrc is designed for, putting it in your shells RC file instead wouldn't make a great bit of sense would it?
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 15th June 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

put that into your startup shell file ( ~/.profile / ~/.zshrc / ~/.bash+profile )
Code:
# start X11 after login on /dev/ttyv0 terminal
if [ $( tty ) = "/dev/ttyv0" ]; then
  nohup xinit -- -nolisten tcp -br -tst dpms nologo -xinerama -dpi 75 > /dev/null 2>&1 &
fi
With startxfce in ~/.xinitrc after you login on 1st virtual console XFCE will start automatically.
__________________
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
  #6   (View Single Post)  
Old 15th June 2008
Business_woman's Avatar
Business_woman Business_woman is offline
lieutenant
 
Join Date: May 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Thanks for the tip
__________________
I like cookies...
Reply With Quote
  #7   (View Single Post)  
Old 15th June 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

Thanks, vermaden. That's similar to what I was using on Gentoo, but different nonetheless.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #8   (View Single Post)  
Old 16th June 2008
Errinok Errinok is offline
Port Guard
 
Join Date: Jun 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by vermaden View Post
put that into your startup shell file ( ~/.profile / ~/.zshrc / ~/.bash+profile )
Code:
# start X11 after login on /dev/ttyv0 terminal
if [ $( tty ) = "/dev/ttyv0" ]; then
  nohup xinit -- -nolisten tcp -br -tst dpms nologo -xinerama -dpi 75 > /dev/null 2>&1 &
fi
With startxfce in ~/.xinitrc after you login on 1st virtual console XFCE will start automatically.
why do you need that big long command. cant you just use startx in between the if statement? if your xorg.conf is correct then shouldnt most of that be set (ie. xinerama, nologo)?
Reply With Quote
  #9   (View Single Post)  
Old 16th June 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by Errinok View Post
why do you need that big long command. cant you just use startx in between the if statement? if your xorg.conf is correct then shouldnt most of that be set (ie. xinerama, nologo)?
Some of these options work only from command line, like -dpi for example, you can specify DPI with nvidia driver but if you do the same with other then nvidia driver in xorg.conf it just do not work.

As I already had toadd CLI options I do not bothered in searching xorg.conf equivalents of these.

The nohup ${COMMAND} > /dev/null 2>&1 & is to start a process in background without nailing it ti this console (nohup) so you may CTRL-D safely on this terminal without killing X11.
__________________
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
Reply

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: Lightest XFCE - Making XFCE lighter and faster vermaden Guides 27 2nd September 2010 12:24 PM
portupgrade messed up my autostart in rc.conf semtecs FreeBSD Installation and Upgrading 6 17th March 2009 05:04 PM
Xfce. Why didnt anyone tell me? neurosis FreeBSD Ports and Packages 4 21st October 2008 03:10 PM
Installing Xfce rex FreeBSD General 9 4th September 2008 04:46 AM
xfce darken FreeBSD Ports and Packages 4 31st July 2008 05:28 PM


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


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