archive-ca.com » CA » D » DEFUNCT.CA

Total: 226

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Block sizes | boompty boomp
    disk space wastage This is briefly discussed on pages 23 and 24 of The Design of the Unix Operating System This entry was posted in Linux Bookmark the permalink Threads Testing IMAP on the command line Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February

    Original URL path: http://blog.defunct.ca/2008/06/09/block-sizes/ (2015-04-05)
    Open archived version from archive


  • Threads | boompty boomp
    rpm rpmdb verify grep pthread libpthread so 0 lib i686 libpthread so 0 0x00a27000 Notice how when using NPTL the library is kept in lib tls This entry was posted in Linux Bookmark the permalink inodes Block sizes Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July

    Original URL path: http://blog.defunct.ca/2008/06/09/threads/ (2015-04-05)
    Open archived version from archive

  • inodes | boompty boomp
    inodes Using tune2fs l dev hdax you can also see the Inode count maximum number of inodes Block count and Block size These numbers can help you determine the bytes per inode ratio used when the filesystem was created with mke2fs On my machine s dev hda5 tune2fs l dev hda5 egrep Inode count Block count Block size Inode count 4480448 Block count 8956229 Block size 4096 If we multiply Block count by Block size and then divide that value by Inode Count we get roughly 8192 bytes This means that for every 8192 bytes two blocks an inode is created To create a filesystem with more inodes you can pass the i option to mke2fs with a lowered bytes value This entry was posted in Linux Bookmark the permalink tmp noexec Threads Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009 December 2008 November 2008 October 2008 September 2008 August 2008 July 2008 June 2008

    Original URL path: http://blog.defunct.ca/2008/06/09/inodes/ (2015-04-05)
    Open archived version from archive



  • /tmp noexec | boompty boomp
    was posted in Linux Bookmark the permalink Renaming an LVM volume group inodes Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July 2009 May 2009 April 2009 January 2009 December 2008 November 2008

    Original URL path: http://blog.defunct.ca/2008/06/09/tmp-noexec/ (2015-04-05)
    Open archived version from archive

  • Renaming an LVM volume group | boompty boomp
    lvm wrapper lvm vgrename VolGroup00 vg001 lvm vgchange a y I couldn t see dev vg001 until I ran this mount dev vg001 root somewhere mount dev sda1 somewhere boot At this point etc fstab and etc grub conf were accessible and could be modified to replace the old volumge group name with the new one mount o bind sys somewhere sys mount o dev dev somewhere dev mount o proc proc somewhere proc Finally I had to rebuild the initrd image after backing it up of course chroot somewhere mkinitrd v initrd 2 6 18 53 1 13 el5 img 2 6 18 53 1 13 el5 Quite straight forward but what bit us doing this in the live environment was that the system was 64 bit and the rescue environment 32 bit This entry was posted in Linux Bookmark the permalink No vim syntax highlighting for root on CentOS 5 tmp noexec Leave a Reply Cancel reply You must be logged in to post a comment Search for Archives October 2013 March 2013 February 2013 May 2012 January 2012 September 2011 August 2011 July 2011 February 2011 June 2010 April 2010 March 2010 September 2009 August 2009 July

    Original URL path: http://blog.defunct.ca/2008/06/09/renaming-an-lvm-volume-group/ (2015-04-05)
    Open archived version from archive

  • boompty boomp | Page 6
    rule to several domains while retaining the site s hostname when redirecting Something like this seems to work RewriteEngine on RewriteRule panel https HTTP HOST 8443 L Now if only I could figure out why this doesn t work when not embedded within a VirtualHost directive Posted in Linux Tagged apache Leave a comment STDIN Posted on August 18 2008 by admin You can use STDIN like this to have ruby read from standard input usr bin ruby w input STDIN input each line puts line You can then do something like cat etc hosts ruby stdin2stdout rb Posted in Ruby Leave a comment Running two instances of Apache on one machine CentOS Posted on August 12 2008 by admin I haven t put this into production but I tested it and it seems so far to work OK First off cp a etc httpd etc httpd2 cp a etc init d httpd etc init d httpd2 cp a etc sysconfig httpd etc sysconfig httpd2 ln s usr sbin httpd usr sbin httpd2 I then added the following to etc sysconfig httpd2 HTTPD usr sbin httpd2 OPTIONS f etc httpd2 conf httpd conf LOCKFILE var lock subsys httpd2 PIDFILE var run httpd2 pid Some things in etc init d httpd2 need to be changed if f etc sysconfig httpd2 then etc sysconfig httpd2 fi Finally I modified the following in etc httpd2 conf httpd conf PidFile run httpd2 pid Listen 8080 Starting etc init d httpd fires up httpd and binds to port 80 and starting etc init d httpd2 fires up httpd2 and binds to port 8080 Note I had to symlink usr sbin httpd2 to usr sbin httpd so that the process name changes which allows each to be killed off independantly Update A customer asked about apachectl which reminded me that I had forgotten to take that into account What you can do is cp a usr sbin apachectl usr sbin apachectl2 and then change these lines if r etc sysconfig httpd2 then etc sysconfig httpd2 fi Update I ve made a few minor changes as some things were documented incorrectly Posted in Linux Tagged apache centos Leave a comment xen Posted on August 11 2008 by admin So one of my dislikes w xen was that I couldn t get any of the www jailtime org images to work and I had no idea how to create non CentOS images After having a look at the man page for virt install I noticed mention of qemu and after installing the qemu package and downloading a Debian ISO I tried the following through vnc virt install connect qemu system name debian ram 256 file home mattt xen debian img cdrom home mattt xen debian 40r4a etchnhalf i386 netinst iso This popped up a nice little graphical interface where I could install Debian but I wasn t getting any connectivity so after looking at the man page again I tried virt install connect qemu system name debian ram

    Original URL path: http://blog.defunct.ca/page/6/ (2015-04-05)
    Open archived version from archive

  • admin | boompty boomp | Page 5
    documenting for future reference etc init d httpd stop gdb usr sbin httpd GNU gdb Red Hat Linux 6 5 37 el5 2 2rh Copyright C 2006 Free Software Foundation Inc GDB is free software covered by the GNU General Public Continue reading Posted in Linux Tagged apache Leave a comment Running a syntax check on etc my cnf Posted on October 9 2008 by admin Usually I update variables on the fly using something like mysql SET GLOBAL max connections 150 and then modify etc my cnf to make the change persistent The problem in doing this is that you re not verifying that your etc my cnf is Continue reading Posted in Linux Tagged mysql 1 Comment iptables Posted on October 3 2008 by admin Since I m always forgetting the following is necessary on the host box if you re running virtual machines w networking configured in NAT mode iptables t nat A POSTROUTING o eth0 j MASQUERADE This also requires sysctl w net ipv4 ip forward 1 Continue reading Posted in Linux Tagged iptables Leave a comment Gentoo Posted on October 2 2008 by admin The following file contains a nice description of the available USE flags usr portage profiles use desc Per package USE flags can be defined in etc portage package use The following file lists explicitly installed packages var lib portage world This file contains a lot of emerge messages that are sometimes Continue reading Posted in Linux Tagged gentoo Leave a comment Mount NFS mount points on boot Posted on September 12 2008 by admin Today we had a customer mention that when they reboot their servers running RHEL 5 the NFS mounts specified in etc fstab were not coming up automatically A quick google search reveiled that the netfs service needs

    Original URL path: http://blog.defunct.ca/author/admin/page/5/ (2015-04-05)
    Open archived version from archive

  • Linux | boompty boomp | Page 5
    admin I haven t tried this first hand but saw a ticket at work where a customer was bringing a certificate over from a Windows server to their Linux server and thought it was worth documenting for future reference openssl pkcs12 in Continue reading Posted in Linux Tagged openssl Leave a comment Setting Return Path w PHP s mail function Posted on June 26 2008 by admin The easiest way to do this is to use something like this php mail nobody example com the subject the message null fwebmaster example com The key here is the fwebmaster example com Posted in Linux Tagged php Leave a comment EXT3 fs error device hda5 in start transaction Journal has aborted Posted on June 23 2008 by admin I haven t come across this issue in a while but am documenting the steps required to wipe and rebuild the EXT3 journal on hda5 First off boot system from a rescue CD and skip having the rescue environment mount the Continue reading Posted in Linux Leave a comment bash sequences Posted on June 16 2008 by admin I always did them this way for x in seq 1 10 do echo x done However you can actually do them this away also for x in 1 10 do echo x done You just never know when seq s going Continue reading Posted in Linux Tagged bash Leave a comment xen Posted on June 14 2008 by admin I used this site extensively but I ll document my steps incase that disappears Here s my etc xen xend config sxp minus comments and empty lines I chose to use a bridge so that I can just piggy back on my public IP eth0 xend unix server yes Continue reading Posted in Linux Tagged xen

    Original URL path: http://blog.defunct.ca/category/linux/page/5/ (2015-04-05)
    Open archived version from archive