csh1

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Persistent screen resolution on headless EC2 #7273
    csh1
    Participant

    Thank you so much, graywolf. I’m a novice Ubuntu user and I highly appreciate your help.

    My case is #1 (X was already running as display :0). Indeed I can run a NoMachine client and connect. But then I get the std 1024×786 resolution.

    I don’t have /etc/lightdm/lightdm.conf. The only file in /etc/lightdm is users.conf, and it does not have a [SeatDefault] section. Here’s the entire users.conf file:

    #
    # User accounts configuration
    #
    # NOTE: If you have AccountsService installed on your system, then LightDM will
    # use this instead and these settings will be ignored
    #
    # minimum-uid = Minimum UID required to be shown in greeter
    # hidden-users = Users that are not shown to the user
    # hidden-shells = Shells that indicate a user cannot login
    #
    [UserList]
    minimum-uid=500
    hidden-users=nobody nobody4 noaccess
    hidden-shells=/bin/false /usr/sbin/nologin

    I could not continue with your suggestions because of the above. But reading them I have two questions:

    Is xserver-command invoked by X11 with display and auth args (like :0 -auth /tmp/xyz)?
    If I can’t resolve the problem with the missing [SeatDefault], would it be possible to write a script /etc/init.d/createBigger0Display with link to it in /etc/rc2.d/S80create-Bigger0Display such that it will do the right thing? I’ve tried to do so with display :0, and after rebooting the machine I was not able to connect with a NoMachine client (gave me “no sessions” error). I must have done something wrong. After removing the createBigger0Display files I was able to reconnect as before, at 1024×786.

    Again, I highly appreciate your help!

    in reply to: Persistent screen resolution on headless EC2 #7253
    csh1
    Participant

    I’d like to clarify why I used display :1 and not :0 as the link recommends. I did it because of errors. Here’s what I’ve done:

    1. Reboot.

    2. Typed the following:
    $ sudo apt-get install xvfb
    $ COOKIE=ps -ef | md5sum | cut -f 1 -d ” ”
    $ AUTHFILE=$HOME/Xvfb-0.auth
    $ xauth -f $AUTHFILE add :0 MIT-MAGIC-COOKIE-1 $COOKIE
    (got “xauth: file /home/ubuntu/Xvfb-0.auth does not exist”, disregarded it)
    $ xauth add :0 MIT-MAGIC-COOKIE-1 $COOKIE
    (got “xauth: file /home/ubuntu/.Xauthority does not exist”, disregarded it)
    $ Xvfb :0 -auth $AUTHFILE -screen 0 1800x1200x24 &

    At this step I got
    Fatal server error:
    (EE) Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.

    I assumed that X+GNOME which I installed earlier (and which work beautifully with NoMachine at 1024×768 resolution) had already started after the reboot, so DISPLAY :0 was already in use when I typed the above shell commands.

    Any help on how to increase the resolution would be greatly appreciated. Thanks!!

Viewing 2 posts - 1 through 2 (of 2 total)