MandrivaUsers.org : Has this been done? - MandrivaUsers.org

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Has this been done? personal website - with a twist

#1 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Post icon  Posted 02 September 2005 - 11:45 PM

Hey everyone,

I've got a month left until I go back to university and i've exhausted all of my holiday resources (so i'm now tired, sunburnt and poor). So for the remainder of the holiday I intend to sit here. Now obviously I'm sitting infront of a linux machine, so the possibilities are endless, and i've decided to make and host my own website. Now I've tried this in the past (admittedly using Windows with MS IIS, and making websites with Frontpage or Dreamweaver), and all has gone fine but the sites have died out of lack of maintenence. So I've come up with a new approach, rather than just make a load of pages about me, my interests and general stuff that no one else cares about, I'll base my site on linux, literally.

Heres the plan. Rather than doing a load of fancy graphical design to make it look pretty but not very functional, and then filling it with java, flash, and god knows what else to make it work, I'm going to write a load of shell scripts to make/update the pages for me. Now I'm sure most of you would find this pretty simple, but I have next to no experience with shell scripts (all my knowledge of 'Programming' comes from Matlab at Uni) and even less experience with html.

So far I have a script which automatically places thumbnails on a page and links to the fullsize picture, one that keeps track of what I listen to on xmms, and one to combine my "linux diary" (which is basically a changelog, listing what I do to my computer). As well as this I have a very crude counter on my frontpage (counts the number of different IP addresses in the server log), as well as a display of server uptime.

Now I'm sure there are far more effective ways of doing this, but this is the method I have chosen and will stick to because if nothing else I'll learn how to write scripts, and might even pick up some html. I'm interested to see if anyone has done similar to this, I'm kind of hoping I'm the first, but I doubt it.

Anyone who wants to see (or laugh at) my progress should check out http://omcaree.myftp.org
If there is enough (any) interest then I'll post regular updates here

Thank you for your time B)/>

Owen Mc

This post has been edited by omcaree: 02 September 2005 - 11:49 PM

0

#2 User is offline   Leo 

  • MUB Addict
  • Group: Members
  • Posts: 773
  • Joined: 12-May 03

Posted 05 September 2005 - 11:50 AM

Thats cool.
I particularly liked the link to what you listened to although it could possible do with some formatting and maybe dates.

The changelog is nicely laid out.

I like it.

Leo
My heart is full of courage... it's my legs that are cowardly
0

#3 User is offline   Qchem 

  • Mandriva Guru
  • Group: Members
  • Posts: 1,757
  • Joined: 02-October 03

Posted 05 September 2005 - 11:59 AM

This sounds like an ideal candidate for using CSS to style your web pages. You'd only need simple tags around each section - which are then styled however you like by a seperate stylesheet. You can even have multiple stykesheets to change the look and feel of the entire site very quickly.
Grant
0

#4 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 05 September 2005 - 12:32 PM

Qchem: I have looked into CSS but at the moment I'm just trying to test my idea, getting basic pages put together, then I'll think about styling.

Leo: The XMMS page is pretty buggy at the moment, should contain links to previous days lists but they dont seem to want to appear, I'm working on that though. Formatting will follow once the thing works.

Cheers for the replies,

Owen Mc
0

#5 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 05 September 2005 - 01:28 PM

Since there appears to be a little bit of interest in this I'll post the odd update here when I change things, todays changes include:

-XMMS page now works (i think), will work on formatting next
-IP Counter on frontpage works (discovered that the script has to be run as root, hence why it was stuck on 9 for a while)
-Uptime counter changed from using the "uptime" command to using a formatted version of /proc/uptime


if I make anymore changes today then I'll just edit this post

Cheers

Owen Mc

This post has been edited by omcaree: 05 September 2005 - 03:00 PM

0

#6 User is offline   spinynorman 

  • Not a Mandriva Guru
  • View blog
  • Group: Admin
  • Posts: 4,221
  • Joined: 04-June 03

Posted 05 September 2005 - 04:35 PM

I think this belongs in Workbench... B)/>
Posted Image Track Bugs at Bugzilla Posted Image
ASUS Terminator P4 1.7 GHz; 256MB DDR RAM; 40GB; 7200 rpm U-DMA ATA-100 IDE HD; Hansol H530 TFT monitor; 16x48 DVD; 40x12x48 CD-RW; Netgear DG834G; Epson Stylus C62; Mandriva 2008.1
0

#7 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 06 September 2005 - 12:37 AM

I apologise for posting in the wrong place :unsure:/>

Well, it's the middle of the night and I've just finished adding a guest book. I had to use a little bit of perl (admitted I know next to nothing about perl so I borrowed a script and modified it for my needs) as well as another shell script.

Data (name, email, url, message and ip) from a form is saved to a temporary folder where it is formatted by a script. Formatting includes removal of various characters (to prevent posting html) as well as changing the email address from name@somewhere.com to name at somewhere dot com. Messages are placed within a table (to wrap text) and a line break is added to each line to allow carriage returns. Once everything is added to html a log entry is made and the temporary files are deleted.

I know I still need to work on formatting, but other than that i've kind of run out of ideas. Any suggestions from anyone as to what I might include?

Cheers,

Owen Mc
0

#8 User is offline   Leo 

  • MUB Addict
  • Group: Members
  • Posts: 773
  • Joined: 12-May 03

Posted 06 September 2005 - 08:26 AM

How about addng some 'back to main page' links to make navigation easier.

On the changelog how about automating links to more information on items or project homepages (maybe using a fairly strightforward google search could accomplish this to some extent, I guess the challenge is getting the script to identify what to include a search for)


Leo
My heart is full of courage... it's my legs that are cowardly
0

#9 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 06 September 2005 - 09:39 AM

Hey Leo

I've added the links back to "Home", simple formatting at the moment, but I'l work on that once I have a site together.

As for links in the changelog, I like the idea. I think I'll do something allong the lines of creating a file full of keywords and their corresponding links, then some how search the document(grep?) and replace those keywords with links.

After today I'll be away for a few days so there wont be many changes (and a few "No Entries" in the changelog).

Thanks for the ideas,

Owen Mc
0

#10 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 12 September 2005 - 08:18 AM

Links page added, need to automate that at somepoint though - to take firefox bookmarks and create a page of links, with descriptions.
0

#11 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 12 September 2005 - 10:59 AM

Hit counter added (to suppliment visitor counter). uses grep to count occurances of "GET / HTTP/1.1" in the apache log file (which occurs once per load of the homepage). It also filters out local hits (ie from 127.0.0.1) so as not to count those (using grep -v).
0

#12 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 12 September 2005 - 12:07 PM

Hey all,

I've incorporated Leo's suggestion of including links on the changelog using the following:
sed "s/ $keyword / <a href=$link>$keyword<\/a>/g"


This only applies to the current changelog on display, not those archived for previous weeks.

Hope this impresses someone out there :P/>

Cheers

Owen Mc
0

#13 User is offline   Leo 

  • MUB Addict
  • Group: Members
  • Posts: 773
  • Joined: 12-May 03

Posted 18 September 2005 - 02:50 PM

I'm impressed, good job.

Leo
My heart is full of courage... it's my legs that are cowardly
0

#14 User is offline   omcaree 

  • casual
  • Group: Members
  • Posts: 64
  • Joined: 18-February 05

Posted 21 September 2005 - 01:32 PM

added some CSS, allong with a splash page, and some other updates.

Changed the name to The Black Box (as this is a nickname which i've aquired for my computer)

Cheers

Owen Mc
0

#15 User is offline   Steve Scrimpshire 

  • This is a dark ride
  • Group: OTW
  • Posts: 3,590
  • Joined: 13-December 02

Posted 26 May 2006 - 06:49 AM

I know this is reviving the dead, but I just happened to be browsing Workbench and stumbled on this. I go to that site now and all I see is:

Quote

Welcome to The Black Box ITX

This page is currently under construction and may not be complete for some time, please visit again
omcaree.myftp.org
<<my ip address>>
<<text box>>
<<Submit button>>


Are you gonna continue with this? I would've liked to have seen this.
Posted Image
0

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users