Re: recover a broken installation
Hi Piyush, your problem seems to be unrelated to X.org, which is what this mailing list is about. Please continue further discussion off-list, at askubuntu.com or answers.launchpad.net . You can remount the root filesystem with mount -o remount,rw / . However, this will probably not work due to the file system being damaged. Use fsck -p /dev/sdaX (fill in your root partition for "sdaX") to repair it (Chances are, you may need to manually confirm some important changes). After a reboot, the root filesystem should be mounted read-write. If you can restore settings and data (Basically /etc/ , /home, database/webserver directories in /var and dpkg --get-selections), formatting the partition and reinstalling Ubuntu may actually be the easier option though. Regards, Philipp PIYUSH SINGH wrote: > hi > i am a novice linux user using ubuntu 10.10 . while upgrading from 10.10 to > 11.04 my system went down due to power off . i am able to use the system > wiht the command line with root as user and the read only file system . i am > not able to run the do-release-upgrade as the system is read only . > The specs of the system are > compaq Cq45 207 tu > dual core > Please help > thanks in advance > > > > > > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: phi...@phihag.de signature.asc Description: OpenPGP digital signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: i couldn't start an application which is installed on the Server with Graphic User Interface
X applications (such as the ones rendering the graphical interface from your Linux Server) need an X server they can talk to. The X server renders the drawing commands by the application. While Ubuntu includes an X server, Windows does not. You need to install a Windows X server such as Xming (*and* enable X11 forwarding in your ssh client). Alternatively, you can use another protocol such as VNC or nomachine nx. You'll need a Windows client and a server on the .. well ... server. Be warned that X tends not to perform well over high-latency low-bandwidth links. Both VNC and nx are far more suitable on such Additionally, the output > Error in startup script: can't read "xcrys(platform)": no such > variable while executing > (...) indicates an error in the application you're using (XCrySDen). Please contact their support. Since you are apparently not running the latest version, I'd encourage you to do so before reporting a bug. Cheers, Philipp tian kong wrote: > i connected to a Server which is using SUSE Linux Enterprise Server 10 SP2 > (x86_64). > I have just installed xCrySDen on the Server. I want to open it with a > graphic user interface when i use a ssh client( F-Secure ssh client ) to > connect to the server. > > When i use F-Secure ssh client in Windows 7, login in the server, then start > xCrySDen, it failed with the following text: > > Application initialization failed: no display name and no $DISPLAY > environment variable > Error in startup script: can't read "xcrys(platform)": no such variable >while executing > "if { $xcrys(platform) == "windows" } { ># testing ... >rename exec _tcl_exec > >proc exec {args} { >global env > ># first try a normal exec..." >(file > "/home/users/luttangfl/software/XCrySDen-1.5.21-bin-semishared/Tcl/cygwin.tcl" > line 19) >invoked from within > "source $system(TOPDIR)/Tcl/cygwin.tcl" >(file > "/home/users/luttangfl/software/XCrySDen-1.5.21-bin-semishared/Tcl/xcInit.tcl" > line 433) > > then, i tried the command xlogo, it said: > Error: Can't open display: > > When i use Putty( another ssh client) in Windows 7, enable the X11 > forwarding in Putty, it still couldn't open the graphic user interface. > > But when i used Ubuntu10.04, open the terminal, and use the following > command: ssh -l abc -p 222 111.111.111.111 -X, and then after i login into > the server and start xCrySDen, it works, i can see the application's graphic > user interface. > i want it works correctly when the clients' OS is Windows. Can you help me? > Thx a lot > 【this is an email sent by tiankong】 > > > > > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: phi...@phihag.de signature.asc Description: OpenPGP digital signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: Issues with 2nd display being treated as primary (when not plugged in)
With a modern X, you should be able to leave the xorg.conf basically empty. Is there a reason why you populated it? Additionally, while I'm certainly no X expert, the Option "Enable" "true" lines seem suspect. Why do you need to turn on a monitor that's not connected? Also note that for LVDS1, the "Primary" option is ignored (line 432) and "Enable" is superfluous anyway. You can configure multi-monitor stuff with xrandr nowadays. Feel free to drop me your Skype, Jabber, or icq ID if you need additional clarification (Disclaimer: I'm not an X developer, just a user and administrator). This mailing list is fine too though. Regards, Philipp Bryan Hoyt | Brush Technology wrote: > Hello, > > I have an all-in-one box with a builtin monitor (LVDS1) and 2nd hotpluggable > monitor (VGA1). > > My problem in a few words: if I don't have a 2nd screen plugged in at boot, > I can't see a thing once X loads. If I have a 2nd screen plugged in at boot, > everything works more-or-less ok. > > More detail: If I have VGA1 unplugged at boot, X detects it (VGA1) as > primary for some reason, and shows a blank screen on LVDS1 (but during BIOS > load, grub, and plymouth splash, the picture shows on LVDS1 as expected. I'd > expect X to do the same, but it doesn't). When I plug in VGA1, the picture > shows up fine on there, but no pic on LVDS1 until I load up Monitor > Preferences or use xrandr. If VGA1 is plugged in during boot, then both > screens operate as expected. > > My xorg.conf: http://pastebin.com/NB06Dk47 > My lspci: http://pastebin.com/n6bPhupW > My xorg.log: http://pastebin.com/pyx5y2g0 > > Can anyone help me delve further into the problem? Perhaps even help fix it? > ;-) > > I'd be very keen to chat with someone in person (Skype or something), if > that's appropriate -- but I'm more than happy to discuss via this list if > that's better. > > Not wanting to be mercenary about it, but it's worth a small amount of money > to certain people to have this solved, so if there's not an obvious fix, > I could probably arrange some $$ compensation for time if an expert wants to > do some one-on-one consulting. I'd contribute any useful information back to > the list. > > Kind regards, > Bryan > > > > > > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: phi...@phihag.de signature.asc Description: OpenPGP digital signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: xditview '.' hangs: Errata to my previous mail :(
Sorry for the mixup, corrected: You've just introduced a race condition: What if I delete the file just after you called *stat* and create a *directory* in its place? Use fstat instead of stat. > Regards, > > Philipp > > Pat Kane wrote: >> Attached is a patch to try. >> >> Pat >> --- >> >> [PATCH xditview] Make sure filename is a regular file. >> >> If filename is not '-' or '|' make sure it is a regular file. >> >> Signed-off-by: Patrick E. Kane >> >> --- >> xditview.c | 14 ++ >> 1 files changed, 14 insertions(+), 0 deletions(-) >> >> diff --git a/xditview.c b/xditview.c >> index 99fd240..dbb183b 100644 >> --- a/xditview.c >> +++ b/xditview.c >> @@ -59,6 +59,7 @@ from the X Consortium. >> #include "xdit_mask.bm" >> #include >> #include >> +#include >> >> /* Command line options table. Only resources are entered here...there is a >> pass over the remaining options after XtParseCommand is let loose. */ >> @@ -395,6 +396,19 @@ VisitFile (char *name, Boolean resetPage) >> else if (name[0] == '|') >> new_file = popen (name+1, "r"); >> else { >> + struct stat stbuf; >> + /* >> + * Make sure it is a regular file >> + */ >> + if (stat(name, &stbuf) != 0) { >> + perror(name); >> + return; >> + } >> + if (! S_ISREG(stbuf.st_mode)){ >> + fprintf(stderr, "%s is not a regular file\n", name); >> + return; >> + } >> + >> new_file = fopen (name, "r"); >> seek = 1; >> } >> >> >> >> >> ___ >> xorg@lists.freedesktop.org: X.Org support >> Archives: http://lists.freedesktop.org/archives/xorg >> Info: http://lists.freedesktop.org/mailman/listinfo/xorg >> Your subscription address: phi...@phihag.de > > > > > > > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: phi...@phihag.de signature.asc Description: OpenPGP digital signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: xditview '.' hangs
You've just introduced a race condition: What if I delete the file just after you called fstat and create a regular file in its place? Use fstat instead of stat. Regards, Philipp Pat Kane wrote: > Attached is a patch to try. > > Pat > --- > > [PATCH xditview] Make sure filename is a regular file. > > If filename is not '-' or '|' make sure it is a regular file. > > Signed-off-by: Patrick E. Kane > > --- > xditview.c | 14 ++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/xditview.c b/xditview.c > index 99fd240..dbb183b 100644 > --- a/xditview.c > +++ b/xditview.c > @@ -59,6 +59,7 @@ from the X Consortium. > #include "xdit_mask.bm" > #include > #include > +#include > > /* Command line options table. Only resources are entered here...there is a > pass over the remaining options after XtParseCommand is let loose. */ > @@ -395,6 +396,19 @@ VisitFile (char *name, Boolean resetPage) > else if (name[0] == '|') > new_file = popen (name+1, "r"); > else { > + struct stat stbuf; > + /* > + * Make sure it is a regular file > + */ > + if (stat(name, &stbuf) != 0) { > + perror(name); > + return; > + } > + if (! S_ISREG(stbuf.st_mode)){ > + fprintf(stderr, "%s is not a regular file\n", name); > + return; > + } > + > new_file = fopen (name, "r"); > seek = 1; > } > > > > > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: phi...@phihag.de signature.asc Description: OpenPGP digital signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
How To debug evdev
Hi xorg list, my currently running X.org (1.7.7, from debian unstable) does not recognize USB input devices anymore. The devices show up in /dev and in a second X instance. However, I'd like to solve the problem once and for all and not lose my preciously configured X session. I assume the problem is in the evdev module as new devices do not show up in /var/log/Xorg.0.log as they usually do. So, how do I debug evdev? Is there a suitable way I can access X internals of a running session or restart evdev, but not X? Kind Regards, Philipp Hagemeister signature.asc Description: OpenPGP digital signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com