page_header

zondag 8 januari 2012

Started all over again

Installed Ubuntu Server on sda1

Changed to a fixed IP address

Forgot to mount home on sda3 so added this line to fstab;
/dev/sda3 /home ext3 defaults 0 0

Gave sda3 an appropriate  label;
sudo e2label /dev/sda3 UbuntuHome

Installed Apache;
sudo apt-get install apache2

Added ServerName to /etc/apache2/apache2.conf;
ServerName 192.168.1.249

Restarted apache;
sudo /etc/init.d/apache2 restart

In home directory hans created;
subdirectory dev
In dev created www
In www created cgi-bin

Installed subversion;
sudo apt-get install subversion

In directory www executed;
svn checkout https://cheat-sheets.googlecode.com/svn/trunk/ cheat-sheets --username myusr@gmail.com


Checked /etc/apache2/envvars for Apache user and group (www-data)

Created group www-hdr;
sudo addgroup www-hdr

Added members hans & www-data to the new group;
sudo adduser hans www-hdr
sudo adduser www-data www-hdr

Changed group ownership of directories cgi-bin & cheat-sheets;
sudo chgrp www-hdr cgi-bin
sudo chgrp www-hdr cheat-sheets -R

Changed permissions on directories cgi-bin & cheat-sheets;
sudo chmod 750 cgi-bin
sudo chmod -R 740 cheat-sheets

Created symbolic link to directory cheat-sheets;
sudo ln -s /home/hans/dev/www/cheat-sheets /var/www/hdr


Changed ownerhip of the symbolic link;
sudo chown -h hans:www-hdr /var/www/hdr


Update the file default in the sites available directory;
sudo vim /etc/apache2/sites-available/default



zaterdag 7 januari 2012

Enable CGI

Followed instructions on UbuntuGeek

Created a separate directory for cgi programs;
sudo mkdir /var/www/cgi-bin

Updated the Apache configuration file;
sudo vim /etc/apache2/apache2.conf

ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory /var/www/cgi-bin/>
     Options ExecCGI
     AddHandler cgi-script cgi pl
</Directory>

Restarted Apache server

Downloaded subversion client;
sudo apt-get install subversion

Downloaded my cheat sheet code;
cd ~
svn checkout https://cheat-sheets.googlecode.com/svn/trunk/ cheat-sheets --username xxx@gmail.com


maandag 2 januari 2012

Ubuntu 11.10 to the rescue

I gave up on LFS after getting errors while running the test of the glibc compile. Wrong compiler flags, human errors, ... ? Time to move on


Just installed Ubuntu Server 11.10 on /dev/sda1 of NB100. Mapped /dev/sda3 to /home and included OpenSSH in the install.


Assigned a fixed IP address (process described in one of the earlier posts on this blog)


Updated Ubuntu
- sudo apt-get update
- sudo apt-get upgrade


Changed the volume labels
- sudo e2label /dev/sda2 UbuntuServer
- sudo e2label /dev/sda2 UbuntuDesk


Installed Apache
Executed: sudo apt-get install apache2

Worked like a charm, was able to access the server on http://192.168.1.249

Error message on deamon start-up: "Could not reliably determine the server's fully qualified ..."

Added servername to server configuration file;
- sudo vim /etc/apache2/apache2.conf
  added line: ServerName 192.168.1.249

Please note that the correct configuration file is httpd.conf not http.conf as noted in an earlier post.

Restart server: sudo /etc/init.d/apache2 restart

donderdag 29 december 2011

Finished LFS chapter 5

Finished LFS chapter 5. Backed up the $LFS directory;


sudo tar -cvpzf ~/lfs_chptr5.tar.gz $LFS

dinsdag 27 december 2011

Linux from scratch

Hardware chosen for building LFS 7.0: Toshiba NB 100

Host OS Ubuntu 10.04 LTS (desktop version)

Partitioning HD;
- /dev/sda1 LFS 47GB
- /dev/sda2 Ubuntu (ext3) 47GB
- /dev/sda3 Empty 58GB
- /dev/sda4 Swap 8GB

Use sudo where needed (this is Ubuntu after all)!

Started by formating /dev/sda1 (section 2.3 of the LFS book)

Labeled the partitions;
- sudo e2label /dev/sda1 LFS
- sudo e2label /dev/sda2 Ubuntu

Mounted the new partition (section 2.4)

Downloaded the source tarballs in a separate directory (section 3.1)

Used this command to download the tarballs;
wget -i http://www.linuxfromscratch.org/lfs/view/stable/wget-lis -P $LFS/sources

Created the tools directory (section 4.2)

Added user lfs and switched to this user (sections 4.3 & 4.4)

Chapter 5: Creating a temporary system
To proceed work after reboot execute the following steps;
1. Open terminal window
2. export LFS=/mnt/lfs
3. sudo mount -v -t ext3 /dev/sda1 $LFS
4. su - lfs

Notes on the general compilation instructions (section 5.3);
1. Locate the relevant package ls package*
2. Unpack the source tarball;
- untar .tar.gz: tar -zxf package.tar.gz
- untar .tar.bz2: tar -jxf package.tar.bz2
- untar .tar.xz: tar -Jxf package.tar.xz
3. Enter the newly created directory containing the source code
4. Follow the instructions in the LFS book (configure, make & make install)
5. Leave the directory and remove it; rm -rf dirname

To complete chapter 5 it was necessary to install patch and bison;
- sudo apt-get install patch
- sudo apt-get install bison

woensdag 15 december 2010

Tussenstand gewicht

Het laatste nieuwe over mijn gewicht

zondag 12 december 2010

Create the cheat solution in MonoDevelop

1. Create a new solution in MonoDevelop



2. Add project to the solution



3. Add project header and source files

4. Publish the solution on the SVN repository



5. Add the C++ projects



6. Add header and source files to the C++ projects

7. Commit the newly added projects