APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds RSS Feeds









FAQ



Telnet/FTP is very slow to connect Slow telnet or ftp connections are often caused by the server wanting to do a reverse DNS lookup to find out who is connecting. If you aren't running DNS, you can fix this just by listing all the machines in /etc/hosts. Note that you don't have to be accurate about the names: I often use the ip adress with "_" substituted for the "."'s, like "host_192_168_2_3" and so on. A simple script:


Title Date Comments
How can I recursively grep through sub-directories?   1997-2003  2012/09/05 P
- How to grep through sub-directories whether or not your Unix has recursive (GNU) grep. -
How can I send email attachments from the command line?   1997-2003  2011/02/01 anonymous
- Sending attachments from the command line with mutt, uuencode and other methods. If it's just arbitrary text or a file you want to send, and don't care about it looking like a real attachment, you can use ordinary "mail" ("mailx" on some Unixes) at the command line. However, that's NOT a mime attachment - it's just your file mixed in to the mail message. However, some mail clients will see it and treat it as a real attachment, so this may be "good enough": -
How can I rename multiple files using wildcards?   1997-2003  2010/02/10 TonyLawrence
- How can I rename multiple files using wildcards if I don't have Linux "rename"? -
How do I clear log files?   1997-2003 
- There is a proper way to clean out log files - don't make the mistake of removing them! -
How can I automate an ftp transfer?   1997-2003  2011/02/03 Bagbot
- If your script is complex, I'd use use Perl Net::FTP or Kermit. You can also use "here" files fpr simple cases: -
How do I test a smtp mail connection?   1997-2003  2010/09/01 alain
- How do you manually test an SMTP connection? All you need is "telnet" and these instructions. -
How do I add a default route?   1997-2003 
- How to add a default route on various versions of SCO Unix and have it survive a reboot. -
How do I test an imap server?   1997-2003 
- How to test imap from command line. The "abc1" etc at the begining of each command is just a tag you make up. Supposedly it should be unique for each line; I've found you can actually use the same tag over and over again. -
Why doesn't ping stop?   1997-2003 
- The default on SCO, Linux, BSD and Mac OSX is to keep running ping until you hit the interrupt key. -
When should I use kill -9?   1997-2003  2010/09/26 TonyLawrence
- The idea here is that properly written programs will respond to a -15 by cleaning up anything they need to do before dying. -
How can I add or remove printers from the command line?   1997-2003 
- How can I add, modify or remove printers from the command line? -
How do I reset the root password if I forget it? (part 1)   1997-2003  2010/08/21 TonyLawrence
- Reset lost root password, Unix and Linux, with and without emergency boot media. -
 
 
Kerio Connect Mailserver
 
 
How do I install a HP Network Printer or Print Server?   1997-2003  2011/06/08 Bill
- How to install hp jetdirect print server on Unix. Before you do anything else, the printer needs an IP address. Some models let you do that right on the printer itself, all have Windows software that will assign it, and if all else fails you can configure it with BOOTP. -
How can I change uppercase file names to lower case?   1997-2003  2011/03/04 anonymous
- How can I change uppercase file names to lower case? -
How to setup resolv.conf for DNS configuration   1997-2003  2010/05/24 alexB
- Reverse lookups (lookup name from ip) happen for every attempted connection. Edit the resolver file to get proper behavior and quicker connections. For Linux,that's /etc/host.conf; most other Unixes use /etc/resolv.conf -
How do I set up a network printer or print server?   2009 09  2010/06/23 TonyLawrence
- How do I set up a network printer or print server? -
What is netcat and how do I use it?   2002 09 
- Using direct port printing on SCO Unix with Kevin Smith's 'netcat' for SCO. Note that Linux can do this in CUPS - this is only for old SCO Unix. -
How can I restrict who can login with ssh?   1997-2003  2010/06/27 anonymous
- There's no reason to allow every user access by ssh. You can restrict ssh logins to a specific set of users by an entry in the config file. -
How do I mount a CDROM?   1997-2003 
- This is an old article about mounting a CDROM in SCO Unix and is only left here for historical purposes. -
How do I make environment variables global?   1997-2003  2010/02/09 anonymous
- Once the variable is exported, you can change it's value and do NOT have to export it again. -
How can I monitor cpu usage?   1997-2003 
- This script is useful. (change "mawk" to "awk" if you don't have it- it still runs, just more slowly). -
How can I mount a SCO file system in Linux or vice-versa?   1997-2003  2010/07/16 nurray
- Mounting sco fs in linux - not eassy, but can be done -
How can I tell what process has a network port in use?   1997-2003 
- How can I tell what process has a network port inuse? -
Why do I get can't open /dev/tty errors?   1997-2003 
- This is an old article about 'can't open /dev/tty' errors on SCO Unix and is only left here for historical purposes. -
How can I download a boot disk?   1997-2003  2013/03/25 TonyLawrence
- How can I download a boot disk? Finding Boot Media -
What can I check if ping doesn't work at all?   1997-2003 
- Basic troubleshooting for ping. Start by a ping by ip address rather than name - if that works, your problem is DNS, not ping. -
How do I find out what IP address a user logged in from?   1997-2003  2010/07/22 jai
- In OSR5, there are options to who, w, last, and finger which provide this information. In a program, you can fetch this information from /etc/utmpx for the appropriate definitions. -
Telnet/FTP is very slow to connect   1997-2003  2013/01/27 anonymous
- Slow telnet or ftp connections are often caused by the server wanting to do a reverse DNS lookup to find out who is connecting -
How do I print man pages from the command line?   1997-2003  2010/12/25 Josh
- "man" formats the text with Ctrl-H backspaces and multiple letters to make bold text. Your printer may make a mess of it. -
What are some terminal emulators I can use from windows?   1997-2003  2011/08/03 BenTheMeek
- Windows terminal emulators for telnet and ssh access to Unix servers. -
How do I solve "fork failed no more processes"?   1997-2003 
- This is an old article about SCO Unix process table tuning and is only left here for historical purposes. -
I don't understand all this half/full duplex negotiation stuff   1997-2003 
- Here's the basic problem. 10/100 capable network devices have 5 possible duplex modes: -
Technical FAQ 1 of 9   1997-2003 
- FAQ Questions and Answers Common to SCO Unix, Xenix and ODT, some Linux -
Why doesn't CTRL-C work to interrupt my programs?   1997-2003 
- If you find that unbearable, you can easily change it -
How can I increase the size of my root or other filesystem?   1997-2003 
- How can I increase the size of my root or other filesystem? -
My printer doesn't work at all!   1997-2003 
- The first test is whether or not you can print to the raw device -
What causes a trap 0x00000008 ( double panic )?   1997-2003  2010/10/23 anonymous
- Double Panic- the kernel panics while panicing. This is an old article about SCO Unix and is only left here for historical purposes. -
Technical FAQ 2 of 9   1997-2003 
- Questions and Answers Specific to OpenServer Release 5 -
Why do I get portmapper is not responding errors?   1997-2003 
- This is an old article about 'portmapper' errors on SCO Unix and is only left here for historical purposes. -
What graphics driver do I use for my video card?   1997-2003 
- This is an old article about SCO Unix video card drivers and is only left here for historical purposes. -
Technical FAQ 7 of 9   1997-2003 
- Questions and Answers Related to Printing (mostly SCO OSR5, some Linux) -
How can I make a shell script setuid?   1997-2003 
- How can I make a shell script setuid so that ordinary usersmay -
What are printer interface scripts?   1997-2003 
- What are System V printer interface scripts? Note: these are for SysV printing - CUPS doesn't normally use these. -
How do I find out serial numbers of my various components?   1997-2003 
- How do I find out serial numbers of my various components? (SCO Unix) -
How can I find my Activation Key? ( license data serial number activation key )   1997-2003 
- How can I find my Activation Key? ( license data serialnumber -
Pass-Through Printing   1998 12 
- The idea is that if the terminal sees a special key sequence, it will start sending the data out some other port (parallel or serial) until it sees some sequence that tells it to stop. -
I see in netstat that processes get stuck in TIME_WAIT   1997-2003 
- For some reason, OpenServer sets TIME_WAIT to 30 minutes even while stating that the recommended setting is 4 minutes! -
FAQ - How can I make a printer that will print to a file?   2004 06 
- Setting up a printer that will print to a file can be useful for any number of reasons. -
What do the terms UART, 8250, 16450 and 16550 mean?   1997-2003 
- UART means Universal Asynchronous Receiver/Transmitter. This is a chip which receives and transmits data serially; each serial port you have will use one, though it is possible that several may be integrated into one chip. -
What is a watchdog timer panic or error message?   2009 09 
- In general, a watchdog timer is a piece of code (or hardware) that attempts to keep another piece of code (or hardware) from getting stuck in an endless loop. -
 
 
Kerio Control Firewall
 
 
How do I stop banners from printing?   1997-2003 
- Note that there are some Unix printer interface scripts which do not use /etc/default/lpd, and you must use an option to these to disable banners. Also, some Unix printer interface scripts expect the Xenix syntax above. Aren't standards wonderful? -
What are interrupts?   1997-2003 
- A device uses interupts to tell the CPU that it is done doing something and is ready for more, or when it receives data that the CPU needs to process. -
How can I reconnect to a disconnected session?   1997-2003 
- Both screen and dislocate allow reconnection. Screen emulates vt100, dislocate just passes through your keys. -
How can I get the file from the print spooler before it prints?   1997-2003 
- How can I get the file from the print spooler before it prints? -
What is a virtual printer?   1997-2003 
- This is how you do "virtual" printers: many names all going to the same print device, but all with diferent options. -
Is my system Year 2000 compliant?   1997-2003 
- This is an old article about Y2K on SCO Unix and is only left here for historical purposes. -
Where can I get ssh?   1997-2003 
- This is an old article about obtaining ssh for older SCO Unix and is only left here for historical purposes. -
I have a bad block on my hard drive   1997-2003 
- This is an old article about SCO Unix hard drive bad blocks (badtrk) and is only left here for historical purposes. -
How can I force the speed and duplex settings of my NIC (or check what it is now)?   1997-2003 
- This is an old article about determining or changing NIC link speed on SCO Unix and is only left here for historical purposes. -


More FAQ articles

pavatar.jpg
book graphic












Have you tried our Tests?