what does startx command do?What is a tty, and how do I access a tty?Why so many Virtual consoles?Is it possible to put a GUI to more than just TTY7?Ubuntu without Desktop Environment?lightdm doesn't show upCannot set lowest color depthsBlack Screen on LoginMultiple X sessions in virtual terminalsSwitching to another TTY after running startx and returning breaks XorgHow might I run web browsers from separate spaces (sandboxing)?Ubuntu 16.10 - X.org not startingUnable to chain startx commandnvidia backlight brightness problemUbuntu 17.10 Nvidia XORG settings do not save (resolution, orientation, hz, color correction… etc)System frozen and lightdm does not restartinstalled ubuntu-desktop on ubbuntu server AND: startx requires sudo startx

What does Jesus mean regarding "Raca," and "you fool?" - is he contrasting them?

gerund and noun applications

두음법칙 - When did North and South diverge in pronunciation of initial ㄹ?

Geography in 3D perspective

In Aliens, how many people were on LV-426 before the Marines arrived​?

What does "mu" mean as an interjection?

Does the attack bonus from a Masterwork weapon stack with the attack bonus from Masterwork ammunition?

How to terminate ping <dest> &

Generic TVP tradeoffs?

Practical application of matrices and determinants

Print last inputted byte

Comment Box for Substitution Method of Integrals

Can a medieval gyroplane be built?

Why didn't Héctor fade away after this character died in the movie Coco?

If "dar" means "to give", what does "daros" mean?

World War I as a war of liberals against authoritarians?

Are dual Irish/British citizens bound by the 90/180 day rule when travelling in the EU after Brexit?

Do I need to consider instance restrictions when showing a language is in P?

PTIJ: Do Irish Jews have "the luck of the Irish"?

Unfrosted light bulb

Turning a hard to access nut?

I got the following comment from a reputed math journal. What does it mean?

What exactly term 'companion plants' means?

What can I do if I am asked to learn different programming languages very frequently?



what does startx command do?


What is a tty, and how do I access a tty?Why so many Virtual consoles?Is it possible to put a GUI to more than just TTY7?Ubuntu without Desktop Environment?lightdm doesn't show upCannot set lowest color depthsBlack Screen on LoginMultiple X sessions in virtual terminalsSwitching to another TTY after running startx and returning breaks XorgHow might I run web browsers from separate spaces (sandboxing)?Ubuntu 16.10 - X.org not startingUnable to chain startx commandnvidia backlight brightness problemUbuntu 17.10 Nvidia XORG settings do not save (resolution, orientation, hz, color correction… etc)System frozen and lightdm does not restartinstalled ubuntu-desktop on ubbuntu server AND: startx requires sudo startx













16















While reading about Ubuntu I found the following statement.....




If the display manager is not started by default in the default runlevel, you can start X a different way, after logging on to a text-mode console, by running startx from the command line.




What does it mean to be a default runlevel?
And when I tried this on my terminal I got this:



anupam@JAZZ:~$ startx

X: user not authorized to run the X server, aborting.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error









share|improve this question
























  • I just ran startx but I got the same error as you so I did it sudo. Turns it it logged me into root account. What I did to return to my user was logout from root.

    – user271219
    Oct 29 '14 at 12:30















16















While reading about Ubuntu I found the following statement.....




If the display manager is not started by default in the default runlevel, you can start X a different way, after logging on to a text-mode console, by running startx from the command line.




What does it mean to be a default runlevel?
And when I tried this on my terminal I got this:



anupam@JAZZ:~$ startx

X: user not authorized to run the X server, aborting.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error









share|improve this question
























  • I just ran startx but I got the same error as you so I did it sudo. Turns it it logged me into root account. What I did to return to my user was logout from root.

    – user271219
    Oct 29 '14 at 12:30













16












16








16


11






While reading about Ubuntu I found the following statement.....




If the display manager is not started by default in the default runlevel, you can start X a different way, after logging on to a text-mode console, by running startx from the command line.




What does it mean to be a default runlevel?
And when I tried this on my terminal I got this:



anupam@JAZZ:~$ startx

X: user not authorized to run the X server, aborting.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error









share|improve this question
















While reading about Ubuntu I found the following statement.....




If the display manager is not started by default in the default runlevel, you can start X a different way, after logging on to a text-mode console, by running startx from the command line.




What does it mean to be a default runlevel?
And when I tried this on my terminal I got this:



anupam@JAZZ:~$ startx

X: user not authorized to run the X server, aborting.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error






xorg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 31 '14 at 20:23









Braiam

52.3k20138223




52.3k20138223










asked Aug 31 '14 at 18:00









lazaruslazarus

65641438




65641438












  • I just ran startx but I got the same error as you so I did it sudo. Turns it it logged me into root account. What I did to return to my user was logout from root.

    – user271219
    Oct 29 '14 at 12:30

















  • I just ran startx but I got the same error as you so I did it sudo. Turns it it logged me into root account. What I did to return to my user was logout from root.

    – user271219
    Oct 29 '14 at 12:30
















I just ran startx but I got the same error as you so I did it sudo. Turns it it logged me into root account. What I did to return to my user was logout from root.

– user271219
Oct 29 '14 at 12:30





I just ran startx but I got the same error as you so I did it sudo. Turns it it logged me into root account. What I did to return to my user was logout from root.

– user271219
Oct 29 '14 at 12:30










5 Answers
5






active

oldest

votes


















22














Once upon a time(1), when the memory of the computers was measured in kilobytes and the disks in megabytes, running the graphic interface all the time was considered harmful.



Most Unix computers were used for scientific computations and simulation in multi-user environments, and the graphic interface running on them would reduce the memory and CPU power available to them.



So when you needed a graphical interface you just started it with startx (2).



startx basically runs an Xserver (the graphical "driver") and a command which run on it, which is typically a window manager. By default the commands that are run are in ~/.xinitrc file in your home directory, or some generic system file otherwise.



Modern systems are thought from the bottom up to have a graphical system running all the time, so no one has probably checked the working of startx for ages -- that explains a lot of strange behavior you can have.



If you want to experiment and the feel the good old times, the best thing is doing the following:



A) install Xnest and fvwm. Xnest is a graphic server-within-a-server, a kind of server that will open as a window in your normal system. Fvwm is a very simple window manager which was very popular back then. You will need old pixmap fonts, too.



sudo apt-get install xnest fvwm 
sudo apt-get install xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi-transcoded xfonts-75dpi


B) write this file somewhere, for example in you home dir, and call it ~/test:



#!/bin/bash 
#
xterm &
exec fvwm2


C) Run (notice: startx is normally run with first the client command, then a double dash, and then a server command. As I said, most new systems do not have sensible defaults for startx alone.).



cd ~
startx ~/test -- /usr/bin/Xnest -ac :1 -geometry 800x600


...and you have a 80ies workstation screen:



enter image description here



(You can have the menu by clicking on the "Xnest" desktop).



...and if you feel really adventurous, you can start a native session on another virtual console (read the other answers) by going to one of them with Ctrl-Alt-F1, loggin in, and



startx ~/test 


which will normally open on Ctrl-Alt-F8.



Notice: modern desktop environments are not designed to run simultaneously, for the same user, in two different consoles. So do not use gnome-shell or unity or modern things when doing this experiments, or you could mess up your configuration.





Footnotes:

(1) Speaking about around 1980-90 here.



(2) For example, I had a laptop with 256k of RAM. It was painfully slow in the (B&W!) graphic interface, but snappy in the console. So I did most of my work (editing C, LaTeX and similar files) in console mode, and switched to the graphic environment only when really needed.






share|improve this answer




















  • 4





    Thanx @ Rmano ,great explanation totally got it...

    – lazarus
    Sep 7 '14 at 10:47


















9














startx starts the xsession or the graphical interface where you see a login screen and anything more than just an ascii console (text session).



You are receiving this error because the xsession is already started and you are trying to execute the command from inside the xsession on tty7.



tty7 is the user interface that exists at ctrl + alt + f7 (default xsession).



tty1 is the user interface that exists at ctrl + alt + f1.



tty2 is the user interface that exists at ctrl + alt + f2 . . . and so on.



tty1 - tty6 are text sessions and you can login with your username and password on one of these screens. After you login, you can run the command startx and the xsession will start in tty7 if it is not already running and tty8 if tty7 is already running an xsession.




Run Levels:



run-level 0 Halt - Shuts down the system.



run-level 1 Single-user mode - Mode for administrative tasks.



run-level 2 Graphical multi-user with networking - Starts the system normally.



run-level 3-5 Unused but configured the same as runlevel 2



run-level 6 Reboot - Reboots the system.



The term runlevel refers to a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine[citation needed], may be used. S is sometimes used as a synonym for one of the levels. Only one "runlevel" is executed on bootup - run levels are not executed sequentially, i.e. either runlevel 2 OR 3 OR 4 is executed, not 2 then 3 then 4. - en.wikipedia.org/wiki/Runlevel






share|improve this answer

























  • Thanx mchid it helped me a lot,

    – lazarus
    Aug 31 '14 at 19:16











  • but when i login to tty1 and performed $startx ,I got a desktop window without any launchbar and other options...(on tty8)-ctrl+Alt+F8, is that my startx was not well configured or it does show some limited options on startx(like here only Desktop)

    – lazarus
    Aug 31 '14 at 19:21






  • 1





    @jazzz That is your default x environment. You most likely have multiple desktop environments installed. You should be able to CTRL + T to get a terminal so you can run commands like unity or gnome-shell --replace or even gnome-panel or metacity --replace.

    – mchid
    Aug 31 '14 at 19:38












  • @jazzz Also, if you accept this answer, please click the icon on the left to close it out. thanks!

    – mchid
    Aug 31 '14 at 19:46











  • sorry I am bit late for another query regarding this---is the new window that i got by Ctrl+Alt+F8 ,as I stated above is similar to workspace?

    – lazarus
    Sep 1 '14 at 14:04


















4














It simply means at a different tty.



Quotying the linked question:



By default Ubuntu has 7 tty's.



1-6 are command line only, 7 runs your X session (your normal graphical desktop).



To access them, use this keyboard shortcut: Ctrl + Alt + F1



(changing F1 to F1-F6 to access the terminal that you need)



To get back to your X session (the normal desktop), use: Ctrl + Alt + F7



after logging on to a text-mode console simply means logging in to a different tty and typing the command:



startx





share|improve this answer
































    1














    QEMU + Buildroot minimal example



    My favorite way to learn what something does is by making a minimal example that runs it.



    On Ubuntu, this is hard since a second startx might conflict with your current desktop.



    https://askubuntu.com/a/519164/52975 proposes Xnest, but with QEMU + Buildroot we can go even more minimal and create a micro distro with only X11 installed.



    This way it should be easier to understand what is going on.



    I've described the distro creation at: https://unix.stackexchange.com/a/306116/32558



    Once you've got the image running on QEMU, you start on a TTY shell.



    Then when you do:



    root
    startx


    it starts an X11 GUI:



    enter image description here



    Now take a look at the source for startx inside that distro, which is just a shell script.



    It is a simple wrapper over /usr/bin/xinit, and that it passes /etc/X11/xinit/xinitrc to xinit.



    If you open /etc/X11/xinit/xinitrc, it contains the following lines:



    twm &
    xclock -geometry 50x50-1+1 &
    xterm -geometry 80x50+494+51 &
    xterm -geometry 80x20+494-0 &


    so we see that it starts up:




    • twm: a very simple and old window manager


    • xclock and xterm which we see on screen

    For /usr/bin/xinit, we can do:



    man xinit


    which says that:




    If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to
    start up client programs. If no such file exists, xinit will use the following as a default:



    xterm -geometry +1+1 -n login -display :0


    If no specific server program is given on the command line, xinit will look for a file in the user's home directory called .xserverrc to run as a shell script to
    start up the server. If no such file exists, xinit will use the following as a default:



    X :0






    share|improve this answer
































      0














      As Rmano notes, startx is a very old approach. Way back when this was used, the X11 binary was installed setuid root.



      I just tried this out in a VM and indeed, startx fails as you describe, by default. chmod u+s /usr/lib/xorg/Xorg fixes that though.



      I don't recommend making Xorg be setuid root. The world has moved away from that for Good Reason. But if you're playing around in a throw-away VM, that's how to make startx work.






      share|improve this answer






















        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "89"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f518454%2fwhat-does-startx-command-do%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        22














        Once upon a time(1), when the memory of the computers was measured in kilobytes and the disks in megabytes, running the graphic interface all the time was considered harmful.



        Most Unix computers were used for scientific computations and simulation in multi-user environments, and the graphic interface running on them would reduce the memory and CPU power available to them.



        So when you needed a graphical interface you just started it with startx (2).



        startx basically runs an Xserver (the graphical "driver") and a command which run on it, which is typically a window manager. By default the commands that are run are in ~/.xinitrc file in your home directory, or some generic system file otherwise.



        Modern systems are thought from the bottom up to have a graphical system running all the time, so no one has probably checked the working of startx for ages -- that explains a lot of strange behavior you can have.



        If you want to experiment and the feel the good old times, the best thing is doing the following:



        A) install Xnest and fvwm. Xnest is a graphic server-within-a-server, a kind of server that will open as a window in your normal system. Fvwm is a very simple window manager which was very popular back then. You will need old pixmap fonts, too.



        sudo apt-get install xnest fvwm 
        sudo apt-get install xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi-transcoded xfonts-75dpi


        B) write this file somewhere, for example in you home dir, and call it ~/test:



        #!/bin/bash 
        #
        xterm &
        exec fvwm2


        C) Run (notice: startx is normally run with first the client command, then a double dash, and then a server command. As I said, most new systems do not have sensible defaults for startx alone.).



        cd ~
        startx ~/test -- /usr/bin/Xnest -ac :1 -geometry 800x600


        ...and you have a 80ies workstation screen:



        enter image description here



        (You can have the menu by clicking on the "Xnest" desktop).



        ...and if you feel really adventurous, you can start a native session on another virtual console (read the other answers) by going to one of them with Ctrl-Alt-F1, loggin in, and



        startx ~/test 


        which will normally open on Ctrl-Alt-F8.



        Notice: modern desktop environments are not designed to run simultaneously, for the same user, in two different consoles. So do not use gnome-shell or unity or modern things when doing this experiments, or you could mess up your configuration.





        Footnotes:

        (1) Speaking about around 1980-90 here.



        (2) For example, I had a laptop with 256k of RAM. It was painfully slow in the (B&W!) graphic interface, but snappy in the console. So I did most of my work (editing C, LaTeX and similar files) in console mode, and switched to the graphic environment only when really needed.






        share|improve this answer




















        • 4





          Thanx @ Rmano ,great explanation totally got it...

          – lazarus
          Sep 7 '14 at 10:47















        22














        Once upon a time(1), when the memory of the computers was measured in kilobytes and the disks in megabytes, running the graphic interface all the time was considered harmful.



        Most Unix computers were used for scientific computations and simulation in multi-user environments, and the graphic interface running on them would reduce the memory and CPU power available to them.



        So when you needed a graphical interface you just started it with startx (2).



        startx basically runs an Xserver (the graphical "driver") and a command which run on it, which is typically a window manager. By default the commands that are run are in ~/.xinitrc file in your home directory, or some generic system file otherwise.



        Modern systems are thought from the bottom up to have a graphical system running all the time, so no one has probably checked the working of startx for ages -- that explains a lot of strange behavior you can have.



        If you want to experiment and the feel the good old times, the best thing is doing the following:



        A) install Xnest and fvwm. Xnest is a graphic server-within-a-server, a kind of server that will open as a window in your normal system. Fvwm is a very simple window manager which was very popular back then. You will need old pixmap fonts, too.



        sudo apt-get install xnest fvwm 
        sudo apt-get install xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi-transcoded xfonts-75dpi


        B) write this file somewhere, for example in you home dir, and call it ~/test:



        #!/bin/bash 
        #
        xterm &
        exec fvwm2


        C) Run (notice: startx is normally run with first the client command, then a double dash, and then a server command. As I said, most new systems do not have sensible defaults for startx alone.).



        cd ~
        startx ~/test -- /usr/bin/Xnest -ac :1 -geometry 800x600


        ...and you have a 80ies workstation screen:



        enter image description here



        (You can have the menu by clicking on the "Xnest" desktop).



        ...and if you feel really adventurous, you can start a native session on another virtual console (read the other answers) by going to one of them with Ctrl-Alt-F1, loggin in, and



        startx ~/test 


        which will normally open on Ctrl-Alt-F8.



        Notice: modern desktop environments are not designed to run simultaneously, for the same user, in two different consoles. So do not use gnome-shell or unity or modern things when doing this experiments, or you could mess up your configuration.





        Footnotes:

        (1) Speaking about around 1980-90 here.



        (2) For example, I had a laptop with 256k of RAM. It was painfully slow in the (B&W!) graphic interface, but snappy in the console. So I did most of my work (editing C, LaTeX and similar files) in console mode, and switched to the graphic environment only when really needed.






        share|improve this answer




















        • 4





          Thanx @ Rmano ,great explanation totally got it...

          – lazarus
          Sep 7 '14 at 10:47













        22












        22








        22







        Once upon a time(1), when the memory of the computers was measured in kilobytes and the disks in megabytes, running the graphic interface all the time was considered harmful.



        Most Unix computers were used for scientific computations and simulation in multi-user environments, and the graphic interface running on them would reduce the memory and CPU power available to them.



        So when you needed a graphical interface you just started it with startx (2).



        startx basically runs an Xserver (the graphical "driver") and a command which run on it, which is typically a window manager. By default the commands that are run are in ~/.xinitrc file in your home directory, or some generic system file otherwise.



        Modern systems are thought from the bottom up to have a graphical system running all the time, so no one has probably checked the working of startx for ages -- that explains a lot of strange behavior you can have.



        If you want to experiment and the feel the good old times, the best thing is doing the following:



        A) install Xnest and fvwm. Xnest is a graphic server-within-a-server, a kind of server that will open as a window in your normal system. Fvwm is a very simple window manager which was very popular back then. You will need old pixmap fonts, too.



        sudo apt-get install xnest fvwm 
        sudo apt-get install xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi-transcoded xfonts-75dpi


        B) write this file somewhere, for example in you home dir, and call it ~/test:



        #!/bin/bash 
        #
        xterm &
        exec fvwm2


        C) Run (notice: startx is normally run with first the client command, then a double dash, and then a server command. As I said, most new systems do not have sensible defaults for startx alone.).



        cd ~
        startx ~/test -- /usr/bin/Xnest -ac :1 -geometry 800x600


        ...and you have a 80ies workstation screen:



        enter image description here



        (You can have the menu by clicking on the "Xnest" desktop).



        ...and if you feel really adventurous, you can start a native session on another virtual console (read the other answers) by going to one of them with Ctrl-Alt-F1, loggin in, and



        startx ~/test 


        which will normally open on Ctrl-Alt-F8.



        Notice: modern desktop environments are not designed to run simultaneously, for the same user, in two different consoles. So do not use gnome-shell or unity or modern things when doing this experiments, or you could mess up your configuration.





        Footnotes:

        (1) Speaking about around 1980-90 here.



        (2) For example, I had a laptop with 256k of RAM. It was painfully slow in the (B&W!) graphic interface, but snappy in the console. So I did most of my work (editing C, LaTeX and similar files) in console mode, and switched to the graphic environment only when really needed.






        share|improve this answer















        Once upon a time(1), when the memory of the computers was measured in kilobytes and the disks in megabytes, running the graphic interface all the time was considered harmful.



        Most Unix computers were used for scientific computations and simulation in multi-user environments, and the graphic interface running on them would reduce the memory and CPU power available to them.



        So when you needed a graphical interface you just started it with startx (2).



        startx basically runs an Xserver (the graphical "driver") and a command which run on it, which is typically a window manager. By default the commands that are run are in ~/.xinitrc file in your home directory, or some generic system file otherwise.



        Modern systems are thought from the bottom up to have a graphical system running all the time, so no one has probably checked the working of startx for ages -- that explains a lot of strange behavior you can have.



        If you want to experiment and the feel the good old times, the best thing is doing the following:



        A) install Xnest and fvwm. Xnest is a graphic server-within-a-server, a kind of server that will open as a window in your normal system. Fvwm is a very simple window manager which was very popular back then. You will need old pixmap fonts, too.



        sudo apt-get install xnest fvwm 
        sudo apt-get install xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi-transcoded xfonts-75dpi


        B) write this file somewhere, for example in you home dir, and call it ~/test:



        #!/bin/bash 
        #
        xterm &
        exec fvwm2


        C) Run (notice: startx is normally run with first the client command, then a double dash, and then a server command. As I said, most new systems do not have sensible defaults for startx alone.).



        cd ~
        startx ~/test -- /usr/bin/Xnest -ac :1 -geometry 800x600


        ...and you have a 80ies workstation screen:



        enter image description here



        (You can have the menu by clicking on the "Xnest" desktop).



        ...and if you feel really adventurous, you can start a native session on another virtual console (read the other answers) by going to one of them with Ctrl-Alt-F1, loggin in, and



        startx ~/test 


        which will normally open on Ctrl-Alt-F8.



        Notice: modern desktop environments are not designed to run simultaneously, for the same user, in two different consoles. So do not use gnome-shell or unity or modern things when doing this experiments, or you could mess up your configuration.





        Footnotes:

        (1) Speaking about around 1980-90 here.



        (2) For example, I had a laptop with 256k of RAM. It was painfully slow in the (B&W!) graphic interface, but snappy in the console. So I did most of my work (editing C, LaTeX and similar files) in console mode, and switched to the graphic environment only when really needed.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 7 mins ago









        user10962

        1,57721012




        1,57721012










        answered Sep 2 '14 at 13:51









        RmanoRmano

        25.5k880147




        25.5k880147







        • 4





          Thanx @ Rmano ,great explanation totally got it...

          – lazarus
          Sep 7 '14 at 10:47












        • 4





          Thanx @ Rmano ,great explanation totally got it...

          – lazarus
          Sep 7 '14 at 10:47







        4




        4





        Thanx @ Rmano ,great explanation totally got it...

        – lazarus
        Sep 7 '14 at 10:47





        Thanx @ Rmano ,great explanation totally got it...

        – lazarus
        Sep 7 '14 at 10:47













        9














        startx starts the xsession or the graphical interface where you see a login screen and anything more than just an ascii console (text session).



        You are receiving this error because the xsession is already started and you are trying to execute the command from inside the xsession on tty7.



        tty7 is the user interface that exists at ctrl + alt + f7 (default xsession).



        tty1 is the user interface that exists at ctrl + alt + f1.



        tty2 is the user interface that exists at ctrl + alt + f2 . . . and so on.



        tty1 - tty6 are text sessions and you can login with your username and password on one of these screens. After you login, you can run the command startx and the xsession will start in tty7 if it is not already running and tty8 if tty7 is already running an xsession.




        Run Levels:



        run-level 0 Halt - Shuts down the system.



        run-level 1 Single-user mode - Mode for administrative tasks.



        run-level 2 Graphical multi-user with networking - Starts the system normally.



        run-level 3-5 Unused but configured the same as runlevel 2



        run-level 6 Reboot - Reboots the system.



        The term runlevel refers to a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine[citation needed], may be used. S is sometimes used as a synonym for one of the levels. Only one "runlevel" is executed on bootup - run levels are not executed sequentially, i.e. either runlevel 2 OR 3 OR 4 is executed, not 2 then 3 then 4. - en.wikipedia.org/wiki/Runlevel






        share|improve this answer

























        • Thanx mchid it helped me a lot,

          – lazarus
          Aug 31 '14 at 19:16











        • but when i login to tty1 and performed $startx ,I got a desktop window without any launchbar and other options...(on tty8)-ctrl+Alt+F8, is that my startx was not well configured or it does show some limited options on startx(like here only Desktop)

          – lazarus
          Aug 31 '14 at 19:21






        • 1





          @jazzz That is your default x environment. You most likely have multiple desktop environments installed. You should be able to CTRL + T to get a terminal so you can run commands like unity or gnome-shell --replace or even gnome-panel or metacity --replace.

          – mchid
          Aug 31 '14 at 19:38












        • @jazzz Also, if you accept this answer, please click the icon on the left to close it out. thanks!

          – mchid
          Aug 31 '14 at 19:46











        • sorry I am bit late for another query regarding this---is the new window that i got by Ctrl+Alt+F8 ,as I stated above is similar to workspace?

          – lazarus
          Sep 1 '14 at 14:04















        9














        startx starts the xsession or the graphical interface where you see a login screen and anything more than just an ascii console (text session).



        You are receiving this error because the xsession is already started and you are trying to execute the command from inside the xsession on tty7.



        tty7 is the user interface that exists at ctrl + alt + f7 (default xsession).



        tty1 is the user interface that exists at ctrl + alt + f1.



        tty2 is the user interface that exists at ctrl + alt + f2 . . . and so on.



        tty1 - tty6 are text sessions and you can login with your username and password on one of these screens. After you login, you can run the command startx and the xsession will start in tty7 if it is not already running and tty8 if tty7 is already running an xsession.




        Run Levels:



        run-level 0 Halt - Shuts down the system.



        run-level 1 Single-user mode - Mode for administrative tasks.



        run-level 2 Graphical multi-user with networking - Starts the system normally.



        run-level 3-5 Unused but configured the same as runlevel 2



        run-level 6 Reboot - Reboots the system.



        The term runlevel refers to a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine[citation needed], may be used. S is sometimes used as a synonym for one of the levels. Only one "runlevel" is executed on bootup - run levels are not executed sequentially, i.e. either runlevel 2 OR 3 OR 4 is executed, not 2 then 3 then 4. - en.wikipedia.org/wiki/Runlevel






        share|improve this answer

























        • Thanx mchid it helped me a lot,

          – lazarus
          Aug 31 '14 at 19:16











        • but when i login to tty1 and performed $startx ,I got a desktop window without any launchbar and other options...(on tty8)-ctrl+Alt+F8, is that my startx was not well configured or it does show some limited options on startx(like here only Desktop)

          – lazarus
          Aug 31 '14 at 19:21






        • 1





          @jazzz That is your default x environment. You most likely have multiple desktop environments installed. You should be able to CTRL + T to get a terminal so you can run commands like unity or gnome-shell --replace or even gnome-panel or metacity --replace.

          – mchid
          Aug 31 '14 at 19:38












        • @jazzz Also, if you accept this answer, please click the icon on the left to close it out. thanks!

          – mchid
          Aug 31 '14 at 19:46











        • sorry I am bit late for another query regarding this---is the new window that i got by Ctrl+Alt+F8 ,as I stated above is similar to workspace?

          – lazarus
          Sep 1 '14 at 14:04













        9












        9








        9







        startx starts the xsession or the graphical interface where you see a login screen and anything more than just an ascii console (text session).



        You are receiving this error because the xsession is already started and you are trying to execute the command from inside the xsession on tty7.



        tty7 is the user interface that exists at ctrl + alt + f7 (default xsession).



        tty1 is the user interface that exists at ctrl + alt + f1.



        tty2 is the user interface that exists at ctrl + alt + f2 . . . and so on.



        tty1 - tty6 are text sessions and you can login with your username and password on one of these screens. After you login, you can run the command startx and the xsession will start in tty7 if it is not already running and tty8 if tty7 is already running an xsession.




        Run Levels:



        run-level 0 Halt - Shuts down the system.



        run-level 1 Single-user mode - Mode for administrative tasks.



        run-level 2 Graphical multi-user with networking - Starts the system normally.



        run-level 3-5 Unused but configured the same as runlevel 2



        run-level 6 Reboot - Reboots the system.



        The term runlevel refers to a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine[citation needed], may be used. S is sometimes used as a synonym for one of the levels. Only one "runlevel" is executed on bootup - run levels are not executed sequentially, i.e. either runlevel 2 OR 3 OR 4 is executed, not 2 then 3 then 4. - en.wikipedia.org/wiki/Runlevel






        share|improve this answer















        startx starts the xsession or the graphical interface where you see a login screen and anything more than just an ascii console (text session).



        You are receiving this error because the xsession is already started and you are trying to execute the command from inside the xsession on tty7.



        tty7 is the user interface that exists at ctrl + alt + f7 (default xsession).



        tty1 is the user interface that exists at ctrl + alt + f1.



        tty2 is the user interface that exists at ctrl + alt + f2 . . . and so on.



        tty1 - tty6 are text sessions and you can login with your username and password on one of these screens. After you login, you can run the command startx and the xsession will start in tty7 if it is not already running and tty8 if tty7 is already running an xsession.




        Run Levels:



        run-level 0 Halt - Shuts down the system.



        run-level 1 Single-user mode - Mode for administrative tasks.



        run-level 2 Graphical multi-user with networking - Starts the system normally.



        run-level 3-5 Unused but configured the same as runlevel 2



        run-level 6 Reboot - Reboots the system.



        The term runlevel refers to a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine[citation needed], may be used. S is sometimes used as a synonym for one of the levels. Only one "runlevel" is executed on bootup - run levels are not executed sequentially, i.e. either runlevel 2 OR 3 OR 4 is executed, not 2 then 3 then 4. - en.wikipedia.org/wiki/Runlevel







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 31 '14 at 19:11

























        answered Aug 31 '14 at 18:46









        mchidmchid

        23.3k25286




        23.3k25286












        • Thanx mchid it helped me a lot,

          – lazarus
          Aug 31 '14 at 19:16











        • but when i login to tty1 and performed $startx ,I got a desktop window without any launchbar and other options...(on tty8)-ctrl+Alt+F8, is that my startx was not well configured or it does show some limited options on startx(like here only Desktop)

          – lazarus
          Aug 31 '14 at 19:21






        • 1





          @jazzz That is your default x environment. You most likely have multiple desktop environments installed. You should be able to CTRL + T to get a terminal so you can run commands like unity or gnome-shell --replace or even gnome-panel or metacity --replace.

          – mchid
          Aug 31 '14 at 19:38












        • @jazzz Also, if you accept this answer, please click the icon on the left to close it out. thanks!

          – mchid
          Aug 31 '14 at 19:46











        • sorry I am bit late for another query regarding this---is the new window that i got by Ctrl+Alt+F8 ,as I stated above is similar to workspace?

          – lazarus
          Sep 1 '14 at 14:04

















        • Thanx mchid it helped me a lot,

          – lazarus
          Aug 31 '14 at 19:16











        • but when i login to tty1 and performed $startx ,I got a desktop window without any launchbar and other options...(on tty8)-ctrl+Alt+F8, is that my startx was not well configured or it does show some limited options on startx(like here only Desktop)

          – lazarus
          Aug 31 '14 at 19:21






        • 1





          @jazzz That is your default x environment. You most likely have multiple desktop environments installed. You should be able to CTRL + T to get a terminal so you can run commands like unity or gnome-shell --replace or even gnome-panel or metacity --replace.

          – mchid
          Aug 31 '14 at 19:38












        • @jazzz Also, if you accept this answer, please click the icon on the left to close it out. thanks!

          – mchid
          Aug 31 '14 at 19:46











        • sorry I am bit late for another query regarding this---is the new window that i got by Ctrl+Alt+F8 ,as I stated above is similar to workspace?

          – lazarus
          Sep 1 '14 at 14:04
















        Thanx mchid it helped me a lot,

        – lazarus
        Aug 31 '14 at 19:16





        Thanx mchid it helped me a lot,

        – lazarus
        Aug 31 '14 at 19:16













        but when i login to tty1 and performed $startx ,I got a desktop window without any launchbar and other options...(on tty8)-ctrl+Alt+F8, is that my startx was not well configured or it does show some limited options on startx(like here only Desktop)

        – lazarus
        Aug 31 '14 at 19:21





        but when i login to tty1 and performed $startx ,I got a desktop window without any launchbar and other options...(on tty8)-ctrl+Alt+F8, is that my startx was not well configured or it does show some limited options on startx(like here only Desktop)

        – lazarus
        Aug 31 '14 at 19:21




        1




        1





        @jazzz That is your default x environment. You most likely have multiple desktop environments installed. You should be able to CTRL + T to get a terminal so you can run commands like unity or gnome-shell --replace or even gnome-panel or metacity --replace.

        – mchid
        Aug 31 '14 at 19:38






        @jazzz That is your default x environment. You most likely have multiple desktop environments installed. You should be able to CTRL + T to get a terminal so you can run commands like unity or gnome-shell --replace or even gnome-panel or metacity --replace.

        – mchid
        Aug 31 '14 at 19:38














        @jazzz Also, if you accept this answer, please click the icon on the left to close it out. thanks!

        – mchid
        Aug 31 '14 at 19:46





        @jazzz Also, if you accept this answer, please click the icon on the left to close it out. thanks!

        – mchid
        Aug 31 '14 at 19:46













        sorry I am bit late for another query regarding this---is the new window that i got by Ctrl+Alt+F8 ,as I stated above is similar to workspace?

        – lazarus
        Sep 1 '14 at 14:04





        sorry I am bit late for another query regarding this---is the new window that i got by Ctrl+Alt+F8 ,as I stated above is similar to workspace?

        – lazarus
        Sep 1 '14 at 14:04











        4














        It simply means at a different tty.



        Quotying the linked question:



        By default Ubuntu has 7 tty's.



        1-6 are command line only, 7 runs your X session (your normal graphical desktop).



        To access them, use this keyboard shortcut: Ctrl + Alt + F1



        (changing F1 to F1-F6 to access the terminal that you need)



        To get back to your X session (the normal desktop), use: Ctrl + Alt + F7



        after logging on to a text-mode console simply means logging in to a different tty and typing the command:



        startx





        share|improve this answer





























          4














          It simply means at a different tty.



          Quotying the linked question:



          By default Ubuntu has 7 tty's.



          1-6 are command line only, 7 runs your X session (your normal graphical desktop).



          To access them, use this keyboard shortcut: Ctrl + Alt + F1



          (changing F1 to F1-F6 to access the terminal that you need)



          To get back to your X session (the normal desktop), use: Ctrl + Alt + F7



          after logging on to a text-mode console simply means logging in to a different tty and typing the command:



          startx





          share|improve this answer



























            4












            4








            4







            It simply means at a different tty.



            Quotying the linked question:



            By default Ubuntu has 7 tty's.



            1-6 are command line only, 7 runs your X session (your normal graphical desktop).



            To access them, use this keyboard shortcut: Ctrl + Alt + F1



            (changing F1 to F1-F6 to access the terminal that you need)



            To get back to your X session (the normal desktop), use: Ctrl + Alt + F7



            after logging on to a text-mode console simply means logging in to a different tty and typing the command:



            startx





            share|improve this answer















            It simply means at a different tty.



            Quotying the linked question:



            By default Ubuntu has 7 tty's.



            1-6 are command line only, 7 runs your X session (your normal graphical desktop).



            To access them, use this keyboard shortcut: Ctrl + Alt + F1



            (changing F1 to F1-F6 to access the terminal that you need)



            To get back to your X session (the normal desktop), use: Ctrl + Alt + F7



            after logging on to a text-mode console simply means logging in to a different tty and typing the command:



            startx






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:23









            Community

            1




            1










            answered Aug 31 '14 at 18:53









            PartoParto

            9,4661965105




            9,4661965105





















                1














                QEMU + Buildroot minimal example



                My favorite way to learn what something does is by making a minimal example that runs it.



                On Ubuntu, this is hard since a second startx might conflict with your current desktop.



                https://askubuntu.com/a/519164/52975 proposes Xnest, but with QEMU + Buildroot we can go even more minimal and create a micro distro with only X11 installed.



                This way it should be easier to understand what is going on.



                I've described the distro creation at: https://unix.stackexchange.com/a/306116/32558



                Once you've got the image running on QEMU, you start on a TTY shell.



                Then when you do:



                root
                startx


                it starts an X11 GUI:



                enter image description here



                Now take a look at the source for startx inside that distro, which is just a shell script.



                It is a simple wrapper over /usr/bin/xinit, and that it passes /etc/X11/xinit/xinitrc to xinit.



                If you open /etc/X11/xinit/xinitrc, it contains the following lines:



                twm &
                xclock -geometry 50x50-1+1 &
                xterm -geometry 80x50+494+51 &
                xterm -geometry 80x20+494-0 &


                so we see that it starts up:




                • twm: a very simple and old window manager


                • xclock and xterm which we see on screen

                For /usr/bin/xinit, we can do:



                man xinit


                which says that:




                If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to
                start up client programs. If no such file exists, xinit will use the following as a default:



                xterm -geometry +1+1 -n login -display :0


                If no specific server program is given on the command line, xinit will look for a file in the user's home directory called .xserverrc to run as a shell script to
                start up the server. If no such file exists, xinit will use the following as a default:



                X :0






                share|improve this answer





























                  1














                  QEMU + Buildroot minimal example



                  My favorite way to learn what something does is by making a minimal example that runs it.



                  On Ubuntu, this is hard since a second startx might conflict with your current desktop.



                  https://askubuntu.com/a/519164/52975 proposes Xnest, but with QEMU + Buildroot we can go even more minimal and create a micro distro with only X11 installed.



                  This way it should be easier to understand what is going on.



                  I've described the distro creation at: https://unix.stackexchange.com/a/306116/32558



                  Once you've got the image running on QEMU, you start on a TTY shell.



                  Then when you do:



                  root
                  startx


                  it starts an X11 GUI:



                  enter image description here



                  Now take a look at the source for startx inside that distro, which is just a shell script.



                  It is a simple wrapper over /usr/bin/xinit, and that it passes /etc/X11/xinit/xinitrc to xinit.



                  If you open /etc/X11/xinit/xinitrc, it contains the following lines:



                  twm &
                  xclock -geometry 50x50-1+1 &
                  xterm -geometry 80x50+494+51 &
                  xterm -geometry 80x20+494-0 &


                  so we see that it starts up:




                  • twm: a very simple and old window manager


                  • xclock and xterm which we see on screen

                  For /usr/bin/xinit, we can do:



                  man xinit


                  which says that:




                  If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to
                  start up client programs. If no such file exists, xinit will use the following as a default:



                  xterm -geometry +1+1 -n login -display :0


                  If no specific server program is given on the command line, xinit will look for a file in the user's home directory called .xserverrc to run as a shell script to
                  start up the server. If no such file exists, xinit will use the following as a default:



                  X :0






                  share|improve this answer



























                    1












                    1








                    1







                    QEMU + Buildroot minimal example



                    My favorite way to learn what something does is by making a minimal example that runs it.



                    On Ubuntu, this is hard since a second startx might conflict with your current desktop.



                    https://askubuntu.com/a/519164/52975 proposes Xnest, but with QEMU + Buildroot we can go even more minimal and create a micro distro with only X11 installed.



                    This way it should be easier to understand what is going on.



                    I've described the distro creation at: https://unix.stackexchange.com/a/306116/32558



                    Once you've got the image running on QEMU, you start on a TTY shell.



                    Then when you do:



                    root
                    startx


                    it starts an X11 GUI:



                    enter image description here



                    Now take a look at the source for startx inside that distro, which is just a shell script.



                    It is a simple wrapper over /usr/bin/xinit, and that it passes /etc/X11/xinit/xinitrc to xinit.



                    If you open /etc/X11/xinit/xinitrc, it contains the following lines:



                    twm &
                    xclock -geometry 50x50-1+1 &
                    xterm -geometry 80x50+494+51 &
                    xterm -geometry 80x20+494-0 &


                    so we see that it starts up:




                    • twm: a very simple and old window manager


                    • xclock and xterm which we see on screen

                    For /usr/bin/xinit, we can do:



                    man xinit


                    which says that:




                    If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to
                    start up client programs. If no such file exists, xinit will use the following as a default:



                    xterm -geometry +1+1 -n login -display :0


                    If no specific server program is given on the command line, xinit will look for a file in the user's home directory called .xserverrc to run as a shell script to
                    start up the server. If no such file exists, xinit will use the following as a default:



                    X :0






                    share|improve this answer















                    QEMU + Buildroot minimal example



                    My favorite way to learn what something does is by making a minimal example that runs it.



                    On Ubuntu, this is hard since a second startx might conflict with your current desktop.



                    https://askubuntu.com/a/519164/52975 proposes Xnest, but with QEMU + Buildroot we can go even more minimal and create a micro distro with only X11 installed.



                    This way it should be easier to understand what is going on.



                    I've described the distro creation at: https://unix.stackexchange.com/a/306116/32558



                    Once you've got the image running on QEMU, you start on a TTY shell.



                    Then when you do:



                    root
                    startx


                    it starts an X11 GUI:



                    enter image description here



                    Now take a look at the source for startx inside that distro, which is just a shell script.



                    It is a simple wrapper over /usr/bin/xinit, and that it passes /etc/X11/xinit/xinitrc to xinit.



                    If you open /etc/X11/xinit/xinitrc, it contains the following lines:



                    twm &
                    xclock -geometry 50x50-1+1 &
                    xterm -geometry 80x50+494+51 &
                    xterm -geometry 80x20+494-0 &


                    so we see that it starts up:




                    • twm: a very simple and old window manager


                    • xclock and xterm which we see on screen

                    For /usr/bin/xinit, we can do:



                    man xinit


                    which says that:




                    If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to
                    start up client programs. If no such file exists, xinit will use the following as a default:



                    xterm -geometry +1+1 -n login -display :0


                    If no specific server program is given on the command line, xinit will look for a file in the user's home directory called .xserverrc to run as a shell script to
                    start up the server. If no such file exists, xinit will use the following as a default:



                    X :0







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 7 '18 at 13:38

























                    answered Aug 28 '16 at 10:46









                    Ciro Santilli 新疆改造中心 六四事件 法轮功Ciro Santilli 新疆改造中心 六四事件 法轮功

                    10.1k44750




                    10.1k44750





















                        0














                        As Rmano notes, startx is a very old approach. Way back when this was used, the X11 binary was installed setuid root.



                        I just tried this out in a VM and indeed, startx fails as you describe, by default. chmod u+s /usr/lib/xorg/Xorg fixes that though.



                        I don't recommend making Xorg be setuid root. The world has moved away from that for Good Reason. But if you're playing around in a throw-away VM, that's how to make startx work.






                        share|improve this answer



























                          0














                          As Rmano notes, startx is a very old approach. Way back when this was used, the X11 binary was installed setuid root.



                          I just tried this out in a VM and indeed, startx fails as you describe, by default. chmod u+s /usr/lib/xorg/Xorg fixes that though.



                          I don't recommend making Xorg be setuid root. The world has moved away from that for Good Reason. But if you're playing around in a throw-away VM, that's how to make startx work.






                          share|improve this answer

























                            0












                            0








                            0







                            As Rmano notes, startx is a very old approach. Way back when this was used, the X11 binary was installed setuid root.



                            I just tried this out in a VM and indeed, startx fails as you describe, by default. chmod u+s /usr/lib/xorg/Xorg fixes that though.



                            I don't recommend making Xorg be setuid root. The world has moved away from that for Good Reason. But if you're playing around in a throw-away VM, that's how to make startx work.






                            share|improve this answer













                            As Rmano notes, startx is a very old approach. Way back when this was used, the X11 binary was installed setuid root.



                            I just tried this out in a VM and indeed, startx fails as you describe, by default. chmod u+s /usr/lib/xorg/Xorg fixes that though.



                            I don't recommend making Xorg be setuid root. The world has moved away from that for Good Reason. But if you're playing around in a throw-away VM, that's how to make startx work.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 28 '18 at 3:50









                            Phil PPhil P

                            1893




                            1893



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f518454%2fwhat-does-startx-command-do%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                                Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                                Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org