Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[background]
here's what i did: my old hardrive had a 10 G partition for linux (20 G m$ windoze). I bought a 100 G hardrive to be dedicated to linux. (i initially put fc5 on it - didn't like it so i'm back to rh9). i just wanted the same os i had with more space without having to update any preferences or install existing programs so instead of using the install cd's i booted up the new hd as hdb...
fdisk hdb
delete each (fc5) partition - i just dont like lvm
make a new liux partion for /
make a new partition for /boot
make a new swap partition
mkfs.ext3 hdb1
mkfs.ext3 hdb2
mkswap hdb3
cp -R /boot /mnt/hdb1 (remember to update grub.conf)
cp -R each dir under / to /mnt/hdb2
[/background]
here's where the problem starts:
i forgot to use option -p for cp to preserve mode/owner/permissions so everything had root as owner and group. (it was easy enough to chmod/ chgrp/ chown -R /home/schneidz)
now when i start my pc the graphical login screen doesnt come up and only root can startx. when schneidz does startx i get a grey screen with an x-mouse curser but the desktop doesnt come up.
i did startx >& xlog.txt
and here are the results:
Code:
[schneidz@hyper schneidz]$ cat xlog.txt
/usr/X11R6/bin/startx: line 134: cannot create temp file for here document: Permission denied
/usr/X11R6/bin/startx: line 134: cannot create temp file for here document: Permission denied
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/hyper:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.4.20-8 i686 [ELF]
Current Operating System: Linux hyper 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686
Build Date: 24 August 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 6 17:55:20 2006
(==) Using config file: "/etc/X11/xorg.conf"
(WW) fglrx: No matching Device section for instance (BusID PCI:1:0:1) found
(EE) fglrx(0): === [R200DALSetDisplayConfig] === CWDDC DisplaySetConfig failed: 6
modprobe: Can't locate module fglrx
[drm] failed to load kernel module "fglrx"
(EE) fglrx(0): DRIScreenInit failed!
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error: Cannot open "/var/tmp/server-0.xkm" to write keyboard description
> Exiting
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
Could not init font path element /usr/X11R6/lib/X11/fonts/local/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
AUDIT: Sun Aug 6 17:55:24 2006: 7900 X: client 1 rejected from local host
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
waiting for X server to begin accepting connections .
AUDIT: Sun Aug 6 17:55:26 2006: 7900 X: client 1 rejected from local host
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
..
AUDIT: Sun Aug 6 17:55:28 2006: 7900 X: client 1 rejected from local host
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
..
AUDIT: Sun Aug 6 17:55:30 2006: 7900 X: client 1 rejected from local host
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
..
giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): unexpected signal 2.
[schneidz@hyper schneidz]$
does anyone have any ideas how other users can use X short of me doing 'chmod -R 777 /' as root?
The X server itself (/usr/X11R6/bin/Xorg on my machine) needs to be suid root. If you didn't specify -p with cp, all of your suid executables (ping, Xorg, su, sudo, and so on) will have their suid bits cleared...
I don't know if this will solve the problem completely, but you should probably chmod u+s /usr/X11R6/bin/Xorg.
Also, /tmp and /var/tmp need to be world writable.
not really an 'x' quesiton anymore but my gnome-terminal only brings up a white box with no prompt to enter commands. seems like another perms issue; how can i get it to work properly (works fine for root).
fyi: to get evolution to get past its splash-screen, i had to chown schneidz /tmp/orbit-schneidz (i found that out by doing 'evolution --debug=FILENAME' from gnome-menu-button -> 'run command'
i know that my process isnt ideal and that is why i am getting arbitrary software hiccups but i think if we can get it repeatable we can sourceforge it into something usable for others.
I was wondering if it might be a device permissions problem, but if other terminals work, I suppose that's not the case. You could use strace to see if and where gnome-terminal is being given permission denied errors:
Code:
strace gnome-terminal 2>&1 | grep EACCES
strace will list system calls used by the specified program (such as open or write) to stderr, including their arguments and any error codes. EACCES happens to be the name of the constant for the permission denied error code. If gnome-terminal can't open a file because of permissions, you'll see a line like:
[background]
here's what i did: my old hardrive had a 10 G partition for linux (20 G m$ windoze). I bought a 100 G hardrive to be dedicated to linux. (i initially put fc5 on it - didn't like it so i'm back to rh9). i just wanted the same os i had with more space without having to update any preferences or install existing programs so instead of using the install cd's i booted up the new hd as hdb...
dd could have been used to image the drive/partition into another file/drive/partition, yes.
Another good thing to remember is to use the -a option of cp rather than only -R. From the cp manpage:
Code:
-a, --archive
Preserve as much as possible of the structure and attributes of
the original files in the copy (but do not preserve directory
structure). Equivalent to -dpPR.
I've used it myself every time I've ever needed to use a bigger drive/partition or when I've decided to try a different filesystem.
What happened with strace?
Last edited by zhangmaike; 08-18-2006 at 01:08 PM.
A segmentation fault is a memory-related error - the program is trying to access memory it doesn't have rights to (for example, accessing a block of memory that it hasn't allocated, or accessing a block of memory that it allocated but previously freed).
What is on line 428 of your run-mozilla.sh?
Does firefox work for your normal user, if you have it start fresh with no .mozilla directory? Try renaming .mozilla to something like old.mozilla. Firefox will recreate the directory when it is run again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.