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









Linux



Understanding the Unix Kernel I didn't like the first edition of this book, and I still don't like the current edition, though I admit I'm having a hard time understanding why.


Title Date Comments
uname version -->Re UNIX version check command   1997-2004 
- Usually some variant of uname, often 'uname -a', but all sorts of other possibilies; t d epends on the Unix and in some cases even the specific version. -
CUPS print to file - the hard way!   2003 03 
- Cups print to file - there are easier ways to do this, but I didn't know that when I needed to do it! -
Verizon Cell Phone Internet Connections   2003 06  2010/11/11 TonyLawrence
- Making internet connections with cell phone. I then verified with Verizon that there is no additional costs for using the "Express Network" which claims speeds up to 144k. I usually average between 20-40k, which really blows away my normal dial-up connection at home, since we still do not have any broadband options in my area. During normal "peak" usage, the time spent using the data is billed against my normal minutes. I have unlimitted night and weekend usage, so I could be connected to the network all weekend without additional charges. That's when I plan on downloading O/S patch upgrades. -
Unix Permissions   2001 04 
- Note: these are classic Unix permissions. However, many modern Unixes support extended attributes that go beyond this. We'll look at one example of that later in the article. -
Linux and Unix Troubleshooting E-Book   2008 12 
- Practical e-book for Linux and Linux troubleshooting I really enjoyed writing this. If you work with Linux or Unix systems, you could use this. -
RTL8111/8168B PCI Express Gigabit Ethernet Failure   2008 12  2011/10/16 anonymous
- Forcing driver with Realtek RTL8111 - an "lspci -vv" revealed that things were not right.. -
Cron At and Batch   2000 01  2012/06/11 TonyLawrence
- Cron, Batch and At, including explanations of why it might not be working -
VPN's and other remote access   2001 04  2011/05/09 TonyLawrence
- VPN Basics. A VPN is a Virtual Private Network. The concept is that you are using public or other shared lines (generally the Internet) to connect machines, but that all packets are encrypted (so your connections are "private"). -
Bash HISTCONTROL   2006 05  2011/04/07 TonyLawrence
- controlling bash history. There are actually several values HISTCONTROL can take. On newer bash, it can be set to "ignorespace", "ignoredups", "ignoreboth" or "erasedups". Bash 2.05 doesn't have "erasedups". -
difference between /dev/sr0 and /dev/scd0   1997-2004  2010/03/20 TonyLawrence
- why does the system call the same device by two different names: There isn't necessarily any difference at all. -
Controlling Linux colors in vi (vim)   2005 03  2011/04/13 geedoubleya
- The Linux colorizing fouls things up royally. You can shut off command line colorizing by editing /etc/DIR_COLORS and changing COLOR tty to COLOR none or (less drastically) by removing the TERM ansi line from the same file (which removes colorization for ansi but doesn't affect console use). But that still leaves vi messing things up. The fix for that is to add -
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 -
 
 
 
 
Invalidating the Linux buffer cache   2006 12  2012/08/01 SimonL
- How to actually test the disk drive to know that data really has gotten to the disk drive. This could be because you want to test the performance of the drive, but could also be when you suspect a drive is malfunctioning: if you just write and read back, you'll be reading from cache, not from actual disk platters. -
Unix and Linux startup scripts, Part 1   2009 12 
- In the beginning, there was "init". If you had a Unix system, you had "init" and it was almost certainly process id 1. -
Custom Tab Completion   2004 12  2009/12/12 zolo
- I'm sure you already know about tab completion: type part of a command name and hit TAB and you get its matches. Leave a space and then hit TAB, and you get filenames. Wonderful stuff. -
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? -
shc - shell script compiler   2005 09 
- Shell scripts are simple to create, but if a user has permission to execute the script, they also have permission to read it. There are ways to prevent that: -
Printing to a remote printer with a dynamic address   2003 06 
- You have a PC at home and you make some sort of connection over the internet to your server, but your application needs to print to your PC. -
How can i mount a ISO Image CD ?   2004 07  2010/07/10 TonyLawrence
- You have an image of a CD or perhaps of a floppy disk and need to mount it as a filesystem (Linux, Mac OS X, BSD, SCO, Solaris). -
Why is my system slow?   2001 12  2010/06/11 veera
- This is not a performance tuning article. If your Linux or Unix system is always slow, this article may not be what you are looking for. -
SMB Caching   2006 05 
- SMB caching on Windows can be confusing - on a whim, I tried deleting a file, and once that had been done, users could now write and overwrite as desired. -
Linux|Unix ABI- Using other Unix binaries on Linux   2001 11 
- Linux ABI- pitfalls and considerations of running SCO apps on Linux -
SPID, threads in ps   2005 06 
- The SPID column is the thread id. As far as I can tell, LWP and SPID are the same thing; I am not sure what the value of NLWP is; it appears to be just the count of threads. -
Realtime-Preempt for the Linux kernel.   2005 06 
- The Linux kernel has always been somewhat preemptive, but with the 2.6 kernel there were big improvements aimed at making the kernel almost fully preemptive -
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 -
Understanding IPTABLES   2002 11  2012/11/29 BigDumbDinosaur
- Packet filtering is something I've always hard a hard time getting my head around. Not the basics; that's easy enough. It's just the incredible level of detail, the difficulty of keeping it all in your head at once. -
Using color in shell scripts (Linux, Mac OS X)   2009 11  2010/01/03 BigDumbDInosaur
- Color is tricky. Displays can be bad at it, people can be color blind... using colors can make text hard to read - I don't like using color in scripts. -
New To Unix   2005 01 
- Understanding how and why Unix and Linux are not like Windows. Unix and Linux are different. If your first exposure to computers was DOS or Windows, some of what you learned there is going to trip you up in the Unix world. This article attempts to both explain how Unix is different, and also why it is different, because if you understand why, you'll find it easier to remember. -
Bonjour Discovery   2007 11 
- Bonjour finds a web server on my printer. Bonjour can find other interesting things and can be used for good or evil. -
Bash shell $PIPESTATUS   2004 06  2011/04/04 TonyLawrence
- PIPESTATUS array holds the exit status of your last foreground pipeline commands. -
Sort -u vs. uniq   2009 11 
- Don't tie yourself in pipeline knots with either of them; learn to use each of them appropriately and your scripts will be easier. -
renaming files   2005 08 
- I'm not sure how long rename has been hanging around Linux. I don't mean the rename system call, but the command line version that lets you (for example), rename your .htm files as .html -
Damn Small Linux   2006 06 
- A versatile live cd and more: Damn Small Linux was the first distro to give me a hard time. Don't panic, DSL fans. It wasn't DSL's fault. It booted quickly, obtained an IP automatically, and was ready to run. Except.. -
Xen vs. Citrix Xenserver?   2009 03  2010/09/29 anonymous2
- Why Xenserver?: Citrix Xenserver requires a 64 bit machine AND a Windows box to manage it. You can download the free open source Xen from The University of Cambridge and run it on 32 bit hardware and without a Windows client to manage it. So why should you care about Citrix Xeniserver? -
SquidGuard   2001 09 
- squidGuard works with Squid to block access to sites by domain, ip address or even keywords. -
Linux 2.6   2006 04 
- This article highlights some of the performance and scalability improvements of the Linux 2.6 kernel. -
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 -
Linux print pdf files   1997-2004 
- Understanding Postscript and PDF Printing. Unix systems understood Postscript early on because high end printers understood Postscript natively - just send them a Postscript document and they could print it. That's often NOT true today except for more expensive printers. -
Redhat Linux 6.0   1999 05  2010/12/13 TonyLawrence
- (This is pretty old, but as late as December 2007 I had someone who wanted help installing this on an old box!) This is pretty cool stuff. Redhat 6.0 is a marked improvement over previous versions. It's not perfect; there is still plenty to squawk about, but I could easily recommend this to any semi-technical user. -
Multiple IP addresses on one interface   2009 03  2010/11/22 TonyLawrence
- Using multiple ip addresses on one machine can avoid confusion and lost links. -
taskset for CPU affinity   2005 10  2012/01/09 TonyLawrence
- SMP operating systems have choices when it comes to scheduling processes: a new or newly rescheduled process can run on any available cpu. However, while it shouldn't matter where a new process runs, an existing process should go back to the same cpu it was running on simply because the cpu may still be caching data that belongs to that process. -
Ubuntu on a Toshiba Satellite   2009 05  2010/12/31 anonymous
- I installed Ubuntu 9.0.4 on an old Toshiba Satellite Laptop last night -
SSH Login Attacks   2005 01 
- Failed password for illegal user [username]. in your logs may indicate brute force password guessing attempts. -
Data Transfer   1999 05 
- You need to transfer data from machine A to machine B. Maybe you are lucky enough to have networking on both machines, but maybe you aren't -
mod_perl on Debian   2008 02  2010/12/08 Questorian
- I've ignored mod_perl because I see no point in doing half a job. It could offer many advantages, but I'd need to rewrite many, many scripts to take full advantage. -
Awk vs. Perl   2009 11  2012/08/15 TonyLawrence
- Sure, I used to use awk. When I used it, you weren't likely to find Perl onmost Unix systems, so for a lot of text mangling, awk was at least easier than writing in C or anything else. It did the job, and you'd get used to its quirks. -
Tomorrows's date   2006 03 
- Tomorrow's date is what?: With a very little effort, almost anyone should be able to figure that out themselves: "man date" is a good start. It might take a little more effort to get to the "date +%s" solution": you might need "man strftime" also. But it is all there. -
Find with -execdir   2009 02  2011/10/25 TonyLawrence
- This article discusses the "execdir" option to "find" and the use of "\;" or "+" to terminate the arguments supplied -
The cure for everything - chmod 777   2009 10 
- I admit that I have done a chmod 777 when I should not have. -
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: -
 
 
Kerio Control Firewall
 
 
Partitioning for Linux   2008 02 
- This article discusses some of the things to consider when planning the partitioning of a Linux system. -
Fixing Large Kerio Mailboxes   2008 05  2011/11/29 TonyLawrence
- I bet you have customers who never delete anything out of their Inbox, or if they do, they never empty their deleted items folder. If they are using Outlook PST files, they will sooner or later crash. -
ProFTPd, wu-ftpd, and general ftp security   2004 12 
- FTP in general has a long and sad history of security problems. If you need to run an ftp server, you need to keep careful track of vulnerabilites and exploits that may make for a very unhappy da -
CleanCode Email   2003 11 
- Using Cleancode email client - a neat little command line utility for scripting outgoing mail without Sendmail. -
Basic TrueCrypt Usage   2010 01  2010/01/12 TonyLawrence
- People have said that they installed TrueCrypt, but have no idea what to do next. OK, maybe the interface isn't all that user friendly. -
Prevent deletion or moving of files   2009 10 
- You need to let users create files in a common directory, but you don't want them to be able to delete other's files. Or you've put certain files, directories or symlinks into a user's home directory and don't want them to be able to mess with any of those. What can you do? -
New Linux virtualization option : KVM   2006 12  2012/03/25 TonyLawrence
- KVM stands for 'Kernel-based Virtual Machine' it provides a simple way to have full hardware virtualization available for Linux users on machines that supports either the VT (Intel) or AMD-V/SVM (AMD) extensions for their cpus. -
Newbie guide for the net install of SuSe 9.0   2004 01 
- Since SuSe doesn't offer free iso download versions of SuSe, I decided to write this guide on how to do an net install (ftp install). -
The amazing tool called netcat   2009 08 
- netcat with its simple and yet incredibly powerful command line constructs has helped me innumerable times -


More Linux articles

Previous Linux articles

pavatar.jpg
book graphic












Have you tried our Tests?