Sponsored Content
Full Discussion: Questions on CLI and xwindow
Top Forums UNIX for Dummies Questions & Answers Questions on CLI and xwindow Post 302953493 by bakunin on Friday 28th of August 2015 02:18:20 PM
Old 08-28-2015
Quote:
Originally Posted by jamie_123
Hi,

I was not sure about the terminology of the thing that I am about to explain, so it was very difficult to find relevant search results.

I want to use my computer using the ctrl+alt+f1 CLI without using a graphical system. However, at the same time, I would also like to do basic tasks like reading a PDF or open a browser. Switching back to a GUI for these tasks are quite distracting. Is there a way that I can launch windows under the CLI interface and somehow overlay them over the CLI?

Any pointers would be much appreciated.
It is much easier than you are thinking: a UNIX system (your Linux, as i can tell you use, is no exception) has a (theoretically) unlimited amount of possible terminals attached via "serial lines" (see "RS232" about what a serial line is). This is the basic way you connect to a UNIX system.

Your Linux has a graphically-enabled terminal, which you use to connect with locally and which runs an X-Window-system: a so-called "X-Server" (picture it as a driver for your graphic card plus a library with some function calls programs can use, providing graphic primitives like "draw line", "draw rectangle" and so on), a Window Manager on top of it and on top of this are some programs running (like Firefox, Open Office, etc.) which use the services these underlying programs provide. This is what you perceive as "your desktp".

At the same time you can connect to your system also at a more basic level, via classical serial terminals. Your system initially creates 7 of these (virtual) terrminals, between which you can switch with CTRL-ALT-F1 through CTRL-ALT-F7. In the seventh one (reachable by CRTL-ALT-F7) your graphical environment runs.

But terminals can be created on the fly and there are programs running under the X-Window-System (just like our Firefox) which provide such terminals. These programs are called "terminal emulators" (because they emulate a piece of hardware which is out of use today for most people, but still sets the standard of how things work). The most common one is called "XTerm" and they all operate more or less the same way: they create a window, start a shell inside it and when you leave the shell the window closes. You can run several instances of these emulators side by side and this way have several windows with open shells at the same time.

I hope this helps and you got some general knowledge and terminology out of it too. If you still have questions just feel free to ask.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SCO os5 xwindow

I acciedentaly terminated the x window session on my sco os5 machine. Can somone help me get it going again with out rebooting? Another ? Does anyone know where I can get the VNC version for SCO or can some one help me make changes to the RH version to work for SCO OS5. Thanks. (2 Replies)
Discussion started by: ruizf
2 Replies

2. UNIX for Dummies Questions & Answers

xwindow on old computer

hello at first sorry for my english... i know it isn't good but i hope you can understand me i want to install xwindow on my old pentium133MHz, 49MB ram memory, graphic card - stb horizon64 1MB (with old monochromatic monitor - horizontal 30.6-36.0, vertical 50-90) all this under redhat6.1...... (1 Reply)
Discussion started by: pgas
1 Replies

3. UNIX for Dummies Questions & Answers

XWindow problems

ok, i've got a FreeBSD box, and it doesn't like my monitor. At all. The first time i installed BSD, it wouldn't write the changes. I reformated and reinstalled, and this time it would write, but when i went to load the x server with startx it would go through the load process, but say "no screens"... (4 Replies)
Discussion started by: GirlsHackBetter
4 Replies

4. UNIX for Dummies Questions & Answers

Xwindow display

I am installing Oracle 10g on UNIX. I have prepared the server in various fields. Then when I started installation, one error message came out like this: Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. So I check... (3 Replies)
Discussion started by: duke0001
3 Replies

5. UNIX for Dummies Questions & Answers

Some CLI questions

I use Ubuntu Linux, and I'd like to become more familiar with the CLI. I have these questions: 1) How to remove a directory that is not empty? The only option in man rmdir is -p and that does not do what I need. rm -R needs sudo for some reason. 2) What is a CLI command to make all the files... (3 Replies)
Discussion started by: dotancohen
3 Replies

6. UNIX Desktop Questions & Answers

Where is xwindow start script

I am using a Mandrake spinoff (PCLinux) and would like to have a yakuake terminal started when I launch xwin. Where is the start up script? Thanks JZ (2 Replies)
Discussion started by: jwzumwalt
2 Replies

7. Shell Programming and Scripting

command to exit xwindow

What is the command to exit xwindow when i am in xwindow's terminal. Thanks in advance. (3 Replies)
Discussion started by: uativan
3 Replies

8. UNIX for Dummies Questions & Answers

Help with Xwindow on Linux

Hi, On my PC which is a XP, I have installed SSH client from www.ssh.com company. Linux server is a CentOS version 5. Before using my application, I want to test it and I am trying to get the xclock display back to my window and it's not working. Any idea. #... (4 Replies)
Discussion started by: samnyc
4 Replies

9. Red Hat

XWindow is not enabling !!!

Dear Experts, Our system admin is struggling over a month with an issue regarding xwindow. RHEL 5.4 is our server OS. whenever I export Display with my machine IP and run xclock. It is not working. We are using DHCP. Please tell me what checks and actions should be taken from our sys admin point... (8 Replies)
Discussion started by: saifurshaon
8 Replies

10. UNIX for Dummies Questions & Answers

XWindow Tool

Hi Guys can any one help me in this regard .. I'm using Reflaction and xManager but I want list of another xWindow tools between Unix and Windows .. Pls advice .. (1 Reply)
Discussion started by: top.level
1 Replies
INIT(8) 						      System Manager's Manual							   INIT(8)

NAME
init - grandparent of all processes DESCRIPTION
The first program started by Minix is init. The actions performed by init can be summarized by this pseudo shell program: # Open 0, 1, 2. exec </dev/null >/dev/log 2>&1 # Run the system initialization script. sh /etc/rc $bootopts >/etc/utmp echo reboot >>/usr/adm/wtmp while :; do # Wait for a process to exit, but don't always block. wait # Record logout. (Not in this dumb way, of course.) if "pid is in my tables" $pid then echo "logout $pid" >/etc/utmp echo "logout $pid" >>/usr/adm/wtmp fi # Start a new session. while read line type getty init do if idle $line then $init ... <$tty >$tty $getty <$tty >$tty 2>&1 & pid=$! "add pid to tables" $pid echo "login $line $pid" >/etc/utmp echo "login $line $pid" >>/usr/adm/wtmp fi done < /dev/ttytab done The first action of init is to run /etc/rc to initialize the system as described in boot(8). Init then enters its main loop where it waits for processes to exit, and starts processes on each enabled terminal line. The file /etc/ttytab contains a list of terminal devices, their terminal types, the program to execute on them to allow one to login (usually getty(8)), and the program to execute first to initialize the line (usually stty(1)). These fields may be left out to indicate that a line is disabled or that initialization is not necessary. The commands are searched using the path /sbin:/bin:/usr/sbin:/usr/bin. Init accepts several signals that must be sent to process id 1. (It is the first process, so natually its process id is 1.) The signals are: SIGHUP When receiving a hangup signal, init will forget about errors and rescan ttytab for processes to execute. Init normally rescans ttytab each time it feels the need to respawn a process, so the hangup signal is only needed if a line has been shut down, or after a terminate signal. Note that after turning a line off you will have to kill the process running on that line manually, init doesn't do that for you. SIGTERM Normally sent by programs that halt or reboot Minix. Causes init to stop spawning new processes. SIGABRT Sent by the keyboard driver when the CTRL-ALT-DEL key combination is typed. Causes init to run the shutdown command. A second abort signal makes init halt the system directly with a system call. The keyboard driver halts the system, without a sync, after the third CTRL-ALT-DEL. Minix vs. Minix-vmd There are a few differences between standard Minix and Minix-vmd on how init is run. The /etc/rc file is executed under standard Minix with input connected to /dev/console, but under Minix-vmd this is still /dev/null. This means that under Minix-vmd processes must be reconnected to /dev/console with the intr program if they need user interaction. Minix-vmd passes the value of the bootopts boot variable to /etc/rc. Standard Minix does not. FILES
/etc/ttytab List of terminals devices. /etc/utmp List of currently logged in users. /usr/adm/wtmp Login/logout history. SEE ALSO
ttytab(5), utmp(5), getty(8), stty(1), boot(8). AUTHOR
Kees J. Bot (kjb@cs.vu.nl) INIT(8)
All times are GMT -4. The time now is 05:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy