|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
what should be in this file?
in the /root/.xinitrc file ?
------ What is the purpose of this file? https://wiki.archlinux.org/index.php/Xinitrc ------ Thanks. |
|
|||
http://en.wikibooks.org/wiki/Guide_t...D/As_a_Desktop
X -configure ------------------- Should people ever use this command? X -configure Is it safe? |
|
|||
http://www.openbsd.org/faq/faq11.html
This manual for example does not say what should be in this file? Or this is the answer : ---------------------------------------- startx(1) looks for the file .xinitrc in the user's home directory. .xinitrc is usually a shell script, which can start as many X "client" (applications that use X) programs as desired. When this script exits, the X server shuts down. Generally, most of the programs run by this script should run in the background, though the last one should run in the foreground (typically the window manager); when it exits, the script will exit, and X will be shutdown. In the simplest case, this can be as little as just the name of the window manager you wish to invoke: cwm Or you can get a little more fancy: xconsole -geometry -0+0 -fn 5x7 & oclock -geometry 75x75-0-0 & xsetroot -solid grey & cwm |
|
|||
/root/.xinitrc implies that you are logging into the system as root. This is not generally considered best practice. Users should log into their systems using non-root accounts using su(1) or sudo(8) only when needed. The point here is to minimize the possibility of doing irreparable damage from issuing incorrect commands.
As to the notation used earlier, ~/.xinitrc, the tilde, (~), expands to the home directory of the current user. So, if you have logged in with a non-root account, /root/.xinitrc will have no effect since it customizes the X environment only for the root user. |
|
|||
As discussed in Section 11.2.2 & 11.2.6 of the FAQ, X -configure creates a xorg.conf configuration file for X. In the majority of cases, there is no need to manually create this file.
There are situations where generating this file manually can correct (or allow the user to hand-edit the file...) errors in auto-detection, but again, this is rarely needed anymore. |
|
|||
when I'm messing around with installation , then I'm using root.
After it is another story. What should I write there ? |
|
|||
Quote:
barti, there is no reason to copy-and-paste large sections of the FAQ into messages here unless you have specific questions about a sentence or two. Otherwise, just refer to the section number(s). Likewise, creating several different messages, one after another, each with separate questions, is unnecessary. Simply edit a single message. I suspect this will help you organize your own thoughts into a more coherent pattern as well. |
|
|||
If you have performed the first reboot, you are no longer installing; you are now in the process of configuring. You should be using a non-root account now, only going into root through su(1) or sudo(8). Simply logging into the root account is sloppy, dangerous, & teaches nothing. Using a non-root account will show you when specifically root access is needed.
Quote:
|
|
|||
1. I have .xinitrc file in /root directory containing
exec gnome-session 2. I did pkg_add gnome-session and I took maybe 40 minutes to install it. But when I startx, I see only gray screen, no gnome. ================ Only after reading the manuals again I think I know what is going on: There are 2 files: .xsession (for xdm) and .xinitrc (for cwm) And you are talking about the .xinitrc file. How can I communicate If I don't know the language? I don't know what I'm talking about, It is like searching for keys in the water without my mask, can't see anything. I do have .xinitrc file with the line exec gnome-session inside it. STARTX and I see gray screen. By the way, why gnome uses .xinitrc and not .xsession ? - Last edited by barti; 14th July 2012 at 03:38 PM. |
|
|||
hi barti ! Congratulations ! I envy you since you have gnome working :-) .. (poor me, I had to regress to 5.0 just to install gnome 2 then upgrade etc ... )
To avoid logging as root , set sudo this way : 0- Login as root with su 1- run this command : visudo 2- uncomment (remove initial #) this line to use sudo without password : Code:
%wheel ALL=(ALL) NOPASSWD: SETENV: ALL The X -configure commands is needed only when X fails to start so you have to let load all drivers to get a second chance with some new or exotic hardware. For me it's this simple : no xdm , no .xinitrc , just install yoyr favorite window manager and start it with the command xinit .. example : golem , a lovely window manager : Code:
sudo pkg_add golem or make an alias in your .profile (it's in in your home directory) Code:
alias gn="xinit /usr/local/bin/gnome-session" alias go="xinit /usr/local/bin/golem" alias kd="xinit /usr/local/bin/startkde" alias io="xinit /usr/local/bin/ion3" alias fv="xinit /etc/X11/xinit/xinitrc" Quote:
|
|
|||
Ho no, gnome is not working
Still trying. What did u say about version 5.0 ? Maybe it is a bug in the system? my gray screen? It is hard to be positive after not succeeding in adsl and gnome setup, so much effort and nothing works. |
|
|||
Quote:
you put a link about .xinitrc in Arch .. while Arch allows for more tweaks and customizations , OpenBSD thinks buttons are bad and me as a newbie user I don't need to set those .. in the end all you need is CLI+some powerful desktop (gnome/kde) or CLI+some lightweight wm for legacy hardware .. the shiny idea of having tens of window managers set for you to choose from doesn't fascinate an OpenBSD user .. :-) Quote:
Quote:
first remove .xinitrc and install let's say : golem ? .. then and as a user , do : Code:
xinit /usr/local/bin/golem Usually when X fails , as root we reconfigure X doing : Code:
# X -configure # X -config /root/xorg.conf.new |
|
|||
X -configure is not the issue.
barti, do you have a ~/.xsession file? Is so, what does it contain? |
|
|||
...
Last edited by daemonfowl; 15th July 2012 at 01:38 AM. Reason: .. - theory .. |
|
|||
I used Linux about 6,7 years before, and now I want to go back to business again, but If I need to study all again it will be openbsd and not Linux.
I removed the .xsession file and only have the .xinitrc. Do I need both? if yes then why? --- Quote:
---- Quote:
I don't get it, Do I start X with gnome? Or gnome starts above the Xserver ? I forgot all the theory. |
|
||||
Quote:
Quote:
I can't get the philosophy here, what is the difference between display and window managers? The dispaly manager deals with hardware and window manager is the software? ---------------- Quote:
.xinitrc file is for X clients like gnome? Quote:
So I need both files? |
|
|||
The grey screen (and sometimes the green screen !) happens when a machine fails to meet the gnome 3 requirements (my case with Acer Aspire 5610) .. I suggested that you experiment with another non-problematic window manager (kde , xfce4 , ...) .. your X is working since xdm once worked.I mentioned X -configure for the info only since you asked.
Quote:
|
|
|||
http://www.openbsdsupport.org/gnome-GDM.html
http://floorter.blogspot.co.il/2011/...n-openbsd.html http://www.gabsoftware.com/tips/tuto...n-openbsd-4-8/ I need to try this . http://projects.gnome.org/gdm/ So gnome is a window manager and gdm is the twin brother , the display manager. If all went good with the installation , gnome was running and I knew nothing about how it works. Do I need to do this? pkg_add -i -vv gdm-2.20.11p1.tgz By the way , If you look at google you see other people trying to install gnome on openbsd with no success altough following the manuals and tutorials avaliable. That's the reason I put all the links above. - Last edited by barti; 14th July 2012 at 06:01 PM. |
|
|||
Quote:
Which user account did you log in when you tried to run the startx command? Was it root or your user account? Please post the entire contents of your .xinitrc here. Both from root and your home directory. /root/.xinitrc and your /home/username/.xinitrc My advice for you is to not run as root when you want to use Xwindows. It's better to run as your normal account. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
connect to OpenBSD BOX with VNC | mfaridi | OpenBSD General | 9 | 14th April 2010 08:38 PM |
Bewan ADSL modem bewan adsl pci | pico | OpenBSD Installation and Upgrading | 2 | 2nd April 2010 05:48 AM |
How to connect Free VPN with OpenBSD | mfaridi | OpenBSD General | 19 | 9th February 2009 12:52 PM |
connect to openbsd box (ssh) | milo974 | Other BSD and UNIX/UNIX-like | 4 | 3rd January 2009 02:44 AM |
PPPoE -> ADSL Router (Bridge) - Slow connect? | DraconianTimes | OpenBSD General | 0 | 31st December 2008 01:07 PM |