LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2017, 10:34 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 228

Rep: Reputation: Disabled
Is the terminal in gui mode a pesuoterminal?


To set reboot with text mode.
When login in with text mode,to input tty ,you get tty1.
Now,to input `startx` to jump into gui mode.
To enter terminal in the gui mode started from tty1 to inupt.

tty
/dev/pts/0

Is the terminal in gui mode a pesuoterminal?
Someone said it is just a X server started from tty1,not pesuoterminal.
 
Old 01-06-2017, 12:53 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,357
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
Hi, it's rather hard to tell exactly what you're talking about.

However a terminal in UI mode, showing on the desktop, is a terminal. Same as if you boot to non-GUI mode and type into a console. Both are a Linux process which you are running. The only differences are the visual attribute differences of them; such as the UI based one may have scrollbars and a recall buffer to allow you to see some large number of lines, whereas the non-GUI one does not have a scrollbar.

Does this answer your question?
 
Old 01-06-2017, 01:17 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
that thing inside of your DE/WM is a terminal emulator. That thing you see if you where to hit Ctrl+Alt+F[1-12] is your terminal.
 
Old 01-06-2017, 04:47 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,910

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by rtmistler View Post
Hi, it's rather hard to tell exactly what you're talking about.

However a terminal in UI mode, showing on the desktop, is a terminal. Same as if you boot to non-GUI mode and type into a console. Both are a Linux process which you are running. The only differences are the visual attribute differences of them; such as the UI based one may have scrollbars and a recall buffer to allow you to see some large number of lines, whereas the non-GUI one does not have a scrollbar.

Does this answer your question?
When the tty device is identified as "pty" it is a pseudoterminal. This means that to the application/shell it appears and is used exactly like a hardware terminal. The kernel provides the emulation of the device. When used as part of a GUI based terminal, the GUI part is usually emulating a terminal using a Window for output, and the keyboard/mouse for input. The kernel is given the keyboard input which then passes it through the pseudoterminal emulation. That emulation usually causes an echo (not always, as terminal based editors usually turn that off) which is passed back to the GUI part to decide how and where to display it. This is how the various terminal types are emulated.

In the case of the linux tty devices, these are ALSO emulated - by the kernel as if they were a hardware device without a GUI.

One specific difference between between a real terminal and emulated terminals is that the speed (stty speed) can be set to anything - it really doesn't make any sense as there is no hardware UART involved (it usually defaults to 38400).

The default serial lines on most PCs are identified as /dev/ttyS0 and /dev/ttyS1 (there may be more than two shown, but by default only two would work depending on the motherboard and/or extra interfaces). These actually use the baud rate for sending/receiving as well as the modem control signals, and hardware control signals (clear to send, ready to send).

The pseudoterminals are also used for remote connections (ssh and others). If there are no ptys defined (accidentally deleted?) then remote ssh connections using a terminal cannot be established.
 
2 members found this post helpful.
Old 01-06-2017, 05:04 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
furthermore, you could hook up dummy terminals within your place of dwelling all leading back to your one Linux box.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How fix GUI mode is not supported for this terminal hope you understand beter now KSctmv8 Linux - Newbie 4 07-14-2016 03:46 AM
Increase The Font Size when We switch from GUI mode to Console mode. subramani Linux - Desktop 4 09-20-2011 12:57 PM
way to log on to wireless network in terminal (no GUI) mode newellrp1 Ubuntu 2 05-21-2009 03:15 PM
Profile variable exports in text mode, not in GUI mode....huh? duderancher Red Hat 1 09-13-2007 06:45 PM
LXer: Howto Boot debian in text mode instead of graphical mode (GUI) LXer Syndicated Linux News 0 09-09-2007 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration