Chris Lord wrote:
> Alex,
>
> That is where I found the file before I edited it (xinitrc). I can't 
> look in the system folder using X11 terminal, only my user/private 
> folder. I have previously printed the doc you referenced and was using 
> it when I edited the file.
>
> I cannot find the file ~/.xinitrc (I assume "~/." means at root?)
No.  It means /Users/<yourusername>.  So ~/.xinitrc is 
/Users/<yourusername/.xinitrc .

> because the difficulty I have is trying to do anything at all as root. 
> I cannot log in as root, or act as root in the X11 terminal. 
"sudo -s" gives the effect of switching to root.

> When I use sudo to look for xinitrc in the terminal all I find is the 
> file in my private folder, just as if I searched for it from /user.
>
> The result of a Finder>Find from the Mac side, including invisible 
> files, reveals no file called ~/.xinitrc, only xinitrc in the location 
> user/private/etc/X11/xinit. When I look in the system folder all I see 
> is the library folder, and whereabouts ~/.xinitrc would be in that lot 
> is anybody's guess, Finder>Find certainly doesn't show it.
The Finder deliberately ignores files whose names start with a "."
>
> It would help if there were a way to log into OS X as root, like there 
> is in Linux. I've never known an OS like it for fighting you every 
> step of the way. Is there a way of reading root's password, or 
> resetting it to something memorable of my choosing? None of my OS X 
> advanced manuals tell of a way, they all trot the usual mantra of 
> avoiding logging on as root as if you were a complete novice.
>
> I am not worried about screwing my OS up because I have it cloned onto 
> a mirror partition on an external hard drive that is normally powered 
> down. I make daily incremental backups & I can boot from it, or a 
> patch partition and clone it back onto my user partition. So if 
> anything disastrous occurs, I can recover my previous state.
>
> Chris Lord
>
> This is what xinitrc looks like:
>
> #!/bin/sh
> # $Id: xinitrc,v 1.2 2003/02/27 19:03:30 jharper Exp $
>
> userresources=$HOME/.Xresources
> usermodmap=$HOME/.Xmodmap
> sysresources=/etc/X11/xinit/.Xresources
> sysmodmap=/etc/X11/xinit/.Xmodmap
>
> # merge in defaults and keymaps
>
> if [ -f $sysresources ]; then
> xrdb -merge $sysresources
> fi
>
> if [ -f $sysmodmap ]; then
> xmodmap $sysmodmap
> fi
>
> if [ -f $userresources ]; then
> xrdb -merge $userresources
> fi
>
> if [ -f $usermodmap ]; then
> xmodmap $usermodmap
> fi
>
> # start some nice programs
>
> xterm &
>
> # start the window manager
>
> exec quartz-wm
Aha!  Delete the above line.  What's happening is that quartz-wm gets 
run, and then nothing else happens because it doesn't have an & after it 
to send the process to background.  Thus nothing below actually run1.

> export KDEWM=kwin
> source /sw/bin/init.sh
> /sw/bin/startkde >/tmp/kde.log 2>&1
>
> On 17 Jul 2007, at 16:34, Alexander K. Hansen wrote:
>

-- 
Alexander K. Hansen
Fink User Liaison/Documenter
akh AT finkproject DOT org


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to