DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default startx or xinit ? what difference ?

Hey ! how are you BSD Hackers ?

Just a question about the difference beween x launching command 'startx' and the other equivalent -if true- 'xinit'

when sometimes startx fails and ends in some bad window or blackens screen I kill X then type : xinit /etc/X11/xinit/xinitrc (under OpenBSD/NetBSD)

why does the first fail while the second succeeds ?
is the xinit a correct way of starting x ? I am starting to drop 'startx' on behalf of 'xinit' ..

sorry .. such annoying noob's questions .. but we are here to learn from you ..
Reply With Quote
  #2   (View Single Post)  
Old 21st February 2012
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

The short of it, is that xinit(1) just starts X, and startx(1) also initializes xauth(1) before starting X.

Usually you'll just want to use xinit(1)

startx(1) is actually just a shell script, so you can just open it with any text editor (The exact configuration may differ from system to system, lots of #IFDEF in the source ... During installation it's run through the C preprocessor)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
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
What is the difference? sharris FreeBSD General 2 26th January 2012 11:12 PM
log in to console and startx in os x questionguy Other BSD and UNIX/UNIX-like 11 25th August 2009 05:27 AM
Startx executes as root, "startx:not found" as user Mr-Biscuit NetBSD Installation and Upgrading 4 27th May 2009 08:44 AM
Startx fails disappearedng FreeBSD General 11 19th July 2008 09:32 AM
User startx error . bsdnewbie999 OpenBSD General 3 19th June 2008 02:08 AM


All times are GMT. The time now is 03:40 PM.


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