That’s Arguable

August 26, 2009

Upgraded WP

Filed under: Site — Tags: , — jnargus @ 10:40

Just did the upgrade to WP 2.8.4. Seems to be working nicely still. I will get to Dee’s blog later after I check this out for a few days.

January 18, 2009

Dee’s blog fixed!

Filed under: Site — Tags: , , — jnargus @ 15:12

I finally got all the details worked out to get permalinks working properly. Nobody ever tells you all that you need to do to get something working. WordPress just says put these lines in your .htaccess file. They fail to mention that you need to load and enable the mod_rewrite module and that the apache2/sites-available/default file needs to be modified so that the .htaccess file will be looked at. All of which I found out with a little bit of help from Brenda. So to summarize This is what needs to be done to get permalinks working properly:

  • Load and Enable the mod_rewrite module. This is done by running:
    $sudo a2enmod
    Which module would you like to enable?
    Your choices are: actions alias asis auth_anon auth_basic auth_dbm auth_digest auth_ldap authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgid cgi charset_lite dav_fs dav dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap imap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias
    Module name? rewrite
    Module rewrite installed; run /etc/init.d/apache2 force-reload to enable.
    This is not the way I did it at first but it is the better way. all this process does is to create a symbolic link to /etc/apache2/mods-available/rewrite.load in /etc/apache2/mods-enabled/. This can be done with the ln -s command as well but some modules have a .conf file as well and a link to that module will need to be created as well. The a2enmod tool does everything for you.
  • Enable the .htaccess file
    This is the start of the /etc/apache2/sites-available/default file. I changed the two bold lines to get the permalinks working. The first one didn’t seem to work on it’s own but when I changed the second one it worked. I haven’t yet tried to put the first line back the way it was but I don’t think I will unless I have to. Both lines originally read “AllowOverride None
    NameVirtualHost *
    <VirtualHost *>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/arguable/
    <Directory />
    Options FollowSymLinks
    AllowOverride FileInfo
    </Directory>
    <Directory “/var/www/arguable”>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride FileInfo
    Order allow,deny
    allow from all
    # This directive allows us to have apache2′s default start page
    # in /apache2-default/, but still have / go to the right place
    #RedirectMatch ^/$ /apache2-default/
    </Directory>
  • Restart Apache
    The following command will restart Apache:
    sudo /etc/init.d/apache2 restart
  • Edit the .htaccess file
    Using your favorite editor put the following lines in the .htaccess file located at the root of the web server.<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /dee/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /dee/index.php [L]
    </IfModule>

    Changes to this file happen immediately so no reboots or restarts of anything are needed.

So unless I forgot something this is what it took to get the pretty permalinks working for Dee’s blog.

January 16, 2009

New Blog

Filed under: Site — Tags: , , , , — jnargus @ 8:18

A friend of mine, Dee Lynn, wanted some place online to put pictures of her travels and blog about what interests her. So I happily obliged and created another WordPress blog in Arguable. Her site is arguable.ca/dee.

It was easy enough to set up. I just created a folder under the root of arguable called dee and copied the WP files there. The first time I went into the site it created all the MySQL tables and set everything up for me. I then turned on the Akismet spam plugin and installed and enabled the NextGen Gallery that I have been using for photos.

July 17, 2008

Tags!

Filed under: Site — Tags: , , — jnargus @ 20:47

I just discovered the tags in WP. I’m not sure how usefull they will be but I will try to use them in my posts now. I will of course go back and add tags to all of my posts to see how they work and to get some tag content on the site.

I also found the widgets section and configured all the widgets I wanted. Found a few things that I was looking for. It was a little confusing at first. When I added the two widgets that I wanted all the other content in the side bar disappeared. I figured it out though and it works nicely now. I will probably change the theme again sometime soon but not right now. I should upgrade WordPress to 2.6 first.

July 11, 2008

pxe Boot Project – tftp and dhcp installation

Filed under: BOINC,Site — Tags: , , , — jnargus @ 17:04

I’ve started the pxe boot setup on Quark, the Core 2 Quad machine I got recently. This is the first post relating my experiences in getting this to work. Ultimately I will have everything configured so that headless and diskless systems will boot into Ubuntu and run BOINC. The systems will be managed remotely and will spend all their time running BOINC. At some time I would like to optimize the OS so that it is just a minimal Linux system with BOINC but that will come later. First step is to get tftp and dhcp installed on the server.

Used Synaptic package installer to install:
dhcp3-server
openbsd-inetd
tftpd-hpa

These are the three apps I need to get pxe booting happening I now need to configure them and turn off the dhcp server I have running on the router.

I also installed emacs while I was at it.

Configuring tftp server:

Not quite in the same order as the instructions I am reading from http://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install.

The tftp directory /var/lib/tftpboot exists already. probably created during the install of the tftpd-hpa package. I didn’t check to see if it was there before I started.

Add the following line in /etc/inetd.conf:
tftp           dgram   udp     wait    root  /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
Well that was easy, its already there. They must know what I want to do.

Now I just have to run the command to start the tftpd server “sudo update-inetd –enable BOOT”. Well that ran. I got no errors so I presume it worked.

Verify that inetd is listening on the right port:
netstat -lu
should show
udp        0     o  *:tftp                  *:*
What I get is:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address        State
udp        0      0 *:48524                 *:*
udp        0      0 *:bootpc                *:*
udp        0      0 *:tftp                  *:*
udp        0      0 *:mdns                  *:*
The line I want is there. Woo hoo!

That seems like all I need to do for tftp at the moment. On to dhcp3-server.

Start by editing the INTERFACES=” ” line in /etc/default/dhcp3-server file. eg:
INTERFACES=”eth1 eth2″
I guess I should figure out which interfaces I use to start with. ifconfig does the trick. The response I get from this command is:
eth0      Link encap:Ethernet  HWaddr 00:0A:E4:2E:A6:42
inet addr:10.10.10.10  Bcast:10.10.10.127  Mask:255.255.255.128
inet6 addr: fe80::21f:c6ff:fe3f:534e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1095381 errors:0 dropped:0 overruns:0 frame:0
TX packets:329926 errors:0 dropped:0 overruns:0 carrier:2
collisions:0 txqueuelen:1000
RX bytes:457421618 (436.2 MB)  TX bytes:62150576 (59.2 MB)

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:1790 errors:0 dropped:0 overruns:0 frame:0
TX packets:1790 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:90100 (87.9 KB)  TX bytes:90100 (87.9 KB)
Therefor my guess is that I am using eth0 and that is what I need to put in the dhcp3-server file.

Now to modify the /etc/dhcp3/dhcpd.conf file. This is where I put all the dhcp rules. This is the text I need to put in the dhcpd.conf file:
host pxeinstall {
# ie. “hardware ethernet 00:0A:E4:2E:A6:42;”
hardware ethernet [MAC address of PXE client networkcard, without brackets];

# this is the unused IP address we will assign temporarily to the PXE client
fixed-address 10.0.0.16;

# Not needed if the tftp server is on the same host as the DHCP server. ie. “next-server 10.0.0.2;”.
# edit : Well needed, otherwise he is looking for the host 0.0.0.0 so, it doesn’t work
next-server [ip-address of the server serving tftp];

# path of the bootloader file, relative to tftpd’s root
filename “pxelinux.0″;
}
I’m not entirely sure what else needs to be done at this time. I think I need more than that to get the dhcp server running to hand out addresses to all my machines and not just the pxe booting machines. The next step is to turn on the dhcp server so I will have to stop here and do some more research. I want this dhcp server to hand out addresses to any device that requests one as well as hand out addresses to the pxe booting devices along with the extra information they need to boot up.
I also want the pxe to boot the OS and not do an OS installation which I think these instructions are heading for. I’ll be back when I figure this out.

July 9, 2008

Upgrades and Hacking

Filed under: Site — Tags: , , , , — jnargus @ 18:40

WordPress has been upgraded to 2.5.1 without any issues (so far.) Arguable was the victim of a SQL Injection hack for the last several months and I finally got around to doing something about it, namely upgrading WordPress. I noticed when I was doing the backup that a new user account had been created so I removed it and then changed all the passwords of the accounts in WP and MySQL. I might still be compromised but I will have to let that wait for another day.  Akismet also got updated, but that was way too easy. The NG-Gallery plugin did not need to be upgraded and it still works just fine.

I did the first half of the upgrade process last night and then finished it this morning. I deleted all the spam comments that Akismet had found before I backed up the MySQL database and the WP directories. In the morning Akismet had already blocked another 19 spam comments! That is one plugin I will never live without. Even during the easy and fast upgrade of Akismet one spam comment got through before I managed to get the latest version of Akismet running again.

I found a tool (PIXresizer) to resize and rotate images that works with folders and bulk image processing. Now I can put all 400 or so of my pictures online as well so expect a deluge of pictures in the next couple of weeks.

June 27, 2008

BOINC Farm

Filed under: BOINC,Site — Tags: , , , , , , — jnargus @ 20:12

So I’ve started the BOINC farm I want. The first step is building the PXE server. I got a Core 2 Quad 9450 CPU with an ASUS mobo and 4G of RAM to be used as the PXE server. I need to configure this as a DHCP server and some other things at this time unknown. Part of the research I still need to do. I also just picked up two VIA 2500E mobo with a C7 processor built in and 2G of RAM each. These two systems will PXE boot to a minimal Ubuntu system and will just run the BOINC client.
The Core 2 Quad system went into an old case I had lying around. Actually my old Dual PIII 550 system that died a while back. I got a new 500W power supply for it but used an existing hard drive, DVD drive and floppy drive. The VIA mobos will be stacked together and will share another 500W power supply. I hope to have at least 4 VIA mobos sharing the one power supply eventually.
The server is running Ubuntu and still needs to have some critical components installed. The first thing I know I need is to configure it as my DHCP server. This means that the current DHCP service being provided by the router will need to be turned off. I think I need to configure a DNS server as well and then setup the PXE environment and OS that will get downloaded to the VIA systems. All stuff that I need to research. I need a TFTP server to download the OS files.

June 21, 2008

Pictures!!

Filed under: Site — Tags: , , , — jnargus @ 17:45

After updating Ubuntu I decided I wanted a photo gallery on this blog. I downloaded NextGEN Gallery from alex.rabe. It has gotten several good reviews so I thought I would give it a try. The install was easy enough but it did require a bit of tweaking of the Apache config file to get things working properly. I had to increase the size of the PHP Memory Limit to 8M and then finally to 48M to be able to run the plugin and then to create thumbnails of each picture as it was downloaded. I also increased the size of PHP Max Upload Size from 2M to 8M and PHP Max Post Size: from 8M to 16M. Most of my pictures are just over 2M in size thus the increase in the limits. I have noticed however that downloading the full size picture can take a while so I may have to resize all my pictures before I download them.

June 6, 2008

Ubuntu updated

Filed under: Site — Tags: , , — jnargus @ 17:57

So I took the plunge and updated Ubuntu to 8.04 (Hardy Heron). Everything seems to have gone alright except for the fact that it took longer to download and install than I thought and I ended up getting to bed waaay too late. The only real problem I had was with BOINC. The BOINC client and manager were updated as part of the update package and it didn’t work when I restarted. The BOINC client started without any problem but it did not appear to be running any tasks and when I started the manager it was unable to connect to the client. I tried reinstalling the BOINC client and manager but that did not help. I had to completely uninstall them first and reinstall to get things working again. The only problem with this was that when I rejoined the projects I am working on it created a new computer account for each project. When I then merged with the old account with the new it took the computer ID from the new one losing my computer ID number of 480 I had with Cosmology. Now I have a 5 digit computer ID. You have to get in early to get the low numbered computer IDs so I’ve lost some status there, oh well.

April 12, 2008

My first picture

Filed under: House,Site — Tags: , — jnargus @ 16:07

I got a new digital camera. It’s a Canon PowerShot A720IS. This is the first picture I took with it. I just have to figure out how to work with it now in WP.

My first Picture

Older Posts »

Powered by WordPress