<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6929972</id><updated>2011-12-15T02:45:54.574Z</updated><title type='text'>Open Source Library (UK)</title><subtitle type='html'>This is basically my dumping ground of how to configure things in (Debian) Linux, some of the stuff is from my own discoveries, others are from peoples websites. Where credit is due to other peoples hard work it will be shown, I will NEVER declare work I have not done as mine.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6929972.post-115610848840703216</id><published>2006-08-20T22:14:00.000+01:00</published><updated>2006-08-20T22:15:06.260+01:00</updated><title type='text'>listed system services</title><content type='html'>if you want to specify service names instead of port numbers&lt;br /&gt;&lt;br /&gt;/etc/services&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-115610848840703216?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/115610848840703216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=115610848840703216&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/115610848840703216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/115610848840703216'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/08/listed-system-services.html' title='listed system services'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-115607807799925435</id><published>2006-08-20T13:47:00.000+01:00</published><updated>2006-08-20T13:47:58.016+01:00</updated><title type='text'>checking your routes</title><content type='html'>list all routes you kernel is using via /sbin/route&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-115607807799925435?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/115607807799925435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=115607807799925435&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/115607807799925435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/115607807799925435'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/08/checking-your-routes.html' title='checking your routes'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-114643264772477408</id><published>2006-04-30T22:28:00.002+01:00</published><updated>2006-04-30T23:01:10.910+01:00</updated><title type='text'>repartitioning your system live / adding new partitions</title><content type='html'>thanks to &lt;a href="http://www.namesys.com/shrink_reiserfs.html"&gt;http://www.namesys.com/shrink_reiserfs.html&lt;/a&gt; and &lt;a href="http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html"&gt;http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;well, after my hard drive finished acting weird and made me re-install linux, in my haste to get the job done I somehow managed to overlook swap space (i don't know how) and for some reason the debian installer didn't warn me (every other distro i have used has gone "hold up dude, yer screwing up here")!&lt;br /&gt;&lt;br /&gt;anyways, i looked into making the necessary changes on the live install with minimal disruption to the service provided by the server (it's the sole gateway to the internet for all my users) and after I made the changes I thought it would make a really good section for this blog, just in case i need it again.&lt;br /&gt;&lt;br /&gt;this will just be a copy and paste exercise from the websites mentioned:&lt;br /&gt;&lt;br /&gt;Shrinking reiserfs partition HOW-TO&lt;br /&gt;&lt;br /&gt;(live example)&lt;br /&gt;&lt;br /&gt;Preliminaries&lt;br /&gt;&lt;br /&gt;The reiserfs filesystem has a tool for changing its size. Extending of a reiserfs volume can be done if the fs is mounted as well as for not mounted fs. Fs shrinking is supported only when fs is unmounted.&lt;br /&gt;&lt;br /&gt;0. Before any change of the disk partition table&lt;br /&gt;&lt;br /&gt;First of all you need to backup partition table into a file. If you make a mistake you can re-create partitions at their initial correct places.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[root@haron root]# fdisk -l -u /dev/hda &gt; hda.table.save&lt;br /&gt;[root@haron root]# cat hda.table.save&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Disk /dev/hda: 80.0 GB, 80032038912 bytes&lt;br /&gt;255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors&lt;br /&gt;Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;&lt;br /&gt;   Device Boot    Start       End    Blocks   Id  System&lt;br /&gt;   Device Boot    Start       End    Blocks   Id  System&lt;br /&gt;/dev/hda1   *        63 122881184  61440561   83  Linux&lt;br /&gt;/dev/hda2     122881185 151557209  14338012+  83  Linux&lt;br /&gt;/dev/hda4     151557210 156312449   2377620   82  Linux swap&lt;br /&gt;[root@haron root]#&lt;/span&gt;&lt;br /&gt;1. Here we start&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[root@haron root]# df -T /mnt/testfs/&lt;br /&gt;Filesystem    Type   1K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/hda2 reiserfs    14337568   2143672  12193896  15% /mnt/testfs&lt;br /&gt;[root@haron root]#&lt;/span&gt;&lt;br /&gt;2. umount the fs and shrink it by 10G (for dirs like /opt, reboot into recovery mode)&lt;br /&gt;&lt;br /&gt;further, -s-10G = "shrink by 10GB (100GB - 10GB = 90GB)" and -s+10G = "grow by 10GB (100GB + 10GB = 110GB)"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[root@haron root]# umount /mnt/testfs/&lt;br /&gt;&lt;br /&gt;[root@haron root]# resize_reiserfs -s-10G -f /dev/hda2&lt;br /&gt;resize_reiserfs 3.6.11 (2003 www.namesys.com)&lt;br /&gt;&lt;br /&gt;You are running BETA version of reiserfs shrinker.&lt;br /&gt;This version is only for testing or VERY CAREFUL use.&lt;br /&gt;Backup of you data is recommended.&lt;br /&gt;&lt;br /&gt;Do you want to continue? [y/N]:y&lt;br /&gt;Processing the tree: 0%....20%....40%....60%....80%....100%  left 0, 65963 /sec&lt;br /&gt;&lt;br /&gt;nodes processed (moved):&lt;br /&gt;int        100 (0),&lt;br /&gt;leaves     15493 (0),&lt;br /&gt;unfm       512116 (0),&lt;br /&gt;total      527709 (0).&lt;br /&gt;&lt;br /&gt;check for used blocks in truncated region&lt;br /&gt;&lt;br /&gt;ReiserFS report:&lt;br /&gt;blocksize             4096&lt;br /&gt;block count           963063 (3584503)&lt;br /&gt;free blocks           427114 (3048474)&lt;br /&gt;bitmap block count    30 (110)&lt;br /&gt;&lt;br /&gt;Syncing..done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;resize_reiserfs: Resizing finished successfully.&lt;/span&gt;&lt;br /&gt;3. find the fs new size&lt;br /&gt;&lt;br /&gt;The new fs size is in resize_reiserfs final report: it said that block count now is 963063. Another way to determine fs size is to run debugreiserfs(8)&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[root@haron root]# debugreiserfs /dev/hda2&lt;br /&gt;debugreiserfs 3.6.11 (2003 www.namesys.com)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Filesystem state: consistent&lt;br /&gt;&lt;br /&gt;Reiserfs super block in block 16 on 0x302 of format 3.6 with standard journal&lt;br /&gt;Count of blocks on the device: 963063&lt;br /&gt;Number of bitmaps: 30&lt;br /&gt;Blocksize: 4096&lt;br /&gt;Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 427114&lt;br /&gt;Root block: 8674&lt;br /&gt;Filesystem is cleanly umounted&lt;br /&gt;Tree height: 4&lt;br /&gt;Hash function used to sort names: "r5"&lt;br /&gt;Objectid map size 2, max 972&lt;br /&gt;Journal parameters:&lt;br /&gt;        Device [0x0]&lt;br /&gt;        Magic [0x60aa06b]&lt;br /&gt;        Size 8193 blocks (including 1 for journal header) (first block 18)&lt;br /&gt;        Max transaction length 1024 blocks&lt;br /&gt;        Max batch size 900 blocks&lt;br /&gt;        Max commit age 30&lt;br /&gt;Blocks reserved by journal: 0&lt;br /&gt;Fs state field: 0x0:&lt;br /&gt;sb_version: 2&lt;br /&gt;inode generation number: 0&lt;br /&gt;UUID: 467aea6f-16a8-445c-9f3b-7c8ef590894e&lt;br /&gt;LABEL:&lt;br /&gt;Set flags in SB:&lt;br /&gt;        ATTRIBUTES CLEAN&lt;br /&gt;The number "Count of blocks on the device" indeed is number of blocks in the fs.&lt;/span&gt;&lt;br /&gt;4. resizing underlying disk partition by fdisk(8) (size info is step 5)&lt;br /&gt;&lt;br /&gt;for this section, precision is essential so if the original start sector is diff to the new one fdisk provides, use the original instead of the new&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[root@haron root]# fdisk /dev/hda&lt;br /&gt;First, we ask fdisk to show partition boundaries in sectors, not in blocks, because we need maximum precision there.&lt;br /&gt;Command (m for help): u&lt;br /&gt;Changing display/entry units to sectors&lt;br /&gt;&lt;br /&gt;Command (m for help): p&lt;br /&gt;&lt;br /&gt;Disk /dev/hda: 80.0 GB, 80032038912 bytes&lt;br /&gt;255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors&lt;br /&gt;Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;&lt;br /&gt;   Device Boot    Start       End    Blocks   Id  System&lt;br /&gt;/dev/hda1   *        63 122881184  61440561   83  Linux&lt;br /&gt;/dev/hda2     122881185 151557209  14338012+  83  Linux&lt;br /&gt;/dev/hda4     151557210 156312449   2377620   82  Linux swap&lt;br /&gt;Then we delete partition #2 ...&lt;br /&gt;Command (m for help):d&lt;br /&gt;Partition number (1-4): 2&lt;br /&gt;Command (m for help): p&lt;br /&gt;&lt;br /&gt;Disk /dev/hda: 80.0 GB, 80032038912 bytes&lt;br /&gt;255 heads, 63 sectors/track, 9730 cylinders, total 156312576 sectors&lt;br /&gt;Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;&lt;br /&gt;   Device Boot    Start       End    Blocks   Id  System&lt;br /&gt;/dev/hda1   *        63 122881184  61440561   83  Linux&lt;br /&gt;/dev/hda4     151557210 156312449   2377620   82  Linux swap&lt;br /&gt;... and create new one with same start offset and the new size.&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;   e   extended&lt;br /&gt;   p   primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 2&lt;br /&gt;First sector (122881185-156312575, default 122881185):&lt;br /&gt;Using default value 122881185&lt;br /&gt;Last sector or +size or +sizeM or +sizeK (122881185-151557209, default 151557209): 130585688&lt;/span&gt;&lt;br /&gt;number 130585688 is calculated as ( 122881185 (hda2 start) + 963063 (fs size in 4k blocks) * 8 (sectors per 4k block) - 1) by bc -l:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;$ bc -l&lt;br /&gt;bc 1.06&lt;br /&gt;122881185 + 963063 * 8  - 1&lt;br /&gt;130585688&lt;/span&gt;&lt;br /&gt;add free space for another one partition&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;   e   extended&lt;br /&gt;   p   primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Selected partition 3&lt;br /&gt;First sector (130585689-156312575, default 130585689):&lt;br /&gt;Using default value 130585689&lt;br /&gt;Last sector or +size or +sizeM or +sizeK (130585689-151557209, default 151557209):&lt;br /&gt;Using default value 151557209&lt;br /&gt;&lt;br /&gt;Command (m for help): w&lt;br /&gt;The partition table has been altered!&lt;br /&gt;&lt;br /&gt;Calling ioctl() to re-read partition table.&lt;br /&gt;&lt;br /&gt;WARNING: Re-reading the partition table failed with error 16: Device or resource busy.&lt;br /&gt;The kernel still uses the old table.&lt;br /&gt;The new table will be used at the next reboot.&lt;br /&gt;Syncing disks.&lt;br /&gt;[root@haron root]# reboot&lt;br /&gt;&lt;br /&gt;Broadcast message from root (pts/0) (Mon Dec  8 21:11:03 2003):&lt;br /&gt;&lt;br /&gt;The system is going down for reboot NOW!&lt;/span&gt;&lt;br /&gt;5. Check result fs by reiserfsck(8)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[root@haron root]# echo Yes | reiserfsck /dev/hda2&lt;br /&gt;reiserfsck 3.6.11 (2003 www.namesys.com)&lt;br /&gt;&lt;br /&gt;*************************************************************&lt;br /&gt;** If you are using the latest reiserfsprogs and  it fails **&lt;br /&gt;** please  email bug reports to reiserfs-list@namesys.com, **&lt;br /&gt;** providing  as  much  information  as  possible --  your **&lt;br /&gt;** hardware,  kernel,  patches,  settings,  all reiserfsck **&lt;br /&gt;** messages  (including version),  the reiserfsck logfile, **&lt;br /&gt;** check  the  syslog file  for  any  related information. **&lt;br /&gt;** If you would like advice on using this program, support **&lt;br /&gt;** is available  for $25 at  www.namesys.com/support.html. **&lt;br /&gt;*************************************************************&lt;br /&gt;&lt;br /&gt;Will read-only check consistency of the filesystem on /dev/hda2&lt;br /&gt;Will put log info to 'stdout'&lt;br /&gt;&lt;br /&gt;Do you want to run this program?[N/Yes] (note need to type Yes if you do):###########&lt;br /&gt;reiserfsck --check started at Mon Dec  8 21:14:56 2003&lt;br /&gt;###########&lt;br /&gt;Replaying journal..&lt;br /&gt;0 transactions replayed&lt;br /&gt;Checking internal tree..finished&lt;br /&gt;Comparing bitmaps..finished&lt;br /&gt;Checking Semantic tree:&lt;br /&gt;finished&lt;br /&gt;No corruptions found&lt;br /&gt;There are on the filesystem:&lt;br /&gt;        Leaves 15493&lt;br /&gt;        Internal nodes 100&lt;br /&gt;        Directories 5733&lt;br /&gt;        Other files 67471&lt;br /&gt;        Data block pointers 512124 (8 of them are zero)&lt;br /&gt;        Safe links 0&lt;br /&gt;###########&lt;br /&gt;reiserfsck finished at Mon Dec  8 21:15:16 2003&lt;br /&gt;###########&lt;br /&gt;Reiserfsck reports that everything is OK.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Adding Swap Space&lt;br /&gt;with the partition shrunk, create a new swap partition as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;fdisk /dev/hda&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;n&lt;/span&gt; (new partition)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;p&lt;/span&gt; (primary partition&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;+1000M&lt;/span&gt; (1GB sized swap)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;t&lt;br /&gt;&lt;br /&gt;82&lt;br /&gt;&lt;br /&gt;w&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;all done!&lt;br /&gt;&lt;span style="font-style:italic;"&gt;mkswap /dev/hdb2&lt;/span&gt;&lt;br /&gt;To enable the swap partition immediately, type the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;swapon /dev/hdb2&lt;/span&gt;&lt;br /&gt;To enable it at boot time, edit /etc/fstab to include:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/dev/hdb2               swap                    swap    defaults        0 0&lt;/span&gt;&lt;br /&gt;The next time the system boots, it will enable the new swap partition.&lt;br /&gt;&lt;br /&gt;After adding the new swap partition and enabling it, make sure it is enabled by using the command &lt;span style="font-style:italic;"&gt;free&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-114643264772477408?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/114643264772477408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=114643264772477408&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114643264772477408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114643264772477408'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/04/repartitioning-your-system_114643264772477408.html' title='repartitioning your system live / adding new partitions'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-114567227074654896</id><published>2006-04-22T03:17:00.000+01:00</published><updated>2006-04-22T03:17:50.756+01:00</updated><title type='text'>samba config memory jogger</title><content type='html'>http://www.samba.netfirms.com/faq.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-114567227074654896?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/114567227074654896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=114567227074654896&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114567227074654896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114567227074654896'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/04/samba-config-memory-jogger.html' title='samba config memory jogger'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-114564145473820047</id><published>2006-04-21T18:43:00.000+01:00</published><updated>2006-04-21T18:44:14.746+01:00</updated><title type='text'>reconfigure xfree86</title><content type='html'>use dpkg xserver-xfree86&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-114564145473820047?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/114564145473820047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=114564145473820047&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114564145473820047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114564145473820047'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/04/reconfigure-xfree86.html' title='reconfigure xfree86'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-114527353609680962</id><published>2006-04-17T12:26:00.000+01:00</published><updated>2006-04-17T12:39:17.846+01:00</updated><title type='text'>debian global path (global environment variable)</title><content type='html'>everytime I want to make changes to this, I forget its location :-s&lt;br /&gt;&lt;br /&gt;to combat this, here's my bookmark:&lt;br /&gt;&lt;br /&gt;/etc/profile&lt;br /&gt;&lt;br /&gt;for those who have never done this in Linux before, but have in windows, you append things in the same manner you do in windows, using : as separators as opposed to ;&lt;br /&gt;&lt;br /&gt;if you do not feel adventurous you can just add to the bottom of the file: export PATH=$PATH:/location/of/new/feature&lt;br /&gt;&lt;br /&gt;this can also be added to individual users shell rc files (.bashrc for example) if you only want certain users to have the program in their path&lt;br /&gt;&lt;br /&gt;alternativley of course, you could just add a symbolic link to /usr/bin :-) &lt;br /&gt;&lt;br /&gt;like this:&lt;br /&gt;&lt;br /&gt;cd /usr/bin&lt;br /&gt;ln -s /path/to/program&lt;br /&gt;&lt;br /&gt;be forewarned though, this only works for self-contained programs! so programs such as Azureus which use the path they were called from to locate its JAR files will not work using this!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-114527353609680962?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/114527353609680962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=114527353609680962&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114527353609680962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/114527353609680962'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/04/debian-global-path-global-environment.html' title='debian global path (global environment variable)'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-113988110096614705</id><published>2006-02-14T01:38:00.000Z</published><updated>2006-02-14T01:38:20.966Z</updated><title type='text'>a good read</title><content type='html'>http://www.novell.com/linux/truth/better_choice.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-113988110096614705?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/113988110096614705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=113988110096614705&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113988110096614705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113988110096614705'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/02/good-read.html' title='a good read'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-113988102355656765</id><published>2006-02-14T01:35:00.000Z</published><updated>2006-02-14T01:39:02.206Z</updated><title type='text'>dns and bind</title><content type='html'>i really cannot be bothered to explain how, its a long process and you need to be in the know in the first place, so here's the manual: &lt;a href="http://www.unix.org.ua/orelly/networking/dnsbind/prf1_01.htm"&gt;Manual&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;O'Reilly is an excellent resource on this, I highly recommend it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-113988102355656765?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/113988102355656765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=113988102355656765&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113988102355656765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113988102355656765'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/02/dns-and-bind.html' title='dns and bind'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-113988024808820674</id><published>2006-02-14T01:14:00.000Z</published><updated>2006-02-14T01:26:52.173Z</updated><title type='text'>a quick and dirty way to get scripts to start with the system in debian</title><content type='html'>i appologise but i cannot remember where i found this as it was so long ago. this script is very quick and dirty and is useless past simple uses, if youre program requires a proper startup, restart and shutdown script then don't use this, YOU HAVE BEEN WARNED! i use it for my firewall. basically take a simple script such as the reboot (/etc/init.d/reboot) script and modify it to your needs, for me, it just points to my firewall:&lt;br /&gt;&lt;br /&gt;#! /bin/sh&lt;br /&gt;#&lt;br /&gt;# reboot        Execute the reboot command.&lt;br /&gt;#&lt;br /&gt;# Version:      @(#)reboot  2.75  22-Jun-1998  miquels@cistron.nl&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;&lt;br /&gt;echo -n "Rebooting... "&lt;br /&gt;reboot -d -f -i&lt;br /&gt;&lt;br /&gt;converted to:&lt;br /&gt;#! /bin/sh&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;&lt;br /&gt;echo "Starting Firewall and NAT"&lt;br /&gt;/home/firewall-scripts/firewall&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;once created (and left in the /etc/init.d directory) call &lt;span style="font-weight:bold;"&gt;update-rc.d &lt;span style="font-style:italic;"&gt;path/to/filename&lt;/span&gt; defaults&lt;/span&gt; to get it added to all the default debian startups, if you want to manually work out which runlevels it should start on, read the update-rc.d manual&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-113988024808820674?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/113988024808820674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=113988024808820674&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113988024808820674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113988024808820674'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/02/quick-and-dirty-way-to-get-scripts-to.html' title='a quick and dirty way to get scripts to start with the system in debian'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-113987824366816705</id><published>2006-02-14T00:42:00.000Z</published><updated>2006-04-23T16:37:27.640+01:00</updated><title type='text'>an example firewall</title><content type='html'>this one's title isnt linked because i have made several modifications to the site where i originally learnt this, but i will link that site: &lt;a href="http://yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html"&gt;http://yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html&lt;/a&gt;, infact, i'll link the whole place because its good: &lt;a href="http://yolinux.com/"&gt;http://yolinux.com/&lt;/a&gt; and most specifically, the tutorials section: &lt;a href="http://yolinux.com/TUTORIALS/"&gt;http://yolinux.com/TUTORIALS/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;anyway, here's the example firewalls:&lt;br /&gt;&lt;br /&gt;firewall:&lt;br /&gt;&lt;br /&gt;# Delete and flush. Default table is "filter". Others like "nat" must be explicitly stated.&lt;br /&gt;iptables --flush # - Flush all the rules in filter and nat tables&lt;br /&gt;iptables --table nat --flush&lt;br /&gt;iptables --delete-chain # - Delete all chains that are not in default filter and nat table&lt;br /&gt;iptables --table nat --delete-chain&lt;br /&gt;&lt;br /&gt;# Set up IP FORWARDing and Masquerading&lt;br /&gt;#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 # Transparency for Squid&lt;br /&gt;iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE&lt;br /&gt;iptables --append FORWARD --in-interface eth1 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -i lo -p all -j ACCEPT # - Allow self access by loopback interface&lt;br /&gt;iptables -A OUTPUT -o lo -p all -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT #- Accept established connections&lt;br /&gt;iptables -A INPUT -i eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT #- Accept established connections&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp --tcp-option ! 2 -j REJECT --reject-with tcp-reset&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp --dport 21 -j ACCEPT # - Open ftp port&lt;br /&gt;iptables -A INPUT -p udp --dport 21 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp --dport 22 -j ACCEPT # - Open secure shell port&lt;br /&gt;iptables -A INPUT -p udp --dport 22 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp --dport 53 -j ACCEPT # - Open DNS ports&lt;br /&gt;iptables -A INPUT -p udp --dport 53 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp --dport 80 -j ACCEPT # - Open HTTP port&lt;br /&gt;iptables -A INPUT -p udp --dport 80 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp --dport 8080 -j ACCEPT # - Open Tomcat port&lt;br /&gt;iptables -A INPUT -p udp --dport 8080 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp -i eth1 --dport 445 -j ACCEPT # - Open SMB port - Internal Network Only&lt;br /&gt;iptables -A INPUT -p udp -i eth1 --dport 445 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp -i eth1 --dport 139 -j ACCEPT # - Open NetBios port - Internal Network Only&lt;br /&gt;iptables -A INPUT -p udp -i eth1 --dport 139 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp -i eth1 --dport 137 -j ACCEPT # - Open NetBios-ns port - Internal Network Only&lt;br /&gt;iptables -A INPUT -p udp -i eth1 --dport 137 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp -i eth1 --dport 138 -j ACCEPT # - Open NetBios port-dgm - Internal Network Only&lt;br /&gt;iptables -A INPUT -p udp -i eth1 --dport 138 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp -i eth1 --dport 123 -j ACCEPT # - Open NTP port - Internal Network Only&lt;br /&gt;iptables -A INPUT -p udp -i eth1 --dport 123 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -A INPUT -p tcp --dport 49152:65534 -j ACCEPT # - Passive FTP ports&lt;br /&gt;iptables -A INPUT -p udp --dport 49152:65534 -j ACCEPT&lt;br /&gt;&lt;br /&gt;iptables -P INPUT DROP # - Drop all other connection attempts. Only connections defined above are allowed.&lt;br /&gt;&lt;br /&gt;echo 1 &gt; /proc/sys/net/ipv4/ip_forward # - Enables packet forwarding by kernel&lt;br /&gt;#--END--&lt;br /&gt;&lt;br /&gt;this works for IPv4, when the IPv6 version becomes relevant, I'll post it :)&lt;br /&gt;&lt;br /&gt;EDIT: Another great resource is from James Stephens at: &lt;a href="http://www.sns.ias.edu/~jns/wp/iptables/"&gt;http://www.sns.ias.edu/~jns/wp/iptables/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-113987824366816705?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/113987824366816705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=113987824366816705&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113987824366816705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113987824366816705'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/02/example-firewall.html' title='an example firewall'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-113888923897945939</id><published>2006-02-02T14:06:00.000Z</published><updated>2006-02-02T14:07:18.986Z</updated><title type='text'>A-Z of BASH Commands</title><content type='html'>alias    Create an alias&lt;br /&gt;awk      Find and Replace text, database sort/validate/index&lt;br /&gt;break    Exit from a loop&lt;br /&gt;builtin  Run a shell builtin&lt;br /&gt;&lt;br /&gt;cal      Display a calendar&lt;br /&gt;case     Conditionally perform a command&lt;br /&gt;cat      Display the contents of a file&lt;br /&gt;cd       Change Directory&lt;br /&gt;cfdisk   Partition table manipulator for Linux&lt;br /&gt;chgrp    Change group ownership&lt;br /&gt;chmod    Change access permissions&lt;br /&gt;chown    Change file owner and group&lt;br /&gt;chroot   Run a command with a different root directory&lt;br /&gt;cksum    Print CRC checksum and byte counts&lt;br /&gt;clear    Clear terminal screen&lt;br /&gt;cmp      Compare two files&lt;br /&gt;comm     Compare two sorted files line by line&lt;br /&gt;command  Run a command - ignoring shell functions&lt;br /&gt;continue Resume the next iteration of a loop&lt;br /&gt;cp       Copy one or more files to another location&lt;br /&gt;cron     Daemon to execute scheduled commands&lt;br /&gt;crontab  Schedule a command to run at a later time&lt;br /&gt;csplit   Split a file into context-determined pieces&lt;br /&gt;cut      Divide a file into several parts&lt;br /&gt;&lt;br /&gt;date     Display or change the date &amp; time&lt;br /&gt;dc       Desk Calculator&lt;br /&gt;dd       Data Dump - Convert and copy a file&lt;br /&gt;declare  Declare variables and give them attributes&lt;br /&gt;df       Display free disk space&lt;br /&gt;diff     Display the differences between two files&lt;br /&gt;diff3    Show differences among three files&lt;br /&gt;dir      Briefly list directory contents&lt;br /&gt;dircolors Colour setup for `ls'&lt;br /&gt;dirname  Convert a full pathname to just a path&lt;br /&gt;dirs     Display list of remembered directories&lt;br /&gt;du       Estimate file space usage&lt;br /&gt;&lt;br /&gt;echo     Display message on screen&lt;br /&gt;ed       A line-oriented text editor (edlin)&lt;br /&gt;egrep    Search file(s) for lines that match an extended expression&lt;br /&gt;eject    Eject CD-ROM&lt;br /&gt;enable   Enable and disable builtin shell commands&lt;br /&gt;env      Display, set, or remove environment variables&lt;br /&gt;eval     Evaluate several commands/arguments&lt;br /&gt;exec     Execute a command&lt;br /&gt;exit     Exit the shell&lt;br /&gt;expand   Convert tabs to spaces&lt;br /&gt;export   Set an environment variable&lt;br /&gt;expr     Evaluate expressions&lt;br /&gt;&lt;br /&gt;factor   Print prime factors&lt;br /&gt;false    Do nothing, unsuccessfully&lt;br /&gt;fdformat Low-level format a floppy disk&lt;br /&gt;fdisk    Partition table manipulator for Linux&lt;br /&gt;fgrep    Search file(s) for lines that match a fixed string&lt;br /&gt;find     Search for files that meet a desired criteria&lt;br /&gt;fmt      Reformat paragraph text&lt;br /&gt;fold     Wrap text to fit a specified width.&lt;br /&gt;for      Expand words, and execute commands&lt;br /&gt;format   Format disks or tapes&lt;br /&gt;free     Display memory usage&lt;br /&gt;fsck     Filesystem consistency check and repair.&lt;br /&gt;function Define Function Macros&lt;br /&gt;&lt;br /&gt;gawk     Find and Replace text within file(s)&lt;br /&gt;getopts  Parse positional parameters&lt;br /&gt;grep     Search file(s) for lines that match a given pattern&lt;br /&gt;groups   Print group names a user is in&lt;br /&gt;gzip     Compress or decompress named file(s)&lt;br /&gt;&lt;br /&gt;hash     Remember the full pathname of a name argument&lt;br /&gt;head     Output the first part of file(s)&lt;br /&gt;history  Command History&lt;br /&gt;hostname Print or set system name&lt;br /&gt;&lt;br /&gt;id       Print user and group id's&lt;br /&gt;if       Conditionally perform a command&lt;br /&gt;import   Capture an X server screen and save the image to file&lt;br /&gt;info     Help info&lt;br /&gt;install  Copy files and set attributes&lt;br /&gt;&lt;br /&gt;join     Join lines on a common field&lt;br /&gt;&lt;br /&gt;kill     Stop a process from running&lt;br /&gt;&lt;br /&gt;less     Display output one screen at a time&lt;br /&gt;let      Perform arithmetic on shell variables&lt;br /&gt;ln       Make links between files&lt;br /&gt;local    Create variables&lt;br /&gt;locate   Find files&lt;br /&gt;logname  Print current login name&lt;br /&gt;logout   Exit a login shell&lt;br /&gt;lpc      Line printer control program&lt;br /&gt;lpr      Off line print&lt;br /&gt;lprint   Print a file&lt;br /&gt;lprintd  Abort a print job&lt;br /&gt;lprintq  List the print queue&lt;br /&gt;lprm     Remove jobs from the print queue&lt;br /&gt;ls       List information about file(s)&lt;br /&gt;&lt;br /&gt;m4       Macro processor&lt;br /&gt;man      Help manual&lt;br /&gt;mkdir    Create new folder(s)&lt;br /&gt;mkfifo   Make FIFOs (named pipes)&lt;br /&gt;mknod    Make block or character special files&lt;br /&gt;more     Display output one screen at a time&lt;br /&gt;mount    Mount a file system&lt;br /&gt;mtools   Manipulate MS-DOS files&lt;br /&gt;mv       Move or rename files or directories&lt;br /&gt;&lt;br /&gt;nice     Set the priority of a command or job&lt;br /&gt;nl       Number lines and write files&lt;br /&gt;nohup    Run a command immune to hangups&lt;br /&gt;&lt;br /&gt;passwd   Modify a user password&lt;br /&gt;paste    Merge lines of files&lt;br /&gt;pathchk  Check file name portability&lt;br /&gt;popd     Restore the previous value of the current directory&lt;br /&gt;pr       Convert text files for printing&lt;br /&gt;printcap Printer capability database&lt;br /&gt;printenv Print environment variables&lt;br /&gt;printf   Format and print data&lt;br /&gt;ps       Process status&lt;br /&gt;pushd    Save and then change the current directory&lt;br /&gt;pwd      Print Working Directory&lt;br /&gt;&lt;br /&gt;quota    Display disk usage and limits&lt;br /&gt;quotacheck Scan a file system for disk usage&lt;br /&gt;quotactl Set disk quotas&lt;br /&gt;&lt;br /&gt;ram      ram disk device&lt;br /&gt;rcp      Copy files between two machines.&lt;br /&gt;read     read a line from standard input&lt;br /&gt;readonly Mark variables/functions as readonly&lt;br /&gt;remsync  Synchronize remote files via email&lt;br /&gt;return   Exit a shell function&lt;br /&gt;rm       Remove files&lt;br /&gt;rmdir    Remove folder(s)&lt;br /&gt;rpm      Remote Package Manager&lt;br /&gt;rsync    Remote file copy (Synchronize file trees)&lt;br /&gt;&lt;br /&gt;screen   Terminal window manager&lt;br /&gt;sdiff    Merge two files interactively&lt;br /&gt;sed      Stream Editor&lt;br /&gt;select   Accept keyboard input&lt;br /&gt;seq      Print numeric sequences&lt;br /&gt;set      Manipulate shell variables and functions&lt;br /&gt;shift    Shift positional parameters&lt;br /&gt;shopt    Shell Options&lt;br /&gt;shutdown Shutdown or restart linux&lt;br /&gt;sleep    Delay for a specified time&lt;br /&gt;sort     Sort text files&lt;br /&gt;source   Run commands from a file `.'&lt;br /&gt;split    Split a file into fixed-size pieces&lt;br /&gt;su       Substitute user identity&lt;br /&gt;sum      Print a checksum for a file&lt;br /&gt;symlink  Make a new name for a file&lt;br /&gt;sync     Synchronize data on disk with memory&lt;br /&gt;&lt;br /&gt;tac      Concatenate and write files in reverse&lt;br /&gt;tail     Output the last part of files&lt;br /&gt;tar      Tape ARchiver&lt;br /&gt;tee      Redirect output to multiple files&lt;br /&gt;test     Evaluate a conditional expression&lt;br /&gt;time     Measure Program Resource Use&lt;br /&gt;times    User and system times&lt;br /&gt;touch    Change file timestamps&lt;br /&gt;top      List processes running on the system&lt;br /&gt;traceroute Trace Route to Host&lt;br /&gt;trap     Run a command when a signal is set(bourne)&lt;br /&gt;tr       Translate, squeeze, and/or delete characters&lt;br /&gt;true     Do nothing, successfully&lt;br /&gt;tsort    Topological sort&lt;br /&gt;tty      Print filename of terminal on stdin&lt;br /&gt;type     Describe a command&lt;br /&gt;&lt;br /&gt;ulimit   Limit user resources&lt;br /&gt;umask    Users file creation mask&lt;br /&gt;umount   Unmount a device&lt;br /&gt;unalias  Remove an alias&lt;br /&gt;uname    Print system information&lt;br /&gt;unexpand Convert spaces to tabs&lt;br /&gt;uniq     Uniquify files&lt;br /&gt;units    Convert units from one scale to another&lt;br /&gt;unset    Remove variable or function names&lt;br /&gt;unshar   Unpack shell archive scripts&lt;br /&gt;until    Execute commands (until error)&lt;br /&gt;useradd  Create new user account&lt;br /&gt;usermod  Modify user account&lt;br /&gt;users    List users currently logged in&lt;br /&gt;uuencode Encode a binary file &lt;br /&gt;uudecode Decode a file created by uuencode&lt;br /&gt;&lt;br /&gt;v        Verbosely list directory contents (`ls -l -b')&lt;br /&gt;vdir     Verbosely list directory contents (`ls -l -b')&lt;br /&gt;&lt;br /&gt;watch    Execute/display a program periodically&lt;br /&gt;wc       Print byte, word, and line counts&lt;br /&gt;whereis  Report all known instances of a command    &lt;br /&gt;which    Locate a program file in the user's path. &lt;br /&gt;while    Execute commands&lt;br /&gt;who      Print all usernames currently logged in&lt;br /&gt;whoami   Print the current user id and name (`id -un')&lt;br /&gt;&lt;br /&gt;xargs    Execute utility, passing constructed argument list(s)&lt;br /&gt;yes      Print a string until interrupted&lt;br /&gt;&lt;br /&gt;.period  Run commands from a file&lt;br /&gt;###      Comment / Remark&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-113888923897945939?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.ss64.com/bash/' title='A-Z of BASH Commands'/><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/113888923897945939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=113888923897945939&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113888923897945939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113888923897945939'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/02/z-of-bash-commands.html' title='A-Z of BASH Commands'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6929972.post-113888910664639948</id><published>2006-02-02T14:03:00.000Z</published><updated>2006-02-02T14:05:06.650Z</updated><title type='text'>standard used port numbers</title><content type='html'>0 &lt;br /&gt;1 tcpmux&lt;br /&gt;3 &lt;br /&gt;4 &lt;br /&gt;5 rje&lt;br /&gt;7 echo&lt;br /&gt;9 discard&lt;br /&gt;11 systat&lt;br /&gt;13 daytime&lt;br /&gt;15 netstat&lt;br /&gt;17 qotd&lt;br /&gt;18 send/rwp&lt;br /&gt;19 chargen&lt;br /&gt;20 ftp-data&lt;br /&gt;21 ftp&lt;br /&gt;22 ssh, pcAnywhere&lt;br /&gt;23 Telnet&lt;br /&gt;25 SMTP&lt;br /&gt;27 ETRN&lt;br /&gt;29 msg-icp&lt;br /&gt;31 msg-auth&lt;br /&gt;33 dsp&lt;br /&gt;37 time&lt;br /&gt;38 RAP&lt;br /&gt;39 rlp&lt;br /&gt;40 &lt;br /&gt;41 &lt;br /&gt;42 nameserv, WINS&lt;br /&gt;43 whois, nickname&lt;br /&gt;49 TACACS, Login Host Protocol&lt;br /&gt;50 RMCP, re-mail-ck&lt;br /&gt;53 DNS&lt;br /&gt;57 MTP&lt;br /&gt;59 NFILE&lt;br /&gt;63 whois++&lt;br /&gt;66 sql*net&lt;br /&gt;67 bootps&lt;br /&gt;68 bootpd/dhcp&lt;br /&gt;69 Trivial File Transfer Protocol (tftp)&lt;br /&gt;70 Gopher&lt;br /&gt;79 finger&lt;br /&gt;80 www-http&lt;br /&gt;87 &lt;br /&gt;88 Kerberos, WWW&lt;br /&gt;95 supdup&lt;br /&gt;96 DIXIE&lt;br /&gt;98 linuxconf&lt;br /&gt;101 HOSTNAME&lt;br /&gt;102 ISO, X.400, ITOT&lt;br /&gt;105 cso&lt;br /&gt;106 poppassd&lt;br /&gt;109 POP2&lt;br /&gt;110 POP3&lt;br /&gt;111 Sun RPC Portmapper&lt;br /&gt;113 identd/auth&lt;br /&gt;115 sftp&lt;br /&gt;116 &lt;br /&gt;117 uucp&lt;br /&gt;118 &lt;br /&gt;119 NNTP&lt;br /&gt;120 CFDP&lt;br /&gt;123 NTP&lt;br /&gt;124 SecureID&lt;br /&gt;129 PWDGEN&lt;br /&gt;133 statsrv&lt;br /&gt;135 loc-srv/epmap&lt;br /&gt;137 netbios-ns&lt;br /&gt;138 netbios-dgm (UDP)&lt;br /&gt;139 NetBIOS&lt;br /&gt;143 IMAP&lt;br /&gt;144 NewS&lt;br /&gt;150 &lt;br /&gt;152 BFTP&lt;br /&gt;153 SGMP&lt;br /&gt;156 &lt;br /&gt;161 SNMP&lt;br /&gt;175 vmnet&lt;br /&gt;177 XDMCP&lt;br /&gt;178 NextStep Window Server&lt;br /&gt;179 BGP&lt;br /&gt;180 SLmail admin&lt;br /&gt;199 smux&lt;br /&gt;210 Z39.50&lt;br /&gt;213 &lt;br /&gt;218 MPP&lt;br /&gt;220 IMAP3&lt;br /&gt;256 &lt;br /&gt;257 &lt;br /&gt;258 &lt;br /&gt;259 ESRO&lt;br /&gt;264 FW1_topo&lt;br /&gt;311 Apple WebAdmin&lt;br /&gt;350 MATIP type A&lt;br /&gt;351 MATIP type B&lt;br /&gt;360 &lt;br /&gt;363 RSVP tunnel&lt;br /&gt;366 ODMR (On-Demand Mail Relay)&lt;br /&gt;371 &lt;br /&gt;387 AURP (AppleTalk Update-Based Routing Protocol)&lt;br /&gt;389 LDAP&lt;br /&gt;407 Timbuktu&lt;br /&gt;427 &lt;br /&gt;434 Mobile IP&lt;br /&gt;443 ssl&lt;br /&gt;444 snpp, Simple Network Paging Protocol&lt;br /&gt;445 SMB&lt;br /&gt;458 QuickTime TV/Conferencing&lt;br /&gt;468 Photuris&lt;br /&gt;475 &lt;br /&gt;500 ISAKMP, pluto&lt;br /&gt;511 &lt;br /&gt;512 biff, rexec&lt;br /&gt;513 who, rlogin&lt;br /&gt;514 syslog, rsh&lt;br /&gt;515 lp, lpr, line printer&lt;br /&gt;517 talk&lt;br /&gt;520 RIP (Routing Information Protocol)&lt;br /&gt;521 RIPng&lt;br /&gt;522 ULS&lt;br /&gt;531 IRC&lt;br /&gt;543 KLogin, AppleShare over IP&lt;br /&gt;545 QuickTime&lt;br /&gt;548 AFP&lt;br /&gt;554 Real Time Streaming Protocol&lt;br /&gt;555 phAse Zero&lt;br /&gt;563 NNTP over SSL&lt;br /&gt;575 VEMMI&lt;br /&gt;581 Bundle Discovery Protocol&lt;br /&gt;593 MS-RPC&lt;br /&gt;608 SIFT/UFT&lt;br /&gt;626 Apple ASIA&lt;br /&gt;631 IPP (Internet Printing Protocol)&lt;br /&gt;635 mountd&lt;br /&gt;636 sldap&lt;br /&gt;642 EMSD&lt;br /&gt;648 RRP (NSI Registry Registrar Protocol)&lt;br /&gt;655 tinc&lt;br /&gt;660 Apple MacOS Server Admin&lt;br /&gt;666 Doom&lt;br /&gt;674 ACAP&lt;br /&gt;687 AppleShare IP Registry&lt;br /&gt;700 buddyphone&lt;br /&gt;705 AgentX for SNMP&lt;br /&gt;901 swat, realsecure&lt;br /&gt;993 s-imap&lt;br /&gt;995 s-pop&lt;br /&gt;999 &lt;br /&gt;1024 &lt;br /&gt;1025 &lt;br /&gt;1050 &lt;br /&gt;1062 Veracity&lt;br /&gt;1080 SOCKS&lt;br /&gt;1085 WebObjects&lt;br /&gt;1100 &lt;br /&gt;1105 &lt;br /&gt;1114 &lt;br /&gt;1227 DNS2Go&lt;br /&gt;1234 &lt;br /&gt;1243 SubSeven&lt;br /&gt;1338 Millennium Worm&lt;br /&gt;1352 Lotus Notes&lt;br /&gt;1381 Apple Network License Manager&lt;br /&gt;1417 Timbuktu&lt;br /&gt;1418 Timbuktu&lt;br /&gt;1419 Timbuktu&lt;br /&gt;1420 &lt;br /&gt;1433 Microsoft SQL Server&lt;br /&gt;1434 Microsoft SQL Monitor&lt;br /&gt;1477 &lt;br /&gt;1478 &lt;br /&gt;1490 &lt;br /&gt;1494 Citrix ICA Protocol&lt;br /&gt;1498 &lt;br /&gt;1500 &lt;br /&gt;1503 T.120&lt;br /&gt;1521 Oracle SQL&lt;br /&gt;1522 &lt;br /&gt;1524 &lt;br /&gt;1525 prospero&lt;br /&gt;1526 prospero&lt;br /&gt;1527 tlisrv&lt;br /&gt;1529 &lt;br /&gt;1547 &lt;br /&gt;1604 Citrix ICA, MS Terminal Server&lt;br /&gt;1645 RADIUS Authentication&lt;br /&gt;1646 RADIUS Accounting&lt;br /&gt;1680 Carbon Copy&lt;br /&gt;1701 L2TP/LSF&lt;br /&gt;1717 Convoy&lt;br /&gt;1720 H.323/Q.931&lt;br /&gt;1723 PPTP control port&lt;br /&gt;1731 &lt;br /&gt;1755 Windows Media .asf&lt;br /&gt;1758 TFTP multicast&lt;br /&gt;1761 &lt;br /&gt;1762 &lt;br /&gt;1808 &lt;br /&gt;1812 RADIUS server&lt;br /&gt;1813 RADIUS accounting&lt;br /&gt;1818 ETFTP&lt;br /&gt;1968 &lt;br /&gt;1973 DLSw DCAP/DRAP&lt;br /&gt;1975 &lt;br /&gt;1978 &lt;br /&gt;1979 &lt;br /&gt;1985 HSRP&lt;br /&gt;1999 Cisco AUTH&lt;br /&gt;2000 &lt;br /&gt;2001 glimpse&lt;br /&gt;2005 &lt;br /&gt;2010 &lt;br /&gt;2023 &lt;br /&gt;2048 &lt;br /&gt;2049 NFS&lt;br /&gt;2064 distributed.net&lt;br /&gt;2065 DLSw&lt;br /&gt;2066 DLSw&lt;br /&gt;2080 &lt;br /&gt;2106 MZAP&lt;br /&gt;2140 DeepThroat&lt;br /&gt;2301 Compaq Insight Management Web Agents&lt;br /&gt;2327 Netscape Conference&lt;br /&gt;2336 Apple UG Control&lt;br /&gt;2345 &lt;br /&gt;2427 MGCP gateway&lt;br /&gt;2504 WLBS&lt;br /&gt;2535 MADCAP&lt;br /&gt;2543 sip&lt;br /&gt;2565 &lt;br /&gt;2592 netrek&lt;br /&gt;2727 MGCP call agent&lt;br /&gt;2766 &lt;br /&gt;2628 DICT&lt;br /&gt;2998 ISS Real Secure Console Service Port&lt;br /&gt;3000 Firstclass&lt;br /&gt;3001 &lt;br /&gt;3031 Apple AgentVU&lt;br /&gt;3052 &lt;br /&gt;3128 squid&lt;br /&gt;3130 ICP&lt;br /&gt;3150 DeepThroat&lt;br /&gt;3264 ccmail&lt;br /&gt;3283 Apple NetAssitant&lt;br /&gt;3288 COPS&lt;br /&gt;3305 ODETTE&lt;br /&gt;3306 mySQL&lt;br /&gt;3352 &lt;br /&gt;3389 RDP Protocol (Terminal Server)&lt;br /&gt;3520 &lt;br /&gt;3521 netrek&lt;br /&gt;3879 &lt;br /&gt;4000 icq, command-n-conquer&lt;br /&gt;4045 &lt;br /&gt;4144 &lt;br /&gt;4242 &lt;br /&gt;4321 rwhois&lt;br /&gt;4333 mSQL&lt;br /&gt;4444 &lt;br /&gt;47017 &lt;br /&gt;4827 HTCP&lt;br /&gt;5000 &lt;br /&gt;5001 &lt;br /&gt;5002 &lt;br /&gt;5004 RTP&lt;br /&gt;5005 RTP&lt;br /&gt;5010 Yahoo! Messenger&lt;br /&gt;5050 &lt;br /&gt;5060 SIP&lt;br /&gt;5135 &lt;br /&gt;5150 &lt;br /&gt;5190 AIM&lt;br /&gt;5222 &lt;br /&gt;5353 &lt;br /&gt;5400 &lt;br /&gt;5500 securid&lt;br /&gt;5501 securidprop&lt;br /&gt;5300 &lt;br /&gt;5423 Apple VirtualUser&lt;br /&gt;5555 &lt;br /&gt;5556 &lt;br /&gt;5631 PCAnywhere data&lt;br /&gt;5632 PCAnywhere&lt;br /&gt;5678 &lt;br /&gt;5800 VNC&lt;br /&gt;5801 VNC&lt;br /&gt;5900 VNC&lt;br /&gt;5901 VNC&lt;br /&gt;5843 &lt;br /&gt;6000 X Windows&lt;br /&gt;6112 BattleNet&lt;br /&gt;6050 &lt;br /&gt;6499 &lt;br /&gt;6500 &lt;br /&gt;6502 Netscape Conference&lt;br /&gt;6547 &lt;br /&gt;6548 &lt;br /&gt;6549 &lt;br /&gt;6666 &lt;br /&gt;6667 IRC&lt;br /&gt;6670 VocalTec Internet Phone, DeepThroat&lt;br /&gt;6699 napster&lt;br /&gt;6776 Sub7&lt;br /&gt;6968 &lt;br /&gt;6969 &lt;br /&gt;6970 RTP&lt;br /&gt;6971 &lt;br /&gt;7000 &lt;br /&gt;7007 MSBD, Windows Media encoder&lt;br /&gt;7070 RealServer/QuickTime&lt;br /&gt;7161 &lt;br /&gt;7323 &lt;br /&gt;7777 &lt;br /&gt;7778 Unreal&lt;br /&gt;7640 &lt;br /&gt;7648 CU-SeeMe&lt;br /&gt;7649 CU-SeeMe&lt;br /&gt;7654 &lt;br /&gt;8000 &lt;br /&gt;8002 &lt;br /&gt;8010 WinGate 2.1&lt;br /&gt;8080 HTTP&lt;br /&gt;8100 &lt;br /&gt;8181 HTTP&lt;br /&gt;8383 IMail WWW&lt;br /&gt;8765 &lt;br /&gt;8875 napster&lt;br /&gt;8888 napster&lt;br /&gt;8890 &lt;br /&gt;9000 &lt;br /&gt;9090 &lt;br /&gt;9200 &lt;br /&gt;9704 &lt;br /&gt;9669 &lt;br /&gt;9876 &lt;br /&gt;9989 &lt;br /&gt;10008 cheese worm&lt;br /&gt;10752 &lt;br /&gt;12345 &lt;br /&gt;11371 PGP 5 Keyserver&lt;br /&gt;12346 &lt;br /&gt;13000 &lt;br /&gt;13223 PowWow&lt;br /&gt;13224 PowWow&lt;br /&gt;14000 &lt;br /&gt;14237 Palm&lt;br /&gt;14238 Palm&lt;br /&gt;14690 &lt;br /&gt;16969 &lt;br /&gt;18888 LiquidAudio&lt;br /&gt;21157 Activision&lt;br /&gt;22555 &lt;br /&gt;22703 &lt;br /&gt;22793 &lt;br /&gt;23213 PowWow&lt;br /&gt;23214 PowWow&lt;br /&gt;23456 EvilFTP&lt;br /&gt;26000 Quake&lt;br /&gt;27000 &lt;br /&gt;27001 QuakeWorld&lt;br /&gt;27010 Half-Life&lt;br /&gt;27015 Half-Life&lt;br /&gt;27374 &lt;br /&gt;27444 &lt;br /&gt;27665 &lt;br /&gt;27910 &lt;br /&gt;27960 QuakeIII&lt;br /&gt;28000 &lt;br /&gt;28001 &lt;br /&gt;28002 &lt;br /&gt;28003 &lt;br /&gt;28004 &lt;br /&gt;28005 &lt;br /&gt;28006 &lt;br /&gt;28007 &lt;br /&gt;28008 &lt;br /&gt;30029 AOL Admin&lt;br /&gt;30100 &lt;br /&gt;30101 &lt;br /&gt;30102 &lt;br /&gt;30103 &lt;br /&gt;30303 &lt;br /&gt;30464 &lt;br /&gt;31335 &lt;br /&gt;31337 Back Orifice&lt;br /&gt;32000 &lt;br /&gt;32771 &lt;br /&gt;32777 rpc.walld&lt;br /&gt;34555 &lt;br /&gt;40193 Novell&lt;br /&gt;41524 arcserve discovery&lt;br /&gt;45000 Cisco NetRanger postofficed&lt;br /&gt;50505 &lt;br /&gt;52901 &lt;br /&gt;54321 &lt;br /&gt;61000 &lt;br /&gt;65301 &lt;br /&gt;Multicast hidden&lt;br /&gt;ICMP Type hidden&lt;br /&gt;9998 &lt;br /&gt;32773 rpc.ttdbserverd&lt;br /&gt;32776 rpc.spray&lt;br /&gt;32779 rpc.cmsd&lt;br /&gt;38036 timestep&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6929972-113888910664639948?l=os-l.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.iss.net/security_center/advice/Exploits/Ports/' title='standard used port numbers'/><link rel='replies' type='application/atom+xml' href='http://os-l.blogspot.com/feeds/113888910664639948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6929972&amp;postID=113888910664639948&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113888910664639948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6929972/posts/default/113888910664639948'/><link rel='alternate' type='text/html' href='http://os-l.blogspot.com/2006/02/standard-used-port-numbers.html' title='standard used port numbers'/><author><name>Daniel Trimm</name><uri>http://www.blogger.com/profile/16054193890794871486</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
