LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-24-2005, 05:13 AM   #1
Xyrael
LQ Newbie
 
Registered: Sep 2005
Location: Sheffield, UK
Distribution: Debian for servers, Ubuntu for desktops
Posts: 12

Rep: Reputation: 0
Closing Stdin, Installing Mail Servers and Keyboard Shortcuts


Question One

When I use a program that reads from stdin, I don't know how to stop it! I mean things like gpg on its own. I end up Ctrl-Cing it, which I am sure isn't the best way. Please help!

Question Two

Are there any other keyboard shortcuts I should know apart from Ctrl-C and -Z?

Question Three

How do I set up a POP and SMTP server on a Debian box?

Question Four
When I send shutdown -r -t 5 19:32 reason I can't end the input, so it cancels the shutdown! How do terminate it?

Thanks very much! (Note: I only have shell access to the above server.)
 
Old 09-24-2005, 06:38 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Re: Closing Stdin, Installing Mail Servers and Keyboard Shortcuts

Quote:
Originally posted by Xyrael
Question One

When I use a program that reads from stdin, I don't know how to stop it! I mean things like gpg on its own. I end up Ctrl-Cing it, which I am sure isn't the best way. Please help!
I believe this to be the best option. However, you can also switch to another terminal and ps or top to see what the pid is and kill -HUP or kill -15 it, but I'd prefer CTRL + C to that.
Quote:
Question Two

Are there any other keyboard shortcuts I should know apart from Ctrl-C and -Z?


CTRL + ALT + F1-6 should switch you terminals. If you are switching from one to the other, you only need ALT + F1-6, CTRL is for switching out of X to a terminal. There are probably a billion of these really, for general use, I use the 2 you have listed.
Quote:
Question Three

How do I set up a POP and SMTP server on a Debian box?

You follow a HOW-TO for the one you want to install I'm a huge postfix fan with courier as my pop/imap server. With Debian, you are looking at something like 'apt get install postfix courier-imap'
Quote:
Question Four
When I send shutdown -r -t 5 19:32 reason I can't end the input, so it cancels the shutdown! How do terminate it?

Thanks very much! (Note: I only have shell access to the above server.)
Not to sure on this one. It may be that the colons on the command are giving you problems. I don't really use an exact time ever, usually "NOW" suffices. You may benefit from removing your time-delay option (-t 5) to see if that helps.

Good Luck!

Cool
 
Old 09-25-2005, 03:16 AM   #3
Xyrael
LQ Newbie
 
Registered: Sep 2005
Location: Sheffield, UK
Distribution: Debian for servers, Ubuntu for desktops
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks, that was a lot of information. But I still don't know how to stop stdin!
 
Old 09-25-2005, 04:08 AM   #4
logosys
Member
 
Registered: Jul 2005
Location: Texas
Distribution: RHEL4 - ES
Posts: 178

Rep: Reputation: 31
Quote:
Originally posted by Xyrael
Thanks, that was a lot of information. But I still don't know how to stop stdin!
Can you give an example of what is happening to you? I'm a bit confused...
 
Old 09-25-2005, 04:46 AM   #5
Xyrael
LQ Newbie
 
Registered: Sep 2005
Location: Sheffield, UK
Distribution: Debian for servers, Ubuntu for desktops
Posts: 12

Original Poster
Rep: Reputation: 0
Well, here is one particular example of what is happening to help you understand.

Bang in GPG.

It says 'Go ahead and type your message...'

And then stops, and allows me to input. How do I terminate this input?

Thanks!
 
Old 09-26-2005, 04:13 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I don't use 'bang' but, it could be vim driven. In which case, to end, you type:
ESC
:wq!

The colon ( : ) tells it to stop taking input in the text file, and that you are giving it commands to do something with the text file, in this case, write then quit.

Cool
 
  


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
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 01:40 AM
keyboard shortcuts eugen.circa Linux - General 1 06-28-2005 11:05 AM
after redirecting stdin still need to read data from keyboard vrikers Programming 4 10-31-2004 07:11 AM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 10:36 PM
keyboard shortcuts justin19fl Linux - Newbie 1 04-24-2001 03:19 PM


All times are GMT -5. The time now is 06:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration