<?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-11830016</id><updated>2011-08-17T10:36:37.733+01:00</updated><category term='Spreed'/><category term='login shell'/><category term='EeePC'/><category term='mount'/><category term='run-levels'/><category term='crtime'/><category term='netconf'/><category term='relatime'/><category term='star wars'/><category term='gnome-terminal'/><category term='ioscan'/><category term='Xandros'/><category term='certification'/><category term='citrix'/><category term='filesystem'/><category term='ICA client'/><category term='Canonical'/><category term='gconf'/><category term='shell behaviour'/><category term='telnet'/><category term='clear text'/><category term='atime'/><category term='ext4'/><category term='ip address'/><category term='HP-UX'/><category term='Ubuntu'/><category term='training'/><category term='debugfs'/><title type='text'>Flying UNIX</title><subtitle type='html'>Unix and Linux fly...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default?start-index=101&amp;max-results=100'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>118</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11830016.post-3420796867582189769</id><published>2010-08-19T18:44:00.002+01:00</published><updated>2010-08-19T18:57:04.384+01:00</updated><title type='text'>Automated kickstart install of ubuntu</title><content type='html'>Checklist:&lt;br /&gt;Prepare the configuration server:&lt;br /&gt;    Install packages&lt;br /&gt;    Configure &lt;span style="font-weight: bold;"&gt;DHCP&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;TFTP&lt;/span&gt; to provide pxe-boot image files&lt;br /&gt;    Configure &lt;span style="font-weight: bold;"&gt;lighttpd&lt;/span&gt; to serve operating system files&lt;br /&gt;Prepare kickstart configuration file&lt;br /&gt;Start client; intercept boot and request net boot&lt;br /&gt;&lt;br /&gt;Note: the steps below expect all servers (&lt;span style="font-weight: bold;"&gt;dhcp&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;tftp&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;web&lt;/span&gt;) to be on the same physical machine, here: 192.168.1.100. Both the installation server, and anticipated clients are Ubuntu machines.&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt;Step 1.&lt;br /&gt;(a) Install &lt;span style="font-weight: bold;"&gt;dhcp3&lt;/span&gt; server. This will provide the initial network boot, for the client's PXE start.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo apt-get install dhcp3-server&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(b) Edit its configuration.&lt;br /&gt;Add the subnet info, leave all other elements of the file as they are.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo vi /etc/dhcp3/dhcpd.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ddns-update-style none;&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# option definitions common to all supported networks... &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;option domain-name "example.com"; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;option domain-name-servers ns1.example.org, ns2.example.org; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;default-lease-time 600; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;max-lease-time 7200; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;log-facility local7; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;subnet 192.168.1.0 netmask 255.255.255.0 { &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  range 192.168.1.111 192.168.1.222; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  option domain-name-servers 212.135.1.36;    # your DNS server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  option domain-name "internal.example.com";  # your domain name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  option routers 192.168.1.254;           # your gateway&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  option broadcast-address 192.168.1.255; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;  filename "pxelinux.0"; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(c) Start dhcp server.&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/dhcp3-server start&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt;Step 2.&lt;br /&gt;(a) Install &lt;span style="font-weight: bold;"&gt;tftpd-hpa&lt;/span&gt; (and its super-daemon, &lt;span style="font-weight: bold;"&gt;inetd&lt;/span&gt;):&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo apt-get install openbsd-inetd tftpd-hpa&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(b) Modify the main &lt;span style="font-weight: bold;"&gt;tftp&lt;/span&gt; setup file, in &lt;span style="font-weight: bold;"&gt;/etc/default/tftpd-hpa&lt;/span&gt;, to have the content as shown.&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo vi /etc/default/tftpd-hpa &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;TFTP_USERNAME=”tftp”&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;TFTP_DIRECTORY=”/srv/tftp”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;TFTP_OPTIONS=”--secure”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;TFTP_ADDRESS=”192.168.1.100:69”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The address above is the IP address of your &lt;span style="font-weight: bold;"&gt;tftp&lt;/span&gt; server.&lt;br /&gt;&lt;br /&gt;(c) Start the &lt;span style="font-weight: bold;"&gt;inetd&lt;/span&gt; superdaemon&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/openbsd-inetd start &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Starting internet superserver inetd                    [ OK ]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(d) Check the &lt;span style="font-weight: bold;"&gt;tftpd&lt;/span&gt; is now active:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;netstat -a | grep tftp &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;udp        0      0 *:tftp                  *:*   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt;Step 3.&lt;br /&gt;Copy the netboot files into the &lt;span style="font-weight: bold;"&gt;tftp&lt;/span&gt; server. (Check &lt;span style="font-weight: bold;"&gt;lftp&lt;/span&gt; is there, if not – install it, with &lt;span style="font-weight: bold;"&gt;sudo apt-get install lftp&lt;/span&gt;).&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo mkdir -p /srv/tftp/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;cd /srv/tftp/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo lftp -c “open http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-i386/current/images/netboot/; mirror”&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt;Step 4.&lt;br /&gt;(a) Edit &lt;span style="font-weight: bold;"&gt;/srv/tftp/pxelinux.cfg/default&lt;/span&gt; and change string &lt;span style="font-weight: bold;"&gt;menu.cfg&lt;/span&gt; into &lt;span style="font-weight: bold;"&gt;text.cfg&lt;/span&gt;.&lt;br /&gt;After the change, the file should look as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;include ubuntu-installer/i386/boot-screens/text.cfg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;default ubuntu-installer/i386/boot-screens/vesamenu.c32&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;prompt 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;timeout 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(b) Modify the &lt;span style="font-weight: bold;"&gt;/srv/tftp/ubuntu-installer/i386/boot-screens/text.cfg&lt;/span&gt; file to have the following content:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;timeout 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;default auto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;label auto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    menu label ^Auto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    menu default&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    kernel ubuntu-installer/i386/linux &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    append vga=normal initrd=ubuntu-installer/i386/initrd.gz&lt;br /&gt;&lt;br /&gt;    ks=http://192.168.1.100/ubuntu/ks.cfg -- quiet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt;Step 6.&lt;br /&gt;(a) Install &lt;span style="font-weight: bold;"&gt;lighttpd&lt;/span&gt; (may need to stop &lt;span style="font-weight: bold;"&gt;apache&lt;/span&gt; first, if running).&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/apache2 stop&lt;/span&gt;   # if running&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo apt-get install lighttpd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(b) Ensure that the root directory is &lt;span style="font-weight: bold;"&gt;/srv/www&lt;/span&gt; (the default &lt;span style="font-weight: bold;"&gt;/var/www&lt;/span&gt; could be used, but we follow proper &lt;span style="font-weight: bold;"&gt;FHS&lt;/span&gt;  rules here ;-). This will serve all installation files. The &lt;span style="font-weight: bold;"&gt;url&lt;/span&gt; directive in the kickstart file will direct the installation program to this web page.&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ sudo vi /etc/lighttpd/lighttpd.conf &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;change the document-root directive to read as follows:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;server.document-root       = "/srv/www/" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(c) Start &lt;span style="font-weight: bold;"&gt;lighttpd &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo /etc/init.d/lighttpd start&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt;Step 7.&lt;br /&gt;Populate the the web server with the installation files.&lt;br /&gt;&lt;br /&gt;Here, we will get the installation files from the Ubuntu installation CD (assumes Ubuntu installation CD is in the drive on the server machine, and mounted).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo mkdir /srv/www/ubuntu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo  cp -rv /dev/sr0/*  /srv/www/ubuntu&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(time for a cuppa)&lt;br /&gt;&lt;br /&gt;----------------------&lt;br /&gt;Step 8.&lt;br /&gt;Create a text file called ks.cfg with the kickstart instructions, and place it in the &lt;span style="font-weight: bold;"&gt;/srv/www/ubuntu&lt;/span&gt; directory.&lt;br /&gt;Notice that &lt;span style="font-weight: bold;"&gt;/srv/tftp/ubuntu-installer/i386/boot-screens/text.cfg&lt;/span&gt; is pointing at this file. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#platform=x86 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#System language &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;lang en_UK &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Language modules to install &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;langsupport en_UK &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#System keyboard &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;keyboard gb        # not uk ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#System mouse &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mouse &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#System timezone &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;timezone Europe/London &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Root password &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;rootpw --disabled &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Initial user &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;user fred --fullname "Fred User" --iscrypted --password&lt;br /&gt;$1$TbZtLDPw$YG89LpNillhOvTH4zeEse/ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Reboot after installation &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;reboot &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Use text mode install &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;text &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Install OS instead of upgrade &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;install &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Use Web installation - provide the URL of your web server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; url --url http://192.168.1.100/ubuntu &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#cdrom &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#System bootloader configuration &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;bootloader --location=mbr &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Clear the Master Boot Record &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;zerombr yes &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Partition clearing information &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;clearpart --all --initlabel &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Disk partitioning information &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;part / --fstype ext3 --size 10000000 # --grow failed for me ;-(&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;part swap --size 512 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;part /lvm --fstype lvm --size 512 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#System authorization information &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;auth  --useshadow  --enablemd5 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Network information &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;network --bootproto=dhcp --device=eth0 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Firewall configuration &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;firewall --disabled &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;#Do not configure the X Window System &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;skipx &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;%packages     # comment out needed packages, or add new &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;openssh-server     &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# ubuntu-vm-builder &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# libvirt-bin &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# screen &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;%pre &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;%post &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;perl -pi -e "s/kickseed/myserver/g" /etc/hosts /etc/motd &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;perl -pi -e "s/ubuntu/myserver/g" /etc/hosts /etc/motd &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;cat &gt; /etc/hostname &lt;&lt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;myserver &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;EOF &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;cat &gt;&gt; /etc/hosts &lt;&lt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;192.168.1.10 myserver.example.com myserver &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;192.168.1.11 yourserver.example.com yourserver &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;192.168.1.12 herserver.example.com herserver &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;EOF &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# any other post-installation shell command(s) can go here&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This concludes server configuration.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------------------------&lt;br /&gt;Step 9. On the client:&lt;br /&gt;&lt;br /&gt;Boot, intercept the booting process and enter &lt;span style="font-weight: bold;"&gt;BIOS&lt;/span&gt;. Change the sequence of boot devices, and select network boot.&lt;br /&gt;&lt;br /&gt;Ideally, you want to identify a separate key, like &lt;span style="font-weight: bold;"&gt;F12&lt;/span&gt; on some machines, which request &lt;span style="font-weight: bold;"&gt;PXE&lt;/span&gt; boot without you changing the boot sequence. This will prevent repeated boots as the machine restarts after the installation.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-3420796867582189769?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/3420796867582189769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=3420796867582189769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3420796867582189769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3420796867582189769'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2010/08/automated-kickstart-install-of-ubuntu.html' title='Automated kickstart install of ubuntu'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4918174605817602207</id><published>2010-08-12T00:14:00.002+01:00</published><updated>2010-08-12T00:21:10.148+01:00</updated><title type='text'>How did Ubuntu speed up boot time?</title><content type='html'>&lt;span style="font-family: arial;"&gt;Fact: Ubuntu 10.04 boots significantly faster than any other desktop/laptop OS I have ever used. On the same machine (Asus), boot time went from about 75 seconds to less than 30. My Lenovo X201 takes approximately 25 seconds to go through full reboot cycle.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;How come? Scott of Canonical, explained at LINUXCON.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;When booting a Linux system, four distinct phases occur:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;1.Load into memory the kernel and ramdisk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;2.Load platform drivers&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;3.Start X-related stuff&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;4.Start the desktop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Ubuntu developers made a conscious decision to aim for target timing. Rather than tweaking existing sequence of events, they decided to invest time into redesigning the boot process, and aim for 2+2+2+4 seconds for each stage, respectively.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;That would give a cold-to-desktop time of 10 seconds. Test base platform that was used was a Dell laptop (can't remember which one, but it doesn't matter, as advantages and shortened time will apply to most contemporary PCs). &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;How they went about it: first of all, they looked at the monolithic kernel content, and cleaned it up. This had a two-fold benefit: it allowed to remove some of the duplicity, where two (or more !) modules were doing the same thing, but also in the process, they managed to nearly half the footprint of the kernel image itself – a massive saving in resource and time to load.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Ramdisk savings are not that easy to achieve. You can't remove it altogether: ramdisk is essential, as it provides the hibernate/suspend functionality, LVM, RAID, filesystem encryption, etc. However, where the saving can be made is if you start performing ramdisk tasks asynchronously with the loading of mainline kernel. That, of course, relies on the CPU with multi-cores, but even on a single core the benefits are significant, as the kernel will schedule things more efficiently whilst waiting for hardware to return.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Other improvements:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;1.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;blkid&lt;/span&gt;&lt;span style="font-family: arial;"&gt; process (relying on while/sleep) poll-style operation has now been fully  replaced by &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;libudev&lt;/span&gt;&lt;span style="font-family: arial;"&gt; process (which instead of polling devices, it works on the “tell me when you are ready” principle. That alone saved 3.5 seconds off the boot time&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;2.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;upstart&lt;/span&gt;&lt;span style="font-family: arial;"&gt; – a total replacement to the &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;init&lt;/span&gt;&lt;span style="font-family: arial;"&gt; process; it allowed to eliminate 1000s of shell script code and replaced the sequential processing of the service startup with event-driven service initialisation. For example, in the traditional method, when &lt;/span&gt; got to mounting a device and the device wasn't up and running, it would miss out on being connected. With &lt;span style="font-weight: bold; font-family: arial;"&gt;initupstart&lt;/span&gt;&lt;span style="font-family: arial;"&gt;, device will be mounted when it announces its readiness&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;3.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;ureadahead&lt;/span&gt;&lt;span style="font-family: arial;"&gt; – a binary providing a method of speeding up disk seeks and reads; much more effective on SSD drives, because HDD disks are still prone to slow seeks, as disk geometry gets in the way; &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;ureadahead&lt;/span&gt;&lt;span style="font-family: arial;"&gt; is fs-independent, although it still can't cope with the fs metadata location problems&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;use light-weight desktops&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;4.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;in future &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;compiz&lt;/span&gt;&lt;span style="font-family: arial;"&gt; will be replaced with faster alternative&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4918174605817602207?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4918174605817602207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4918174605817602207' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4918174605817602207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4918174605817602207'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2010/08/how-did-ubuntu-speed-up-boot-time.html' title='How did Ubuntu speed up boot time?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5092639562486581828</id><published>2010-08-10T16:21:00.002+01:00</published><updated>2010-08-10T16:30:49.486+01:00</updated><title type='text'>Oracle take on Linux</title><content type='html'>Wim Coekaerts was the first guest speaker at this year's Linuxcon, in Boston. Oracle are one of the event's sponsors, which in itself seems rather significant.&lt;br /&gt;&lt;br /&gt;Considering recent acquisition of Sun Microsystems by Oracle, it's not surprising that Oracle's presence here is important. &lt;br /&gt;&lt;br /&gt;I'm not going to transcribe the talk. Few comments only: the indication of where Oracle stand on Solaris and Linux is apparently in the fact that they are at present hiring professionals in both of these. &lt;br /&gt;&lt;br /&gt;According to Wim, more than 20% of Oracle installations run on Linux. His closing comment was:&lt;br /&gt;&lt;br /&gt;"Linux is here to stay, also at Oracle"&lt;br /&gt;&lt;br /&gt;That was to say - nobody argues the place of Linux in today's IT, and that has nothing to do with Oracle, no individual or organisation can change the momentum Linux has. However, Oracle are declaring their full embrace for both Linux and open source in general.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5092639562486581828?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5092639562486581828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5092639562486581828' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5092639562486581828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5092639562486581828'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2010/08/oracle-take-on-linux.html' title='Oracle take on Linux'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5539621521747260202</id><published>2010-07-14T20:10:00.003+01:00</published><updated>2010-07-14T20:51:48.189+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crtime'/><category scheme='http://www.blogger.com/atom/ns#' term='ext4'/><category scheme='http://www.blogger.com/atom/ns#' term='debugfs'/><title type='text'>Creation time in UniX? Yes - in ext4</title><content type='html'>The &lt;span style="font-weight: bold;"&gt;ext4&lt;/span&gt; file system has now been available for a while, but so far Ubuntu is the only distribution installing it by default.&lt;br /&gt;&lt;br /&gt;There are significant differences between &lt;span style="font-weight: bold;"&gt;ext4&lt;/span&gt; and its predecessors, and amongst them is extent mapping (instead of the traditional indirect block mapping),  the new 1 nanosecond date resolution capability, date limit pushed back till &lt;span style="font-weight: bold;"&gt;25/04/2514&lt;/span&gt;, and for the first time in UNIX i-node that stores five file timestamps (i-node width defaults to 256 bytes in &lt;span style="font-weight: bold;"&gt;ext4&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;In addition to the traditional &lt;span style="font-weight: bold;"&gt;atime&lt;/span&gt; (a=access), &lt;span style="font-weight: bold;"&gt;mtime&lt;/span&gt; (m=modification) and &lt;span style="font-weight: bold;"&gt;ctime&lt;/span&gt; (c=change of i-node), in &lt;span style="font-weight: bold;"&gt;ext4&lt;/span&gt; we now also have &lt;span style="font-weight: bold;"&gt;crtime&lt;/span&gt; (cr=creation) and &lt;span style="font-weight: bold;"&gt;dtime&lt;/span&gt; (d=deletion).&lt;br /&gt;&lt;br /&gt;It's this creation time that many people insisted on having... So we now have it. There is one problem, though. Standard Linux tools can't yet deal with this sophistication!&lt;br /&gt;&lt;br /&gt;Normally, we would use tools like &lt;span style="font-weight: bold;"&gt;stat&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;find&lt;/span&gt; to read file attributes from their i-nodes, but at the moment, they are not extracting any more information from &lt;span style="font-weight: bold;"&gt;ext4&lt;/span&gt; than from &lt;span style="font-weight: bold;"&gt;ext2&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;ext3&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;This is where &lt;span style="font-weight: bold;"&gt;debugfs&lt;/span&gt; can help. First, check which partitions are formatted with &lt;span style="font-weight: bold;"&gt;ext4&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;mount | grep ext4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;/dev/sda1 on / type ext4 (rw,errors=remount-ro)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here, the root file system is &lt;span style="font-weight: bold;"&gt;ext4&lt;/span&gt;. To see all know timestamps on a file in this file system (for example, for &lt;span style="font-weight: bold;"&gt;/etc/hosts&lt;/span&gt; file):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;debugfs -R 'stat /etc/hosts' /dev/sda1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Inode: 133370   Type: regular    Mode:  0644   Flags: 0x80000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Generation: 1995841318    Version: 0x00000000:00000001&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;User:     0   Group:     0   Size: 250&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;File ACL: 0    Directory ACL: 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Links: 1   Blockcount: 8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Fragment:  Address: 0    Number: 0    Size: 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; ctime: 0x4c080d16:0bf9435c -- Thu Jun  3 21:14:14 2010&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; atime: 0x4c3da303:c11dd858 -- Wed Jul 14 12:44:03 2010&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; mtime: 0x4c080d16:0bf9435c -- Thu Jun  3 21:14:14 2010&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;crtime: 0x4c080d16:0bf9435c -- Thu Jun  3 21:14:14 2010&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Size of extra inode fields: 28&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;EXTENTS:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;(0): 557470&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Alternatively, check its i-node number (with &lt;span style="font-weight: bold;"&gt;ls -i&lt;/span&gt;) and run &lt;span style="font-weight: bold;"&gt;debugfs&lt;/span&gt; aganist it (notice the compulsory angle brackets if using i-node number):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;debugfs -R 'stat &lt;133370&gt;' /dev/sda1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;Inode: 133370   Type: regular    Mode:  0644   Flags: 0x80000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; Generation: 1995841318    Version: 0x00000000:00000001&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; User:     0   Group:     0   Size: 250&lt;/span&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;At last!&lt;br /&gt;&lt;br /&gt;BTW, I'm being told &lt;span style="font-weight: bold;"&gt;perl&lt;/span&gt; can extract the &lt;span style="font-weight: bold;"&gt;crtime&lt;/span&gt; from the i-node, but haven't tried it yet...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5539621521747260202?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5539621521747260202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5539621521747260202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5539621521747260202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5539621521747260202'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2010/07/creation-time-in-unix-yes-in-ext4.html' title='Creation time in UniX? Yes - in ext4'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-8351480120460497360</id><published>2010-07-01T23:04:00.004+01:00</published><updated>2010-07-01T23:29:30.344+01:00</updated><title type='text'>Update your SSL certificate for Citrix</title><content type='html'>Some time ago I wrote in this blog a little tutorial on how to install and configure a Citrix client in Linux. The solution worked then, and still works today (I am now on 64-bit Ubuntu 10.04).&lt;br /&gt;&lt;br /&gt;However, some weeks ago, I started getting "You have chosen not to trust..." message when connecting. Unfortunately for me, it coincided with a new laptop build, and I have assumed that my configuration has gone awry. My new system was built from scratch, but the home directory was restored from an &lt;span style="font-weight: bold;"&gt;rsync&lt;/span&gt; backup of my old laptop. That managed to confuse me, in that I suspected that some of the start-up files imported from the old (32-bit) laptop conflicted with the new (64-bit) system. It kept me going! I have repeated my own instructions several times, trying other browsers, googling if others had anything similar issues. The overwhelming set of instructions kept referring to the lack of the certificate in the correct ICAclient location. I have double and treble checked that part of the setup, and all seemed well, but the problem persisted.&lt;br /&gt;&lt;br /&gt;Having spent several hours on dissecting the problem and getting nowhere, I suddenly relised that all proposed solutions refer to a couple of certificate authorities, whereas my error message referred to something totally different. Went to their site, and it turned out that my certificate that, I had been using for years, has been updated (even though it was meant to be valid till 2020). Anyway, a new download of the certificate into the keystore:&lt;br /&gt;  &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_IW02HKpJ0Ks/TC0WNedtf7I/AAAAAAAAAEU/sT2ojMcmCN8/s1600/Screenshot.png"&gt;&lt;img style="float: left; margin: 0pt 10px 10px 0pt; cursor: pointer; width: 468px; height: 38px;" src="http://2.bp.blogspot.com/_IW02HKpJ0Ks/TC0WNedtf7I/AAAAAAAAAEU/sT2ojMcmCN8/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5489067941606293426" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(an operation that in itself took about 15 seconds) and the problem was sorted.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8351480120460497360?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8351480120460497360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8351480120460497360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8351480120460497360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8351480120460497360'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2010/07/update-your-ssl-certificate-for-citrix.html' title='Update your SSL certificate for Citrix'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_IW02HKpJ0Ks/TC0WNedtf7I/AAAAAAAAAEU/sT2ojMcmCN8/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-6021206223619578104</id><published>2010-06-29T12:18:00.002+01:00</published><updated>2010-06-29T17:04:20.581+01:00</updated><title type='text'>Fixing sound in Ubuntu</title><content type='html'>Several installs later, I have noticed a recurring issue. You install base OS (in my case Ubuntu, currently on 10.4), and although system sound is OK, I wasn't getting any sound from video clips, youtube, BBC iplayer, etc. Having been through all sort of attempts to fix it, from simple &lt;span style="font-weight: bold;"&gt;alsamixer&lt;/span&gt; adjustment, to installing new drivers, nothing would manage to fix it.&lt;br /&gt;&lt;br /&gt;Then some time later I would try to play an &lt;span style="font-weight: bold;"&gt;.mp3&lt;/span&gt; track stored on the hard disk, and a pop up screen would suggest installing missing plugins, provided by &lt;span style="font-weight: bold;"&gt;gstreamer&lt;/span&gt;. I followed the instructions (all GUI), and sound works in every application and situation. It's only when this happened again, I think for the third time (same sequence of events when installed 9.04 and 9.10 before), when I clicked it's a 'proper' fix, that seems to work for me consistently. Moral of the story - if youhave problems with sound, see if you can play 'standard' music. If not - with any luck you will be guided how to fix it, and you should be in business in a tick!&lt;br /&gt;&lt;br /&gt;BTW, I deliberately missed my hardware spec and setup here, as this has occurred on more than one machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6021206223619578104?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6021206223619578104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6021206223619578104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6021206223619578104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6021206223619578104'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2010/06/fixing-sound-in-ubuntu.html' title='Fixing sound in Ubuntu'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4352844629612158042</id><published>2010-03-15T16:59:00.003Z</published><updated>2010-03-15T17:09:36.038Z</updated><title type='text'>A gap year ?</title><content type='html'>&lt;span style="font-family: arial;"&gt;I blame my machines going up and down for the silence, and spending every last computing moment on backups, rebuilds, re-installs.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;br /&gt;Some of it is my own fault, pushing the hardware to the limits, experimenting with virtualization, tuning the CPUs (one of the crashes was my incorrect use of the &lt;span style="font-weight: bold;"&gt;taskset&lt;/span&gt; command, another trying to modify &lt;span style="font-weight: bold;"&gt;udev&lt;/span&gt; to read my camera in a particular way).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;br /&gt;But the worst disaster was when on a dual boot Windows 7 partition crashed, causing a wonderful blue screen of death. I kept the snapshot of this, for those that don't believe...&lt;/span&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;br /&gt;Anyway, I'm back, trying to catch up. I'm nearly there, abandoned dual boot (will have all other OSes in VMware), and running with Ubuntu 9.10 again. Getting ready for the new LTS (Long Term Support), the 10.4 version out soon... &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4352844629612158042?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4352844629612158042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4352844629612158042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4352844629612158042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4352844629612158042'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2010/03/gap-year.html' title='A gap year ?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-3276617971029778123</id><published>2009-06-25T16:24:00.002+01:00</published><updated>2009-06-25T16:37:55.264+01:00</updated><title type='text'>Booting from CD/DVD inside VMware guest</title><content type='html'>&lt;span style="font-family:arial;"&gt;We are now using CentOS 5.2 in VMware. Last time we tried to boot from CentOS 5.2 DVD (to experiment with its rescue image), it flatly refused. I'm still relatively new to using the VM setups, so it took time to sort it out... &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;It turned out that there were two issues: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;1 - the accessibility of the CD/DVD from the guest&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2 - the booting sequence in the guest BIOS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Below are the steps resolving both.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;First enable CD/DVD visibility in the guest:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;1. Power off the guest OS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2. In "&lt;strong&gt;Devices&lt;/strong&gt;" tab (right-hand side of the screen) select &lt;strong&gt;CD/DVD(IDE)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;3a. Tick "&lt;strong&gt;Connect at power on&lt;/strong&gt;" and &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;3b. Mark "&lt;strong&gt;Use physical drive&lt;/strong&gt;"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;3c. From the drop-down list select "&lt;strong&gt;Auto detect&lt;/strong&gt;"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Now fix the BIOS boot sequence (in the guest). Notice that you have to change the focus into the guest screen before you can do anything (&lt;strong&gt;CTRL-G&lt;/strong&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;1. Power on guest OS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2. Intercept the boot - hit &lt;strong&gt;CTRL-G&lt;/strong&gt; followed by hit &lt;strong&gt;F2&lt;/strong&gt; *quickly* - it doesn't hang around for long!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;3. In the BIOS menu, identify the boot sequence screen, and change to place CDROM before the hard disk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;4. Save and continue boot...&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-3276617971029778123?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/3276617971029778123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=3276617971029778123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3276617971029778123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3276617971029778123'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/06/booting-from-cddvd-inside-vmware-guest.html' title='Booting from CD/DVD inside VMware guest'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1502268524628777488</id><published>2009-06-10T12:13:00.003+01:00</published><updated>2009-06-10T15:03:15.048+01:00</updated><title type='text'>Forcing Solaris 10 to recognise network interface</title><content type='html'>Installed six PCs with Solaris 10 (10/08). Only two out of of them installed with correct network configuration. The unfortunate four didn't recognise the card at all, no kernel module included.&lt;br /&gt;&lt;br /&gt;Standard (well, for Solaris) tools like &lt;span style="font-weight: bold;"&gt;kstat -c net&lt;/span&gt;, or &lt;span style="font-weight: bold;"&gt;dladm show-dev&lt;/span&gt; had no network card information ...&lt;br /&gt;&lt;br /&gt;Quite a bit of trial and error later (not forgetting googling), here is a working solution:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;1. &lt;/span&gt;Identify the PCI vendor/device information:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;# prtconf -pv | more&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Search for Ethernet paragraph (you can do it within &lt;span style="font-weight: bold;"&gt;more&lt;/span&gt; using &lt;span style="font-weight: bold;"&gt;/Ethernet&lt;/span&gt;) and identify its vendor/device data. On my system, it showed:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;vendor-id 0000&lt;span style="font-weight: bold;"&gt;8086&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;device-id 0000&lt;span style="font-weight: bold;"&gt;1050&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The last 4 digits of these two values is what we are after.&lt;br /&gt;&lt;br /&gt;To find out which particular card this is, I googled for "pci8086,1050" and it's "Intel 82562EZ PRO/100 VE Ethernet"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. &lt;/span&gt;Configure device database&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#&lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt; vi /boot/solaris/devicedb/master&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to the section with &lt;span style="font-weight: bold;"&gt;pci8086&lt;/span&gt; entries, possibly using &lt;span style="font-weight: bold;"&gt;vi&lt;/span&gt;'s search:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;/^pci8086&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Insert the following line (ensure it goes in the proper numerical order of the vendor/device pairing):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;pci8086,1050 pci8086,1050 net pci iprb.bef  "Intel 82562EZ PRO/100 VE Ethernet"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. &lt;/span&gt;Add a new alias to the card&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;vi /etc/driver_aliases&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Search for the &lt;span style="font-weight: bold;"&gt;iprb&lt;/span&gt; related section and insert the following line (in the right alphabetically place):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;iprb "pci8086,1050"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.&lt;/span&gt; Load the kernel driver module for the interface&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;modload /kernel/drv/iprb&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5. &lt;/span&gt;Perform a 'reconfigure' reboot. First initialise the reconfigure flag file, then reboot the machine:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;touch /reconfigure&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;reboot&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6. &lt;/span&gt;After the reboot, 'plumb' the card in and complete the configuration (here, I'm assuming IP address of 192.168.1.100):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;ifconfig iprb0 plumb&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;ifconfig iprb0 192.168.1.100 up&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;touch /etc/hostname.iprb0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Make sure that the hosts file under &lt;span style="font-weight: bold;"&gt;/etc/inet&lt;/span&gt; is fine. Mine has the following lines:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;127.0.0.1       localhost       localhost.qa.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;192.168.1.100   yogi    yogi.qa.com     loghost&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Notice that on Solaris the main &lt;span style="font-weight: bold;"&gt;/etc/hosts&lt;/span&gt; file is a symbolic link to &lt;span style="font-weight: bold;"&gt;/etc/inet/hosts&lt;/span&gt; and in addition it will be replicated (automatically) into &lt;span style="font-weight: bold;"&gt;/etc/inet/ipnodes&lt;/span&gt; as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1502268524628777488?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1502268524628777488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1502268524628777488' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1502268524628777488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1502268524628777488'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/06/forcing-solaris-10-to-recognise-network.html' title='Forcing Solaris 10 to recognise network interface'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-8871233920791479144</id><published>2009-06-02T18:06:00.002+01:00</published><updated>2009-06-02T18:38:33.478+01:00</updated><title type='text'>Time ticket with sudo</title><content type='html'>The &lt;span style="font-weight: bold;"&gt;sudo&lt;/span&gt; facility has been available in UNIX for a long time. Often as an add-on, it provides secure and highly configurable mechanism for "delegating" tasks. It is meant to step in where the basic "switch user" command, &lt;span style="font-weight: bold;"&gt;su&lt;/span&gt;, leaves off.&lt;br /&gt;&lt;br /&gt;In the &lt;span style="font-weight: bold;"&gt;sudo&lt;/span&gt; configuration file (&lt;span style="font-weight: bold;"&gt;/etc/sudoers&lt;/span&gt;) we define &lt;span style="font-style: italic;"&gt;who&lt;/span&gt; can do &lt;span style="font-style: italic;"&gt;what&lt;/span&gt; on &lt;span style="font-style: italic;"&gt;which machines&lt;/span&gt; with &lt;span style="font-style: italic;"&gt;whose identity.&lt;/span&gt; The configuration can be as complex as it is powerful, so a lot of the time administrators start with a basic facility, which  specifies that a user can do every command, on every machine as any user:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;fred    ALL=(ALL) ALL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So how does that differ from login as user &lt;span style="font-weight: bold;"&gt;root&lt;/span&gt; in the first place? Well, with &lt;span style="font-weight: bold;"&gt;sudo&lt;/span&gt; you don't disseminate &lt;span style="font-weight: bold;"&gt;root&lt;/span&gt;'s password. Users attempting to use the &lt;span style="font-weight: bold;"&gt;sudo&lt;/span&gt; facility will have to authenticate themselves by providing their own password (not the password of the 'target' identity!).&lt;br /&gt;&lt;br /&gt;Once authenticated, the user can continue executing &lt;span style="font-weight: bold;"&gt;sudo&lt;/span&gt; commands for a default timeout (typically 5, 10 or 15 minutes). This timeout is known as the '&lt;span style="font-style: italic;"&gt;time ticket&lt;/span&gt;'. Once the time ticket expires, the user will have to provide his/her password again.&lt;br /&gt;&lt;br /&gt;The default for the time ticket is not always appropriate. Depending on the job role, there may be a requirement to extend (or indeed shorten) the time ticket's length.&lt;br /&gt;&lt;br /&gt;To do that, edit the &lt;span style="font-weight: bold;"&gt;/etc/sudoers&lt;/span&gt; file (using &lt;span style="font-weight: bold;"&gt;visudo&lt;/span&gt; tool), and add the line into the Defaults block of instructions (it actually doesn't matter where the line ends up, the suggested location is for clarity reasons only):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;Defaults:fred    timestamp_timeout = "X"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where &lt;span style="font-weight: bold;"&gt;X&lt;/span&gt; stands for the number of minutes you want the time ticket to last.&lt;br /&gt;&lt;br /&gt;If you want for the timetickets to never expire (not really recommended - it defeats the purpose!) replace &lt;span style="font-weight: bold;"&gt;X&lt;/span&gt; with &lt;span style="font-weight: bold;"&gt;-1&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;You can add a line for each user you want to modify, and you can replace the user name with &lt;span style="font-weight: bold;"&gt;ALL&lt;/span&gt; - meaning.... all users ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8871233920791479144?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8871233920791479144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8871233920791479144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8871233920791479144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8871233920791479144'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/06/time-ticket-with-sudo.html' title='Time ticket with sudo'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-6745576265215498078</id><published>2009-05-11T21:59:00.003+01:00</published><updated>2009-05-11T22:22:00.169+01:00</updated><title type='text'>Changing 'Places' in Gnome panel</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_IW02HKpJ0Ks/SgiWYqq3lcI/AAAAAAAAABs/W3ZiBnTWiIY/s1600-h/Screenshot--+-+File+Browser.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 178px;" src="http://4.bp.blogspot.com/_IW02HKpJ0Ks/SgiWYqq3lcI/AAAAAAAAABs/W3ZiBnTWiIY/s320/Screenshot--+-+File+Browser.png" alt="" id="BLOGGER_PHOTO_ID_5334679109135472066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Distros using Gnome have pretty much standardised on the main panel's appearance and content. We get three main drop-down menus: &lt;span style="font-weight: bold;"&gt;Applications&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Places&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;System&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Customising &lt;span style="font-weight: bold;"&gt;Applications&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;System&lt;/span&gt; is straighforward, and quite intuitive (right-click on either of them, choose &lt;span style="font-weight: bold;"&gt;Edit Menus&lt;/span&gt;, and have a play...). However, the same cannot be said for &lt;span style="font-weight: bold;"&gt;Places&lt;/span&gt;. By default, the top part of it gives a direct access to user home directory and their &lt;span style="font-weight: bold;"&gt;Desktop&lt;/span&gt;. But if you want to add another quick-access location, you need to realise that the Places represents a shortcut to the Nautilus &lt;span style="font-weight: bold;"&gt;Bookmarks&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;So, to modify the list of directories accessible via &lt;span style="font-weight: bold;"&gt;Places&lt;/span&gt; you need to edit file manager's &lt;span style="font-weight: bold;"&gt;Bookmarks&lt;/span&gt;. Open your file manager, select the &lt;span style="font-weight: bold;"&gt;Places&lt;/span&gt; view for the left hand-side pane, then edit it by dropping or deleting directories into it (see the screenshot).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6745576265215498078?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6745576265215498078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6745576265215498078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6745576265215498078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6745576265215498078'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/05/changing-places-in-gnome-panel.html' title='Changing &apos;Places&apos; in Gnome panel'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_IW02HKpJ0Ks/SgiWYqq3lcI/AAAAAAAAABs/W3ZiBnTWiIY/s72-c/Screenshot--+-+File+Browser.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-1159468834389703761</id><published>2009-04-29T21:04:00.002+01:00</published><updated>2009-04-29T22:47:45.606+01:00</updated><title type='text'>Test posting from e-mail directly into blog</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_IW02HKpJ0Ks/SfjK7-oj9xI/AAAAAAAAABk/OIejXl19lrQ/s1600-h/images.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 80px; height: 52px;" src="http://1.bp.blogspot.com/_IW02HKpJ0Ks/SfjK7-oj9xI/AAAAAAAAABk/OIejXl19lrQ/s320/images.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5330233290767202066" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p class="mobile-photo"&gt;&lt;/p&gt;&lt;!-- Converted from text/plain format --&gt;  &lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;Just set up an "email2blog" account, and this is the test of the post.&lt;br /&gt;&lt;br /&gt;Including an attachment picture (Barry flying LN over our garden).&lt;br /&gt;&lt;br /&gt;Thank you &lt;a href="http://www.linuxjournal.com/video/blogger-email"&gt;http://www.linuxjournal.com/video/blogger-email&lt;/a&gt; for the hint !&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1159468834389703761?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1159468834389703761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1159468834389703761' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1159468834389703761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1159468834389703761'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/04/test-posting-from-e-mail-directly-into.html' title='Test posting from e-mail directly into blog'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_IW02HKpJ0Ks/SfjK7-oj9xI/AAAAAAAAABk/OIejXl19lrQ/s72-c/images.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-3452589886464416743</id><published>2009-04-23T15:37:00.002+01:00</published><updated>2009-04-23T15:47:35.479+01:00</updated><title type='text'>Fixing MS in VMware keyboard mappings</title><content type='html'>&lt;span style="font-family:arial;"&gt;When using VMware (host: Linux, guest XP), keyboard mapping are not correct.&lt;br /&gt;&lt;br /&gt;To fix, modify the VMware configuration file, by adding the following directive:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;xkeymap.nokeycodeMap = true&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;Add it to the configuration file relevant to your product. If you have VMware server - it's &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;/etc/vmware-server-console/conf&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;For you have Workstation or Player, it's &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;/etc/vmware/config&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;It's been reported (see: http://communities.vmware.com/thread/177321) that the local file, in &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;~/.vmware/config&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt; can be used for the purpose (not tested by me either).&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-3452589886464416743?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/3452589886464416743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=3452589886464416743' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3452589886464416743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3452589886464416743'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/04/fixing-ms-in-vmware-keyboard-mappings.html' title='Fixing MS in VMware keyboard mappings'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1825846402014643765</id><published>2009-04-23T14:14:00.005+01:00</published><updated>2009-04-23T15:10:14.352+01:00</updated><title type='text'>Open Source Interoperability Initiative from Microsoft</title><content type='html'>It's discussed at http://www.microsoft.com/opensource/interop/default.mspx. Great, isn't it?&lt;br /&gt;&lt;br /&gt;I have written before about the current configuration of my main laptop (Dell XPS M1330): I am running Ubuntu 8.10, which is 100% adequate for all my personal needs.  &lt;br /&gt;&lt;br /&gt;However, for as part of my work I need to be able to edit Microsoft Office files (all our slides are produced in Power Point). Well, tried using Open Office - it can do just as good a job. However, the niggling and subtle (sometimes very subtle) style and font differences made it so frustrating that I gave up. I was spending far too much time converting between Open Office - Power Point and back. &lt;br /&gt;&lt;br /&gt;That gave rise to the second best solution: install Crossover Office, a product based on Wine, allowing access to MS native applications. Again, this works the treat, at least in principle. Then I bumped into more hiccups, like font colour changing, or various boxes being over sized. In isolation, I would be totally satisfied with the solution, but I need to comply with company's strict branding and design style, and I can't achieve it with this setup (at least not without additional fiddling with the files).&lt;br /&gt;&lt;br /&gt;So, (grudgingly) on to the next solution. I already have a license for VMware Workstation (6.5). I installed XP into it, added MS Office 2003, and thought that I might be able to get some work done, at last. No! MS Office working in VMware does not recognise any of the extended keyboard mappings. Arrow keys, Page Up, Page Down, etc, all either totally dead, or generate VM-associated actions. &lt;br /&gt;&lt;br /&gt;So why is it that I'm wasting all this time just to stay afloat. This is like an engineer having to calibrate his meters or file his screwdrivers before every use.&lt;br /&gt;&lt;br /&gt;Open source is meant to unite. If Microsoft truly opened their code, it would allow other designers to create applications that are workable and provide permanent solutions. Instead, these designers are still having to reverse-engineer, outguess, invent emulators and create work-around fixes. Fixes are never perfect. &lt;br /&gt;&lt;br /&gt;Microsoft are boasting about interoperability: "... agreements between Microsoft and open source distributors. including Novell, Xandros, Linspire, and TurboLinux". That probably explains why my EeePC (Xandros) seems to have more robust drivers, character rendering and application selections, etc. But that is not what commitment to open source should be. If you are selective, you are still prescriptive and closed. &lt;br /&gt;&lt;br /&gt;Unless you find a way of being only a bit pregnant.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1825846402014643765?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1825846402014643765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1825846402014643765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1825846402014643765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1825846402014643765'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/04/open-source-interoperability-initiative.html' title='Open Source Interoperability Initiative from Microsoft'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5937359874493606299</id><published>2009-04-19T00:17:00.001+01:00</published><updated>2009-04-19T00:23:21.119+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='training'/><category scheme='http://www.blogger.com/atom/ns#' term='Spreed'/><category scheme='http://www.blogger.com/atom/ns#' term='Canonical'/><category scheme='http://www.blogger.com/atom/ns#' term='certification'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Ubuntu training (and Spreed conferencing)</title><content type='html'>Canonical have revamped their courses and certification paths. Sounds very sensible - there is so much entry level training, why not concentrate on distribution specifics and more advanced server issues achievable with Ubuntu. The Ubuntu Certified Professional programme is still based on the LPI 101 and 102, followed by LPI 199 exam (the later is Ubuntu specific) and the main difference is in the changed bias in the Canonical-authored courses, which now concentrate on the more advanced desktop and server configuration topics. Canonical have high aspirations for Ubuntu as a fully fledged desktop system, hence the Ubuntu Desktop Course in addition to the server courses (all described at www.canonical.com/training/certificationcourses).  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;To get the detail and the philosophy of the new training content over to the accredited trainer base, (as well as a fresh and original delivery approach) Canonical are holding several TTT (Train The Trainer) sessions. Considering that the number of people being trained is relatively small, and they are splattered literally all over the world, arranging the logistics for such a session was not trivial.  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;I have attended the event run 13:00 - 17:00 EST, which put it at 18:00-22:00 “my” time. I wasn't the worst off, there were people from US, Canada, but also from countries much further East than I am, so it was even later into the night for some of them. I was a bit worried, because the joining instructions, although very clear, involved configuring technologies either totally new to me, or ones that, regrettably, I have never made a proper use of.  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;The underlying conferencing engine was a product new to me, called Spreed. It impressed me straight away: it supports _all_ contemporary operating systems, including MacOS and Linux. Once on Spreed site, quick test confirmed that connection speed and other communication elements are suitable for conferencing. Patiently waited for an e-mail invitation to join and, once that arrived, a single click on the link and I was in. I understand this was the first time Canonical tried  this particular conferencing method for the TTT purposes, so there was new grounds to cover for both the students and the moderators. But, with few (mostly humorous) hiccups the event went very smoothly, the time past surprisingly fast and my overall impression was very positive.  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Although the product supports full audio and video from all participants, we didn't use cameras at all (something about Spreed and Flash 10 being incompatible - well, we had to have hardware incompatibility ;-)). Most of us stayed away from the audio as well, the interactive and real time “chat” pane provided more than satisfactory interaction. 10 points to the moderators for looking out for our comments and reacting to them swiftly. The whole experience was smooth, painless and very effective. Thank you EmmaJane, Belinda and Billy!  &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Bottom line - my resistance to these elaborate e-based methods of collaboration is well and truly broken, bring them on!&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5937359874493606299?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5937359874493606299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5937359874493606299' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5937359874493606299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5937359874493606299'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/04/ubuntu-training-and-spreed-conferencing.html' title='Ubuntu training (and Spreed conferencing)'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4179209666501854942</id><published>2009-04-03T11:02:00.000+01:00</published><updated>2009-04-03T11:03:28.354+01:00</updated><title type='text'></title><content type='html'>Well, I have decided to take a plunge with the all new and shiny QA blog. Although it&amp;#39;s only as new as my &amp;quot;new&amp;quot; 3-year old LPG car I bought recently. Xpertise had the blog designed and active well before the merger.&lt;br /&gt;&lt;br /&gt;It is rather ironic, and indicative of the state of the game, that the blog is only expected to be accessed / updated from Windows and Explorer.&lt;br /&gt;&lt;br /&gt;So, despite the fact that I haven’t used Windows for a couple of years, (and had used Firefox for years prior to that), it seems that the popular believe that life begins and ends with Windows is still there...&lt;br /&gt;&lt;br /&gt;Luckily, Firefox 3 managed to overcome whatever the .NET or activeX components compatibility issues might be (I don&amp;#39;t really know what I&amp;#39;m talking about here, so I&amp;#39;ll stop speculating any further!). Opera 9 wasn&amp;#39;t as helpful, and would not connect at all (although I could&amp;amp;#39ve tried changing its personality to Explorer in the setup)…&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4179209666501854942?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4179209666501854942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4179209666501854942' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4179209666501854942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4179209666501854942'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/04/well-i-have-decided-to-take-plunge-with.html' title=''/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-3870073891914096558</id><published>2009-02-12T08:27:00.002Z</published><updated>2009-02-12T08:43:47.160Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='atime'/><category scheme='http://www.blogger.com/atom/ns#' term='filesystem'/><category scheme='http://www.blogger.com/atom/ns#' term='relatime'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><title type='text'>Filesystem with "relatime" attribute</title><content type='html'>&lt;p&gt;Many debates have been carried out on the subject of time wasting when writing to i-node table (i.e. accessing the disk) when a user performes file access. Many alternatives have been offered over the years to avoid this.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;One of them is a filesystem attribute called &lt;strong&gt;&lt;span style="font-family:times new roman;"&gt;relatime&lt;/span&gt;&lt;/strong&gt;. It has been in existence for a while, but because nobody has been using it (by this I mean vendors rather than users), I never took sufficient time to remember how it works.&lt;/p&gt;&lt;p&gt;Well, Ubuntu now uses &lt;span style="font-family:times new roman;"&gt;&lt;strong&gt;relatime&lt;/strong&gt;&lt;/span&gt; by default. Time to learn...&lt;/p&gt;&lt;p&gt;Here is a quote from the best resource I found on the subject. It comes from an article posted by Jonathan Corbet on &lt;a href="http://lwn.net/Articles/244829/"&gt;lwn.net&lt;/a&gt;: &lt;/p&gt;&lt;p&gt;"&lt;span style="color:#993399;"&gt;Another approach was added in 2.6.20: the relatime mount option. If this flag is set, access times are only updated if they are (before the update) earlier than the modification time. This change allows utilities to see if the current version of a file has been read, but still cuts down significantly on atime updates. This option is not heavily used, perhaps because few people have heard of it and many distributions lack a version of mount which is new enough to know about it. Using relatime can still confuse tools which want to ask questions like "has this file been accessed in the last week?&lt;/span&gt;"&lt;/p&gt;&lt;p&gt;Hint: if you want to exeriment with the behaviour, use the &lt;strong&gt;&lt;span style="font-family:times new roman;"&gt;stat&lt;/span&gt;&lt;/strong&gt; command. Read and modify a file few times, and observe how the &lt;span style="font-family:times new roman;"&gt;&lt;strong&gt;atime&lt;/strong&gt;&lt;/span&gt; (access time) is only updated if the last access was done &lt;em&gt;before&lt;/em&gt; the last content change.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-3870073891914096558?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/3870073891914096558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=3870073891914096558' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3870073891914096558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3870073891914096558'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/02/filesystem-with-relatime-attribute.html' title='Filesystem with &quot;relatime&quot; attribute'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-933616904543270973</id><published>2009-01-23T15:55:00.002Z</published><updated>2009-01-23T16:50:44.983Z</updated><title type='text'>HPOfficeJet H470 in Ubuntu 8.10 over Bluetooth</title><content type='html'>It was all working in Hardy, but a week ago I reinstalled my Dell M1330, no Vista anymore - just Ubuntu 8.10. Very impressed, added Crossover Linux (still need MS Office), and I don't think I'm going to look back.&lt;br /&gt;&lt;br /&gt;Hardware recognition fantastic, my 3G dongle, which used to give me a lot of grieve before - now is running with a single click on the panel...&lt;br /&gt;&lt;br /&gt;Bluetooth seemed fine as well (connecting to other laptops and exchanging files OK). However, got stuck on the HP H470 printer. It worked with Hardy, now, attempts to connect only showed "Pairing Failed". Checking Ubuntu forum confirmed that there is a known &lt;a href="https://bugs.launchpad.net/ubuntu/+source/bluez-gnome/+bug/284994"&gt;bug&lt;/a&gt; in Intrepid, and there is seemingly a disagreement between the forum members and the developer on how to handle this. Shame...&lt;br /&gt;&lt;br /&gt;Never mind, time to get under the hood. The bug indicates that the gnome front end configuration is broken. Instead, one can use the CUPS web-based configuration, available through your browser.&lt;br /&gt;&lt;br /&gt;First check that your CUPS daemon is running, is listening for tcp connections:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;/etc/init.d/cups status&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Status of Common Unix Printing System: cupsd is running.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;$ &lt;span style="font-weight: bold;"&gt;netstat -a | grep LISTEN | grep cups&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;unix  2      [ ACC ]     STREAM     LISTENING     62711    /var/run/cups/cups.sock&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If not, you may have to (re)start the CUPS daemon (replace "status" with "start" in the first command above).&lt;br /&gt;&lt;br /&gt;Now to the actual configuration:&lt;br /&gt;&lt;br /&gt;1. First of all, identify the printer's number with the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;hcitool scan&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; Scanning ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;     00:21:86:XX:XX:XX    PIECORNERENG&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;     00:1A:0E:XX:XX:XX    Officejet H470&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Now start your browser and enter the server's URL: &lt;span style="font-weight: bold;"&gt;http://127.0.0.1:631&lt;/span&gt;. This will point it at CUPS administration server (strictly speaking it is IPP - Internet Printing Protocol using CUPS).&lt;br /&gt;&lt;br /&gt;3. Select &lt;span style="font-weight: bold;"&gt;Add Printer&lt;/span&gt;, then &lt;span style="font-weight: bold;"&gt;Continue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Enter values for &lt;span style="font-weight: bold;"&gt;Name&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Location&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;Description&lt;/span&gt;, then &lt;span style="font-weight: bold;"&gt;Continue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. In &lt;span style="font-weight: bold;"&gt;Device&lt;/span&gt;: screen select from the drop-down list &lt;span style="font-weight: bold;"&gt;HP Printer (HPLIP)&lt;/span&gt;, then &lt;span style="font-weight: bold;"&gt;Continue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. In the &lt;span style="font-weight: bold;"&gt;Device URI&lt;/span&gt; screen enter the protocol and the address for &lt;span style="font-style: italic;"&gt;your&lt;/span&gt; printer, as identified in step 1. Notice no ':' characters used in the string below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;bluetooth://001A0EXXXXXX&lt;/span&gt;, then &lt;span style="font-weight: bold;"&gt;Continue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Complete the configuration with the:&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt;Make&lt;/span&gt;: &lt;span style="font-weight: bold;"&gt;HP&lt;/span&gt;, then &lt;span style="font-weight: bold;"&gt;Continue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt;Model&lt;/span&gt;: &lt;span style="font-weight: bold;"&gt;HP Officejet h470 Foomatic/hpijs (en)&lt;/span&gt;, then &lt;span style="font-weight: bold;"&gt;Add Printer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hopefully, you are looking at "The Bluetooth printer has been added successfully"&lt;br /&gt;&lt;br /&gt;8. Test the setup from the command line. Run:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;lpstat -t&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;scheduler is running&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;no system default destination&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;device for Bluetooth: bluetooth://001A0E79AF32&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Bluetooth accepting requests since Fri 23 Jan 2009 16:39:02 GMT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;printer Bluetooth is idle.  enabled since Fri 23 Jan 2009 16:39:02 GMT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From now on, whether you print from the command line, or from applications, the printer will work hard for you!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-933616904543270973?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/933616904543270973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=933616904543270973' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/933616904543270973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/933616904543270973'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/01/hpofficejet-h470-in-ubuntu-810-over.html' title='HPOfficeJet H470 in Ubuntu 8.10 over Bluetooth'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-6999998764039871534</id><published>2009-01-21T21:45:00.003Z</published><updated>2009-01-21T21:58:04.261Z</updated><title type='text'>Handling MAC addresses in VM</title><content type='html'>We are working on setting up all our UNIX and Linux courses as guests in VMware workstation. There are many advantages of taking this route, as there are some penalties. We setup a 'master' VM, then ghost it, which allows us to dump an image on demand. Once we have used this method for a while, I might elaborate a bit more, with more insight...&lt;br /&gt;&lt;br /&gt;In the meantime, just a comment on preventing new images from duplicating original MAC address in Linux configuration. All this is new for me, but our techie in Swindon has sent me an e-mail documenting the solution. Thanks, Martin!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial; color: rgb(102, 51, 255);"&gt;"&lt;/span&gt;&lt;span style="font-family: arial; color: rgb(102, 51, 255);font-family:Arial;font-size:85%;"  &gt;If you don't do this before taking the image, each subsequent VM that you deploy will have the same MAC Address and you get that annoying "did you copy or move the VM" question on first boot......The fix is...&lt;/span&gt;  &lt;p style="font-family: arial; color: rgb(102, 51, 255);"&gt;&lt;span style="font-size:85%;"&gt;1. Delete the file &lt;span style="font-weight: bold;"&gt;/etc/udev/rules.d/70-persistent-net.rules&lt;/span&gt; [in the guest]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;2. Shutdown the VM&lt;/span&gt; &lt;br /&gt;&lt;span style="font-size:85%;"&gt;3. Find the &lt;span style="font-weight: bold;"&gt;.vmx&lt;/span&gt; file on the host (in this case, D:\VMRun\Linux C\Linux C.vmx). Edit it with &lt;span style="font-weight: bold;"&gt;Wordpad&lt;/span&gt; and look for 2 lines called&lt;i&gt; &lt;span style="font-weight: bold;"&gt;uuid.bios&lt;/span&gt;  and &lt;span style="font-weight: bold;"&gt;uuid.location&lt;/span&gt;.&lt;/i&gt; Underneath those 2 lines, add a line as follows:&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: courier new; color: rgb(102, 51, 255); font-weight: bold;"&gt;&lt;span style="font-size:85%;"&gt;uuid.action = "create"&lt;/span&gt; &lt;/p&gt;  &lt;p style="font-family: arial; color: rgb(102, 51, 255);"&gt;&lt;span style="font-size:85%;"&gt;4. Save the file and take the image"&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6999998764039871534?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6999998764039871534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6999998764039871534' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6999998764039871534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6999998764039871534'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/01/handling-mac-addresses-in-vm.html' title='Handling MAC addresses in VM'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-7609095965433869927</id><published>2009-01-21T19:13:00.003Z</published><updated>2009-01-21T19:39:51.215Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='login shell'/><category scheme='http://www.blogger.com/atom/ns#' term='gconf'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome-terminal'/><title type='text'>Should Gnome-terminal read shell startup files?</title><content type='html'>I say it should. If not by default, then at least users (ordinary users) should be able to set the capability permanently and easily!&lt;br /&gt;&lt;br /&gt;It's very easy to set is for a session. Open terminal, go to &lt;span style="font-weight: bold;"&gt;Edit&lt;/span&gt; --&gt; &lt;span style="font-weight: bold;"&gt;Current Profile&lt;/span&gt; --&gt; &lt;span style="font-weight: bold;"&gt;Title and Command&lt;/span&gt; and tick the "&lt;span style="font-weight: bold;"&gt;Run command as a login shell&lt;/span&gt;" box.&lt;br /&gt;&lt;br /&gt;Problem is, you have to do it every time you log in. Your first terminal never gets to see your environmental settings. We need permanent solution. Searched and googled, googled and searched. Found a wealth of information on the &lt;a href="http://kbase.redhat.com/faq/docs/DOC-1239"&gt;Red Hat&lt;/a&gt; site.&lt;br /&gt;&lt;br /&gt;They definitely put me on the right track (and convinced me that I do need to learn &lt;span style="font-weight: bold;"&gt;xml&lt;/span&gt; after all!). However, the article omitted to mention one important bit of information. When you change the settings with the &lt;span style="font-weight: bold;"&gt;gconftool-2&lt;/span&gt;, you must stop the &lt;span style="font-weight: bold;"&gt;gconfd-2&lt;/span&gt; daemon. I didn't, and had all sorts of desktop problems, including Nautilus crash.&lt;br /&gt;&lt;br /&gt;So, to make every &lt;span style="font-weight: bold;"&gt;gnome-terminal&lt;/span&gt; a login shell (e.i. read your environmental files) first stop the &lt;span style="font-weight: bold;"&gt;gconfd-2&lt;/span&gt; process. There may be a clean way of doing this in runlevel 5, I chose to go to runlevel 3, which is a full multi-user mode of operation, but without X (GUI).&lt;br /&gt;&lt;br /&gt;Do the following steps only if you *don't* have any applications or users requiring GUI - you risk P45 or your tyres slashed otherwise.&lt;br /&gt;&lt;br /&gt;Log in as root and enter:&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold; font-family: courier new;"&gt;init 3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Press &lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt; (after few messages) - that will show the prompt again. Enter:&lt;br /&gt;&lt;br /&gt;&lt;code style="font-family: courier new;" class="jive-code"&gt;# &lt;span style="font-weight: bold;"&gt;gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type boolean --set /apps/gnome-terminal/profiles/Default/login_shell true&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Return to GUI runlevel:&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold; font-family: courier new;"&gt;init 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;From now on, every user's terminal will source their startup files...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-7609095965433869927?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/7609095965433869927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=7609095965433869927' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/7609095965433869927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/7609095965433869927'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/01/should-gnome-terminal-read-shell.html' title='Should Gnome-terminal read shell startup files?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4777307450178311720</id><published>2009-01-07T21:21:00.003Z</published><updated>2009-01-07T21:53:01.787Z</updated><title type='text'>Kiosk mode in Firefox</title><content type='html'>I had a few e-mails from my local Linux User Group (NLUG, Northants LUG). Somebody asked for help in fixing Firefox. His browser lost all toolbars. An answer appeared within minutes: &lt;span style="font-size:130%;"&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;F11? (Toggles kiosk mode)"&lt;/span&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Two thoughts went through my mind. First of all I remembered that I had the same problem some months ago, and never found the solution. In fact, it was at that point when I decided to investigate Opera (which I have been using ever since). Why didn't I ask the forum? I would probably have had the same answer within minutes!&lt;br /&gt;&lt;br /&gt;The other thought related to a question a delegate asked me only yesterday about a "kiosk mode" in an application. I regret to admit, but my answer was a rather ignorant "don't know anything about your application, so can't comment" statement.&lt;br /&gt;&lt;br /&gt;Will I ever learn? Not knowing anything about the 'kiosk' thing, I assumed the term was peculiar to the application the chap was talking about! &lt;br /&gt;&lt;br /&gt;So I'm feeling rather depressed. Not only is this questioning my style in interaction with delegates, but also exposing massive gaps in my knowledge - everybody I mentioned the "kiosk mode" since then knew about it. It seems I'm the only person in the Universe that thought a kiosk is a type of detached cabin selling newspepars and cigarettes...&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4777307450178311720?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4777307450178311720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4777307450178311720' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4777307450178311720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4777307450178311720'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/01/kiosk-mode-in-firefox.html' title='Kiosk mode in Firefox'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-6030632176527526632</id><published>2009-01-03T00:07:00.001Z</published><updated>2009-01-03T00:07:57.551Z</updated><title type='text'>My first ever new year resolution</title><content type='html'>Will mantain this blog more regularly!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6030632176527526632?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6030632176527526632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6030632176527526632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6030632176527526632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6030632176527526632'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2009/01/my-first-ever-new-year-resolution.html' title='My first ever new year resolution'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1460138442593518632</id><published>2008-10-09T08:40:00.003+01:00</published><updated>2008-10-09T10:44:30.623+01:00</updated><title type='text'>Upgrading Ubuntu 7.10 to 8.04 - lesson learnt</title><content type='html'>I never liked upgrades - so many of them had gone wrong for me in the past... But having now been using &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Ubuntu&lt;/span&gt; for so long, I have become comfortable with it, and although I tried to document all add-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;ons&lt;/span&gt; and changes I made to the system (and I have a full data backup), I didn't really fancy re-building the system from scratch, just to go a version up.&lt;br /&gt;&lt;br /&gt;So, for the first time in ages - I decided to take a plunge. I went for the network upgrade, using the front-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;end&lt;/span&gt; software tool - which, coincidentally kept encouraging me to do just that at least once a day ;-)&lt;br /&gt;&lt;br /&gt;I left it overnight - no point in watching and agonizing over every slow down or apparent freeze.&lt;br /&gt;&lt;br /&gt;However, next morning it sat on a message " Generating locale...  en_AU.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;UTF&lt;/span&gt;-8...". Clearly, that was it. The process was well and &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_4"&gt;truly&lt;/span&gt; stuck. I ended up doing a hard restart - nothing else responded.&lt;br /&gt;&lt;br /&gt;Having tried several things (that got me into a system without GUI) I could not progress the upgrade any further. What was worse, the fresh installation didn't work either - the hard disk was not recognised (that bit I still need to investigate!).&lt;br /&gt;&lt;br /&gt;I left it for a few days, using my little toy &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;EeePC&lt;/span&gt; as a stop gap (a pretty effective one too!). Last night I &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_6"&gt;decided&lt;/span&gt; to do a bit of googling - and bingo - within the first attempt! The full discussion and the actual solution is at http://ubuntuforums.org/showthread.php?t=865679.&lt;br /&gt;&lt;br /&gt;In summary: if you got stuck like me, reboot into the older kernel (-15 or -14) &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;failsafe&lt;/span&gt; mode and run :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;dpkg&lt;/span&gt; --configure -a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then boot the old kernel (-15, proper, not &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;failsafe&lt;/span&gt;), at GUI &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;login&lt;/span&gt; screen &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_11"&gt;select&lt;/span&gt; in Options &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;Failsafe&lt;/span&gt; Gnome session, the run the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;dpkg&lt;/span&gt; command again:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;sudo&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;dpkg&lt;/span&gt; --configure -a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Next reboot - standard kernel and GUI session - all is well!&lt;br /&gt;&lt;br /&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_16"&gt;Lesson&lt;/span&gt; learnt?&lt;br /&gt;Do your homework before embarking onto a major system upgrade/maintenance, etc. The problems with upgrade from the latest 7.10 kernel to 8.04 are very well documented, if I only looked...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1460138442593518632?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1460138442593518632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1460138442593518632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1460138442593518632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1460138442593518632'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/10/upgrading-ubuntu-710-to-804-lesson.html' title='Upgrading Ubuntu 7.10 to 8.04 - lesson learnt'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4885880332764797858</id><published>2008-09-25T17:01:00.002+01:00</published><updated>2008-09-26T22:17:57.735+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ioscan'/><category scheme='http://www.blogger.com/atom/ns#' term='mount'/><category scheme='http://www.blogger.com/atom/ns#' term='HP-UX'/><title type='text'>CD to disk file transfer on HP-UX</title><content type='html'>After a long pause, and several projects later, I'm back getting ready our uxheaven.com (our back-room of variety of UNIX boxes, that will be used for training multi-vendor courses).&lt;br /&gt;&lt;br /&gt;Today, it's configuring HP-UX boxes: one is the B.11.11 U9000, the other B.11.23 on Itanium.&lt;br /&gt;&lt;br /&gt;Had to look up some of my old posts to fix various network settings, and I reckon the /etc/rc.config.d/netconf file will now stay in my memory (sad - it takes few weeks and the detail is gone!).&lt;br /&gt;&lt;br /&gt;Once the network was fine, needed to add software from CDs, to a central repository of documents and future depot files. For the time being, all I need is to have it all on hard disk. Quick refresher on the process:&lt;br /&gt;&lt;br /&gt;1. Identify the special file for CD-ROM:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;ioscan -funC disk&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;showed it to be&lt;span style="font-weight: bold;"&gt; /dev/c1t0d0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Create mount point directory&lt;br /&gt;I like the way Linux treats removable media, so my new mount directory became:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;mkdir -p /media/cdrom&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Mount the disk:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;mount -F cdfs /dev/c1t0d0 /media/cdrom&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Finally, create directory for the documents, and copy the CD content&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;mkdir /usr/doc&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;cp -rf /media/cdrom /usr/doc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ready for use...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4885880332764797858?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4885880332764797858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4885880332764797858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4885880332764797858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4885880332764797858'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/09/cd-to-disk-file-transfer-on-hp-ux.html' title='CD to disk file transfer on HP-UX'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1231327276816769816</id><published>2008-09-05T22:15:00.003+01:00</published><updated>2008-09-05T22:26:41.654+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EeePC'/><category scheme='http://www.blogger.com/atom/ns#' term='citrix'/><category scheme='http://www.blogger.com/atom/ns#' term='ICA client'/><category scheme='http://www.blogger.com/atom/ns#' term='Xandros'/><title type='text'>Citrix client on EeePC with Xandros Linux</title><content type='html'>First of all, contrary to other postings, you do not have to become "root" to install Citrix client. Especially on EeePC/Xandros, where (although possible) you would not expect a multitude of different user accounts.&lt;br /&gt;&lt;br /&gt;The steps for installing Citrix on EeePC are not that different from any other distribution:&lt;br /&gt;&lt;br /&gt;1. Point the browser at: http://www.citrix.com/English/SS/downloads/details.asp?downloadID=3323&amp;amp;productID=-1#top&lt;br /&gt;and download Linux ICA Client:&lt;br /&gt;Version 10.6  English 6/28/07  1.8 mb .tar.gz (x86 client - requires OpenMotif 2.2.x).&lt;br /&gt;&lt;br /&gt;In the Firefox download dialog, choose to Save to Disk. On the EeePC/Xandros, the default location for Firefox downloads is &lt;span style="font-weight: bold;"&gt;/home/user&lt;/span&gt; .&lt;br /&gt;&lt;br /&gt;2. Press &lt;span style="font-family: courier new; font-weight: bold;"&gt;CTRL-ALT-T&lt;/span&gt; to gain access to the command line.&lt;br /&gt;&lt;br /&gt;3. Setup the folder for the ICA client&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/home/user&gt; &lt;span style="font-weight: bold;"&gt;mkdir  citrix&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;/home/user&gt; &lt;span style="font-weight: bold;"&gt;mv  en.linuxx86.tar.gz  citrix&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;/home/user&gt; &lt;span style="font-weight: bold;"&gt;cd  citrix&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Unpack the tarball file:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/home/user/citrix&gt; &lt;span style="font-weight: bold;"&gt;tar  zxvf  en.linuxx86.tar.gz&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;./&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;./PkgId&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;5. Run the install script:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/home/user/citrix&gt; &lt;span style="font-weight: bold;"&gt;./setupwfc&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Follow the instructions: choose Install client and the default directory (ICAClient).&lt;br /&gt;Let the installation script create the ICAClient directory&lt;br /&gt;&lt;br /&gt;6. Install the certificate&lt;br /&gt;If you look at my earlier posting: "Ubuntu on XPS M1330 - Installing Citrix" (Monday, April 14, 2008), you will see the content of the certificate file.&lt;br /&gt;Cut and paste it into a plain text file.&lt;br /&gt;The file name for the certificate should be:&lt;br /&gt;/home/user/ICAClient/linuxx86/keystore/cacerts/UTN-USERFirst-Hardware.crt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1231327276816769816?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1231327276816769816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1231327276816769816' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1231327276816769816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1231327276816769816'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/09/citrix-client-on-eeepc-with-xandros.html' title='Citrix client on EeePC with Xandros Linux'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-4315393994009430226</id><published>2008-09-05T21:28:00.003+01:00</published><updated>2008-09-05T22:28:28.425+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EeePC'/><category scheme='http://www.blogger.com/atom/ns#' term='Xandros'/><title type='text'>EeePC with Xandros - long live Asus</title><content type='html'>I hate its keyboard. Horrible. And I don't mean the size, but quality. Most keys refuse to work unless you hit them with just the right amount of pressure, and jut the right angle. What a shame, because otherwise my new toy is an absolute treasure. There, there; got the bad out of the way.&lt;br /&gt;&lt;br /&gt;Now I can concentrate on the good. To my mind the little EeePC is a perfect cross between a light, small, beautifully equipped sub-notebook with a perfectly selected set of simply presented open source operating system and applications.&lt;br /&gt;&lt;br /&gt;Just been on two-week holidays, traveling across Europe. My "eepsy" did the trick - as a fast communicator (complete with video conferencing, thanks to the camera), storage device for photographs, work tool for quick write-ups, internet radio provider, and a source of endless penguin racing activity for a bored two-years-old, who had never seen the game before, yet was racing within seconds.&lt;br /&gt;&lt;br /&gt;Xandros based EeePC might do more for popularising Linux that all remaining distributions put together - although admittedly for all the wrong reasons: many people will not even realise they have Linux! I have seen EeePC/Xandros being used by people who used to shiver at the mere sound of the word Linux.&lt;br /&gt;&lt;br /&gt;What is best about it? Apart from the almost a pocket size and weight? Well, this is the first machine, Linux or otherwise, that had all facilities work out of the box. Totally intuitive, typical PDA-style front end, the easiest device to use by a mile.&lt;br /&gt;&lt;br /&gt;Mind you, it took me two days to find access to CLI, but then again this was out of curiosity rather than necessity (press CTR-ALT-T, in case you wonder).&lt;br /&gt;&lt;br /&gt;I'm probably being unfair to other distributions (like Ubuntu, which is my current favourite, for reasons I might explain separately).&lt;br /&gt;&lt;br /&gt;After all EeePC/Xandros was fine-tuned for the specific hardware - a luxury that few distributions can afford...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4315393994009430226?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4315393994009430226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4315393994009430226' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4315393994009430226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4315393994009430226'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/09/eeepc-with-xandros-long-live-asus.html' title='EeePC with Xandros - long live Asus'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4513484453569042246</id><published>2008-07-17T12:48:00.002+01:00</published><updated>2008-07-17T12:54:30.465+01:00</updated><title type='text'>HP drivers in Ubuntu</title><content type='html'>Some off-the-shelf HP printers won't work in Ubuntu, until proprietary drivers are installed.&lt;br /&gt;&lt;br /&gt;The quickest way I found is to use the existing hp-setup tool, provided in Ubuntu distributions. Just plug your printer in, and run:&lt;br /&gt;&lt;br /&gt;$ &lt;span style="font-weight: bold; font-family: courier new;"&gt;sudo hp-setup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Couple of answers later (&lt;span style="font-weight: bold;"&gt;d&lt;/span&gt; for download and &lt;span style="font-weight: bold;"&gt;y&lt;/span&gt; for yes, I agree to the license terms), your printer is ready. Painless and quick.&lt;br /&gt;&lt;br /&gt;As always, remember that if you are behind a proxy, you need to sort it out first (see several entries below regarding this).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4513484453569042246?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4513484453569042246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4513484453569042246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4513484453569042246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4513484453569042246'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/07/hp-drivers-in-ubuntu.html' title='HP drivers in Ubuntu'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5607907289405873343</id><published>2008-07-17T09:30:00.002+01:00</published><updated>2008-07-17T10:23:55.548+01:00</updated><title type='text'>Wobble your screen in Ubuntu 8.04</title><content type='html'>I'm moving onto the new Ubuntu version, and many people around me are twisting my arm to start using the 3D effects brought to Ubuntu by the Compiz set of packages.&lt;br /&gt;&lt;br /&gt;I can't imagine needing these effects long term (call me conservative and stingy), but having managed to get it work well (with some hints from our current resident whiz-kid, Lubo), I thought I'd document the process.&lt;br /&gt;&lt;br /&gt;You need the graphics card capable of 3D acceleration, of course, but most contemporary cards will do. Beware, some machines require proprietary drivers, so you may need to do more prep work.&lt;br /&gt;&lt;br /&gt;Ubuntu 8.04 comes with the main Compiz package already present and installed. You can recognize its presence by the slightly different feel to windows manipulation actions: different transparency, transitions, etc. But to get the full benefit of Compiz, so that you get to convert your screen into various shapes and bounce them on your terminal whilst the applications they display continue running, you need to install and enable a bit more.&lt;br /&gt;&lt;br /&gt;Step 1 - only required if you are sitting behind a proxy (if not, move to step 2). If you use proxy, the likelyhood is that all you have configured so far is your browser. I.e. firefox can access the world through the proxy, but no other application. There are several ways (as always) of allowing other applications to get to the proxy, but for the purpose of this exercise, we will only instruct package management tools (&lt;span style="font-weight: bold;"&gt;apt&lt;/span&gt;) ...&lt;br /&gt;&lt;br /&gt;First of all, identify what proxy address is being used on your site, and which port. Edit the apt configuration file: &lt;span style="font-weight: bold;"&gt;/etc/apt/apt.conf&lt;/span&gt; by running the following command (substitute proxy-address shown below for the proxy address and XX for the port number, often 8080) :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$  &lt;span style="font-weight: bold;"&gt;sudo echo 'Acquire::http::Proxy "http://proxy-address:XXXX";' &gt;&gt; /etc/apt/apt.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You may need to extend the stanza, if you use proxy user name and password. The entry would then look similar to this:&lt;br /&gt;&lt;pre&gt;Acquire::http&lt;br /&gt;{&lt;br /&gt; Proxy "http://proxy-address:XXXX/";&lt;br /&gt; ProxyLogin&lt;br /&gt; {&lt;br /&gt;    "USER &lt;user&gt;@&lt;proxy-address&gt;";&lt;br /&gt;    "PASS &lt;password&gt;";&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Step 2 - assuming you repository file (&lt;span style="font-weight: bold;"&gt;/etc/apt/sources.list&lt;/span&gt;) has been set up, which in 8.04 is done during installation, you should be able to continue with the Compiz install.&lt;br /&gt;&lt;br /&gt;Rebuild the database of available packages, the check for compiz packages, and install the front-end tool for it:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-get update&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo apt-cache search compiz&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;compizconfig-settings-manager - Compiz configuration settings manager&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;sudo apt-get install compizconfig-settings-manager&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once done, follow the path: &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;System --&gt; Preferences --&gt; Advanced Desktop Effects Settings &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;for all your 3D setting delights!&lt;br /&gt;&lt;br /&gt;Happy playing... (I'm moving to other things) ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5607907289405873343?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5607907289405873343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5607907289405873343' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5607907289405873343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5607907289405873343'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/07/wobble-your-screen-in-ubuntu-804.html' title='Wobble your screen in Ubuntu 8.04'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-6137296877507256924</id><published>2008-07-15T18:04:00.002+01:00</published><updated>2008-07-15T18:41:33.045+01:00</updated><title type='text'>Atomic file system</title><content type='html'>I had a discussion with a delegate about pros and cons of a journalling file systems. What is special about them, and what are their main characteristics - in other words, is it worth to upgrade to a journalling file system from a traditional predecessor.&lt;br /&gt;&lt;br /&gt;First of all, why would anybody be still working with a filesystem that is *not* journalling. Long gone the days where administrator would be prepared to do a full system &lt;span style="font-weight: bold;"&gt;fsck,&lt;/span&gt; just in case there is a filesystem inconsistency.&lt;br /&gt;&lt;br /&gt;The main characteristic of a journalling filesystem is the fact that it can maintain a log of all transactions. However, unlike "standard" system logs, which record transactions after the event, filesystem logging records intentions, before the operation is even attempted (although there are various methods of achieving this, and some - such as metadata-only journalling - are more efficient than others). Of course, there is penalty in logging: in both performance and disk space, so for that reason, some administrators switch the logging off. How crazy! This is the very feature that journalling filesystems excel at, yet for many admins the term journal, or log seems to be sufficiently off-putting to turn it off!&lt;br /&gt;&lt;br /&gt;Therefore, when describing a journalling filesystem for the first time to, I tend to use another term as the main characteristic: I introduce these filesystems as "atomic filesystems", rather than journalling. Atomic transaction means it either happens fully, completely and successfully, or it doesn't happen at all. One can provide numerous illustrations why data transfers, file and directory manipulation or database transactions should have the atomic nature.&lt;br /&gt;&lt;br /&gt;But the moral of the story is: once you turn the attention to the advantages of transaction atomicity, then the term journal is not that scary anymore...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6137296877507256924?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6137296877507256924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6137296877507256924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6137296877507256924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6137296877507256924'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/07/atomic-file-system.html' title='Atomic file system'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-2858536814621500013</id><published>2008-07-03T17:17:00.004+01:00</published><updated>2008-07-03T17:40:00.445+01:00</updated><title type='text'>Stallman on Microsoft on BBC site</title><content type='html'>&lt;span style="font-family: arial;font-size:100%;" &gt;Our NLUG (Northants Linux User Group) have been discussing the article, by Richard Stallman, published on the bbc site: &lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;a href="https://asl-tempex.interquad.com/exchweb/bin/redir.asp?URL=http://news.bbc.co.uk/1/hi/technology/7487060.stm" target="_blank"&gt;http://news.bbc.co.uk/1/hi/technology/7487060.stm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Richard Stallman is writing about. Having read it, I agree with most facts pointed out by Richard Stallman.&lt;br /&gt;&lt;br /&gt;However, I felt a bit uneasy reading it. I'm quite conversant with the terminology he is using, I'm familiar with technologies and legal events he is referring to. Would a typical reader be though? One of our group members said:  "&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;I think he is really preaching to the converted. We Open Source fanatics will agree; but the general public / PC users will probably not have a clue what he is talking about, they see the universality of Microsoft as an advantage.&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;"&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family: arial;"&gt;I wholeheartedly agree! Most PC users genuinely don't care about any of this.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;And I can't escape a thought that Stallman's powerful, albeit very eloquent, attack might end up being counter-productive as most people will not really understand what he is saying, instead, will interpret the article as a dogmatic expression of hate towards Microsoft.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-2858536814621500013?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/2858536814621500013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=2858536814621500013' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/2858536814621500013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/2858536814621500013'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/07/stallman-on-microsoft-on-bbc-site.html' title='Stallman on Microsoft on BBC site'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5749131919880143667</id><published>2008-06-21T23:36:00.004+01:00</published><updated>2008-06-21T23:53:21.370+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='star wars'/><category scheme='http://www.blogger.com/atom/ns#' term='telnet'/><category scheme='http://www.blogger.com/atom/ns#' term='clear text'/><title type='text'>Telnet is a no-no, but StarWars with Telnet?</title><content type='html'>For more than a decade now, we have been indoctrinating our delegates that using 'straight' &lt;span style="font-weight: bold;"&gt;telnet&lt;/span&gt; is insecure, it transmits streams of clear text, etc., etc.&lt;br /&gt;&lt;br /&gt;How can one deal with a delegate who in reply to that 'lecture' presents you with a telnet session to &lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;span style="font-family: arial;"&gt;towel.blinkenlights.nl&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;.   ;-)))&lt;br /&gt;&lt;br /&gt;Try it for yourself! What a feast of ASCII animation!&lt;br /&gt;&lt;br /&gt;It helps if you have seen the original version (and the more traditional screening method) of Star Wars before running this  &lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;telnet&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;span style="font-family: arial;"&gt;towel.blinkenlights.nl&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;  session.                  &lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5749131919880143667?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5749131919880143667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5749131919880143667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5749131919880143667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5749131919880143667'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/06/telnet-is-no-no-but-starwars-with.html' title='Telnet is a no-no, but StarWars with Telnet?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-8663458555732146842</id><published>2008-06-10T18:54:00.002+01:00</published><updated>2008-06-10T19:08:49.872+01:00</updated><title type='text'>apt-get behind a proxy in Ubuntu</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: arial;"&gt;How amazing! I've now been using my little Dell with Ubuntu exclusively  for many months, and I haven't realised until now that it didn't have the &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;font-size:100%;" &gt;ssh&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family: arial;"&gt; server installed!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;I used the client to connect out to various boxes all over the place, but clearly never tried to connect into it. Until now. Just tried from my HP-UX machine - failed. Once penny dropped what the reason for the "connection on port 22 refused" message was, quickly run the command to install it:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;sudo apt-get install openssh-server&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;only to realise, quite a while later, that it hang.&lt;br /&gt;&lt;br /&gt;Of course!  I'm sitting behind the classroom proxy, and although I configured Firefox, any application outside of it won't know. I could set a system wide parameter, but I settled for:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;export http_proxy=http://10.175.20.1:8080/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Run the &lt;span style="font-weight: bold;"&gt;apt-get &lt;/span&gt;again, and I'm in &lt;span style="font-weight: bold;"&gt;sshd&lt;/span&gt; business.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8663458555732146842?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8663458555732146842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8663458555732146842' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8663458555732146842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8663458555732146842'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/06/apt-get-behind-proxy-in-ubuntu.html' title='apt-get behind a proxy in Ubuntu'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-6365098562385067924</id><published>2008-06-10T18:15:00.002+01:00</published><updated>2008-06-10T18:41:40.457+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ip address'/><category scheme='http://www.blogger.com/atom/ns#' term='netconf'/><category scheme='http://www.blogger.com/atom/ns#' term='HP-UX'/><title type='text'>IP configuration in HP-UX B11.23</title><content type='html'>&lt;span style="font-family: arial;"&gt;Most of the start-up scripts in HP-UX are under the &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;/sbin&lt;/span&gt;&lt;span style="font-family: arial;"&gt; directory. You'll find the master scripts there, in the &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;init.d&lt;/span&gt;&lt;span style="font-family: arial;"&gt;, and you will find all run-level related directories, &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;rc0.d&lt;/span&gt;&lt;span style="font-family: arial;"&gt;, &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;rc1.d&lt;/span&gt;&lt;span style="font-family: arial;"&gt;, etc.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;The &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;/etc&lt;/span&gt;&lt;span style="font-family: arial;"&gt; does have related stuff, in the &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;/etc/rc.config.d&lt;/span&gt;&lt;span style="font-family: arial;"&gt;, but this is only service start-up directives. Each file, corresponding to a service, contains relevant parameter definition. Guess what a file called &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;netconf&lt;/span&gt;&lt;span style="font-family: arial;"&gt; might contain? All basic network interface card configuration is here...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;The file is rather large, with a lot of comments and explanation. I am after the 'meaningful' lines, those that contain the actual configuration. The following command line allows me to see those lines only, using &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;grep&lt;/span&gt;&lt;span style="font-family: arial;"&gt; to strip all comment lines, then &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;sed&lt;/span&gt;&lt;span style="font-family: arial;"&gt; to delete empty lines:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;grep  -v  '^#'  /etc/rc.config.d/netconf  |  sed  '/^$/d'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;There are nearly twenty lines in total, the important one that I'm going to change are:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;HOSTNAME="itanium.piecorner.com"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;IP_ADDRESS[0]=192.168.1.43&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;DHCP_ENABLE[0]=0 # was 1 for true&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ROUTE_GATEWAY=192.168.1.254&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;This is only for the time being, while I'm testing this in the classroom. Once the boxes go into the machine room, will have to revisit the settings.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Time for reboot and test.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6365098562385067924?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6365098562385067924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6365098562385067924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6365098562385067924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6365098562385067924'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/06/ip-configuration-in-hp-ux-b1123.html' title='IP configuration in HP-UX B11.23'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4566731950355272331</id><published>2008-06-10T17:30:00.003+01:00</published><updated>2008-06-10T17:48:19.606+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='run-levels'/><category scheme='http://www.blogger.com/atom/ns#' term='HP-UX'/><title type='text'>When troubleshooting - work methodically....</title><content type='html'>   	&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.3  (Linux)"&gt; 	 	 	&lt;style type="text/css"&gt; 	&lt;!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 	--&gt;&lt;/style&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;I am working on a brand new (albeit second hand) HP-UX (Itanium) machine. Never really configured it, all I've done with it was to interrogate it a bit, and I don't really know which known to me flavour of UNIX is going to be the closest to this one... So anything I do will require an element of investigation. All these wonderful HP-UX books that I've bought are sitting next to me, and no doubt will come handy at one point. In the meantime, let's play...&lt;/span&gt;   &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;First of all, the machine booted into run-level 3, and seems to be defaulting to DHCP, whereas I am sitting in a classroom with fixed private addresses. I need to assign a static address:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Courier 10 Pitch;"&gt;# &lt;b&gt;ifconfig lan0 192.168.1.43&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Pinging the gateway and other machines on the network is working the treat. However, some 30 seconds after the IP address change, the machine starts to emit horrible, ear-piercing beeps. As if some application or a server got terribly unhappy with the new address. Rebooted the box, and repeated the exercise a couple of times - a very predictable sequence of events was reproduced every time. Eventually, instead of rebooting, I &lt;/span&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;placed it into single user mode, for a quick look under the hood:&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Courier 10 Pitch;"&gt;# &lt;b&gt;init 1&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;First of all, find out how the &lt;span style="font-weight: bold;"&gt;rc&lt;/span&gt; (start-up and shutdown) stuff works: a look inside the &lt;span style="font-weight: bold;"&gt;inittab&lt;/span&gt; file is usually the best place to start:&lt;/span&gt;&lt;/p&gt;                &lt;p class="western" style="margin-bottom: 0cm;"&gt;# &lt;span style="font-family:Courier 10 Pitch;"&gt;&lt;b&gt;cat /etc/inittab&lt;/b&gt;&lt;br /&gt;init:3:initdefault&lt;br /&gt;...&lt;br /&gt;sqnc::wait:/sbin/rc  # system init&lt;br /&gt;... :respawn:...      # several of these and few more&lt;br /&gt;...&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;The master &lt;span style="font-weight: bold;"&gt;rc&lt;/span&gt; scripts are, as expected in the &lt;span style="font-weight: bold;"&gt;/etc/init.d&lt;/span&gt; directory. The run-level related links, however, are under the &lt;span style="font-weight: bold;"&gt;/sbin&lt;/span&gt; location (rather than &lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt; in other version of UNIX).&lt;/span&gt;&lt;/p&gt;   &lt;p class="western" style="margin-bottom: 0cm;"&gt;#&lt;span style="font-family:Courier 10 Pitch;"&gt; &lt;/span&gt;&lt;span style="font-family:Courier 10 Pitch;"&gt;&lt;b&gt;ls -ld rc*&lt;/b&gt;&lt;br /&gt;rc		rc.utils		rc0.d		rc1.d		rc3.d		rc4.d&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Most of the multiuser runlevel work is done in the &lt;span style="font-weight: bold;"&gt;rc2.d &lt;/span&gt;directory (i.e as part of going into run-level 2). Run-level 3 introduces some of the network server start-up:&lt;/span&gt;&lt;/p&gt;    &lt;p class="western" style="margin-bottom: 0cm;"&gt;# &lt;span style="font-family:Courier 10 Pitch;"&gt;&lt;b&gt;ls /sbin/rc3.d&lt;/b&gt;&lt;br /&gt;S100nfs.server	S823hpws_apache	S823hpws_webmin	S990dtlogin.rc&lt;br /&gt;S200tps.rc    	S823hpws_tomcat	S823hpws_xmltools	S999kwdbd&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;So the first test is to change the IP address in run-level 1, and see if anything gets upset:&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;# &lt;span style="font-family:Courier 10 Pitch;"&gt;&lt;b&gt;ifconfig lan0 192.168.1.43&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Pinging the gateway and other machines is working OK again, and no alarm is heard! OK, then, let's push it one notch further, and switch into the basic multi-user mode (run-level 2):&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;# &lt;span style="font-family:Courier 10 Pitch;"&gt;&lt;b&gt;init 2&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;DHCP was attempted, but the message scrolled off before I could read it - will need to look at log files. I am surprised to see NIS being started here, but pleased to see SSH server started - should be able to connect from my laptop soon. Mail daemon took several minutes before timing out..., so did SNMP HP-UNIX Network Management Subagent.&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Eventually, after excruciatingly long time &lt;check!&gt;, got the message "Transition to run-level 2 is complete". But the box is not talking to anybody else... The IP address reverted to the last known. My command line changes disappeared. Not sure if I am surprised, perhaps a bit. This was not a full blown reboot, my networking worked fine in run-level 1, so I didn't necessarily expected for it to go and come back again...&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;But, before looking closer at the configuration to see which script was responsible, I need to remember why I'm doing this: testing the impact of changing IP at the command line. I am now in run-level 2 – will the change in this state raise the alarm?&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;# &lt;span style="font-family:Courier 10 Pitch;"&gt;&lt;b&gt;ifconfig lan0 192.168.1.43&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;No problems, my ears are safe. So it must be something in run-level 3. Well, I don't actually need it at the moment, but when I'm ready to get the box on-line for our courses, I will need the NFS server running. That one is started in run-level 3, so I might as well sort it out now.&lt;/span&gt;&lt;/p&gt;   &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Courier 10 Pitch;"&gt;# &lt;b&gt;/sbin/rc3.d/S100nfs.server start&lt;/b&gt;&lt;br /&gt;starting NFS SERVER networking&lt;br /&gt;...&lt;/span&gt;&lt;/p&gt; &lt;p class="western" style="margin-bottom: 0cm;"&gt;    &lt;span style="font-family:Courier 10 Pitch;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;So, this worked, and I think this is all that we will need long term. However, I can't stop yet – my curiosity won't let me. I need to know what the horrible noise was about. &lt;/span&gt; &lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Remember what is in run-level 3?&lt;/span&gt;&lt;/p&gt;    &lt;p class="western" style="margin-bottom: 0cm;"&gt;# &lt;span style="font-family:Courier 10 Pitch;"&gt;&lt;b&gt;ls /sbin/rc3.d&lt;/b&gt;&lt;br /&gt;S100nfs.server	S823hpws_apache	S823hpws_webmin	S990dtlogin.rc&lt;br /&gt;S200tps.rc	S823hpws_tomcat	S823hpws_xmltools	S999kwdbd&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;So, the next: try &lt;span style="font-weight: bold;"&gt;tps.rc&lt;/span&gt;. This is what starts X server in HP-UX. &lt;/span&gt; &lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Courier 10 Pitch;"&gt;# &lt;b&gt;/sbin/rc3.d/S200tps.rc start&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;No problem. Somehow, I didn't think &lt;span style="font-weight: bold;"&gt;apache,&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;tomcat,&lt;/span&gt; etc would be at fault, so went straight for the desktop (GUI) login script:&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:Courier 10 Pitch;"&gt;# &lt;b&gt;/sbin/rc3.d/S990dtlogin.rc start&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Bingo!&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Quick – &lt;span style="font-weight: bold;"&gt;init 1&lt;/span&gt;!&lt;/span&gt;&lt;/p&gt;  &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;span style="font-family:DejaVu Sans, sans-serif;"&gt;Next – will need to find how to fix the IP address and see if it behaves without my command line changes...&lt;/span&gt;&lt;/p&gt; &lt;p class="western" style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4566731950355272331?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4566731950355272331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4566731950355272331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4566731950355272331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4566731950355272331'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/06/when-troubleshooting-work-methodically.html' title='When troubleshooting - work methodically....'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5415777834654136320</id><published>2008-06-10T14:46:00.002+01:00</published><updated>2008-06-10T14:54:51.716+01:00</updated><title type='text'>Get on with it...</title><content type='html'>I am so full of admiration for all those people who are maintaining their blogs regularly! How many times have I promised myself that I would be doing it properly, full of good intentions...&lt;br /&gt;&lt;br /&gt;It is a fantastic resource, and I have regularly looked back at some of my earlier entries to find a fix to a problem I had sorted months and months ago.&lt;br /&gt;&lt;br /&gt;However, my problem is that despite all these gadgets I keep buying and playing with, I'm still primarily a paper-log type person. I like writing in a book, and I don't like repeating myself. So I end up with bits and pieces in this blog, and bulk of my records in a physical, A4 (!) notebook.&lt;br /&gt;&lt;br /&gt;On the other hand, I am beginning to grow tired of carrying these A4 books with me. So much travel, and all these paper-based material is just not on anymore...&lt;br /&gt;&lt;br /&gt;So, my little on-line blog: all is forgiven, and I shall try my best and visit you more often ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5415777834654136320?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5415777834654136320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5415777834654136320' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5415777834654136320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5415777834654136320'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/06/get-on-with-it.html' title='Get on with it...'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4667798770661870741</id><published>2008-04-29T20:25:00.002+01:00</published><updated>2008-04-29T20:51:18.542+01:00</updated><title type='text'>Collating info on HP-UX B.11.23 on Itanium</title><content type='html'>Just got a new toy - a second hand Itanium 2 box. It came with XP 64-bit, but it is now running HP-UX B.11.23. Installation went smoothly; this being the first time I've done this particular combination, I allowed it to run with defaults (which were quite good, especially the partitioning).&lt;br /&gt;&lt;br /&gt;Reboot, and the machine is up and running. How disappointing, though - the CDE wouldn't start, complaining about the lack of screens. Not sure at this stage if it is X11R6 configuration, hardware problem or perhaps driver issue! Will google for anything obvious (like unsupported card) later.&lt;br /&gt;&lt;br /&gt;In the meantime, decided to brush up on the HP-UX system interrogation tools.&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;uname -a&lt;/span&gt;&lt;br /&gt;HP-UX itahpux B.11.23 U ia64 0376224781 unlimited-user license&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;machinfo&lt;/span&gt;&lt;br /&gt;CPU info:&lt;br /&gt;   Number of CPUs = 1&lt;br /&gt;   Clock speed = 1500 MHz&lt;br /&gt;   CPUID registers&lt;br /&gt;      vendor information =       "GenuineIntel"&lt;br /&gt;      processor serial number =  0x0000000000000000&lt;br /&gt;      processor version info =   0x000000001f010504&lt;br /&gt;         architecture revision:       0&lt;br /&gt;         processor family:           31   Intel(R) Itanium 2 Family Processors&lt;br /&gt;         processor model:             1   Intel(R) Itanium 2 processor&lt;br /&gt;         processor revision:          5   stepping B1&lt;br /&gt;         largest CPUID reg:           4&lt;br /&gt;      processor capabilities =   0x0000000000000001&lt;br /&gt;         implements long branch:      1&lt;br /&gt;   Bus features&lt;br /&gt;      implemented =  0xbdf0000060000000&lt;br /&gt;      selected    =  0x0000000040000000&lt;br /&gt;         Bus Lock Signal masked&lt;br /&gt;&lt;br /&gt;Cache info:&lt;br /&gt;   L1 Instruction: size =   16 KB, associativity = 4&lt;br /&gt;   L1 Data:        size =   16 KB, associativity = 4&lt;br /&gt;   L2 Unified:     size =  256 KB, associativity = 8&lt;br /&gt;   L3 Unified:     size = 6144 KB, associativity = 24&lt;br /&gt;&lt;br /&gt;Memory = 1524 MB (1.488281 GB)&lt;br /&gt;&lt;br /&gt;Firmware info:&lt;br /&gt;   Firmware revision = 02.31                                                          &lt;br /&gt;   FP SWA driver revision: 1.18&lt;br /&gt;   IPMI is supported on this system.&lt;br /&gt;   BMC version: v01.52&lt;br /&gt;&lt;br /&gt;Platform info:&lt;br /&gt;   model string =          "ia64 hp workstation zx2000"&lt;br /&gt;   machine id number =     166cbc0d-e4c5-11d6-8091-7d5ed3512273&lt;br /&gt;   machine serial number = TW23200111&lt;br /&gt;&lt;br /&gt;OS info:&lt;br /&gt;   sysname  = HP-UX&lt;br /&gt;   nodename = itahpux&lt;br /&gt;   release  = B.11.23&lt;br /&gt;   version  = U (unlimited-user license)&lt;br /&gt;   machine  = ia64&lt;br /&gt;   idnumber = 0376224781&lt;br /&gt;   vmunix _release_version:              &lt;br /&gt;@(#) $Revision: vmunix:    B11.23_LR FLAVOR=perf Fri Aug 29 22:35:38 PDT 2003 $&lt;br /&gt;#&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;ioscan -k&lt;/span&gt;&lt;br /&gt;H/W Path       Class                        Description&lt;br /&gt;=======================================================&lt;br /&gt;               root                        &lt;br /&gt;0              ioa                          System Bus Adapter (1229)&lt;br /&gt;0/0                ba                       Local AGP Bus Adapter (122e)&lt;br /&gt;0/0/0/0                  graphics           AGP Display (10de025b)&lt;br /&gt;0/1                ba                       Local PCI-X Bus Adapter (122e)&lt;br /&gt;0/2                ba                       Local PCI-X Bus Adapter (122e)&lt;br /&gt;0/2/1/0                  usb                NEC USB Interface&lt;br /&gt;0/2/1/0.1                   usbhub          USB Root Hub&lt;br /&gt;0/2/1/0.1.2                    usbhid       USB HID Mouse(0)&lt;br /&gt;0/2/1/1                  usb                NEC USB Interface&lt;br /&gt;0/2/1/1.1                   usbhub          USB Root Hub&lt;br /&gt;0/2/1/1.1.2                    usbhid       USB HID Kbd(1)&lt;br /&gt;0/2/1/2                  usb                NEC USB Interface&lt;br /&gt;0/2/2/0                  sideba             CMD IDE controller&lt;br /&gt;0/2/2/0.0                   ext_bus         IDE Primary Channel&lt;br /&gt;0/2/2/0.0.7                    target      &lt;br /&gt;0/2/2/0.0.7.0                     ctl       Initiator&lt;br /&gt;0/2/2/0.1                   ext_bus         IDE Secondary Channel&lt;br /&gt;0/2/2/0.1.0                    target      &lt;br /&gt;0/2/2/0.1.0.0                     disk      HL-DT-STDVD-ROM GDR8160B&lt;br /&gt;0/2/2/0.1.7                    target      &lt;br /&gt;0/2/2/0.1.7.0                     ctl       Initiator&lt;br /&gt;0/2/3/0                  lan                HP PCI 1000Base-T Core&lt;br /&gt;0/2/4/0                  audio              PCI Audio&lt;br /&gt;0/2/4/1                  audio              Unimplemented Game Port&lt;br /&gt;0/3                ba                       Local PCI-X Bus Adapter (122e)&lt;br /&gt;0/3/1/0                  ext_bus            SCSI C1010 Ultra160 Wide LVD&lt;br /&gt;0/3/1/0.1                   target         &lt;br /&gt;0/3/1/0.1.0                    disk         FUJITSU MAN3735MP&lt;br /&gt;0/3/1/0.7                   target         &lt;br /&gt;0/3/1/0.7.0                    ctl          Initiator&lt;br /&gt;120            processor                    Processor&lt;br /&gt;250            ba                           Core I/O Adapter&lt;br /&gt;250/0              ipmi                     IPMI Controller&lt;br /&gt;250/1              tty                      Built-in RS232C&lt;br /&gt;250/2              tty                      Built-in RS232C&lt;br /&gt;250/3              acpi_node                Acpi Hardware&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;lanscan&lt;/span&gt;&lt;br /&gt;Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI&lt;br /&gt;Path     Address        In# State NamePPA        ID  Type      Support Mjr#&lt;br /&gt;0/2/3/0  0x00306E380A81 0   UP    lan0 snap0     1   ETHER     Yes     119&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;bdf     &lt;/span&gt;&lt;br /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;br /&gt;/dev/vg00/lvol3     212992  160296   52344   75% /&lt;br /&gt;/dev/vg00/lvol1     311296   61696  247696   20% /stand&lt;br /&gt;/dev/vg00/lvol8    3670016   88608 3554104    2% /var&lt;br /&gt;/dev/vg00/lvol7    3768320 2291768 1465048   61% /usr&lt;br /&gt;/dev/vg00/lvol4     212992    8480  202920    4% /tmp&lt;br /&gt;/dev/vg00/lvol6    2572288 1576840  987696   61% /opt&lt;br /&gt;/dev/vg00/lvol5      32768    8472   24112   26% /home&lt;br /&gt;&lt;br /&gt;Could carry on, but this should be sufficient to record the basic configuration.&lt;br /&gt;&lt;br /&gt;Most importantly:&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;ioscan -funC graphics      &lt;/span&gt;&lt;br /&gt;Class      I  H/W Path  Driver    S/W State   H/W Type     Description&lt;br /&gt;=======================================================================&lt;br /&gt;graphics   0  0/0/0/0   gvid_core CLAIMED     INTERFACE    AGP Display (10de025b)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4667798770661870741?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4667798770661870741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4667798770661870741' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4667798770661870741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4667798770661870741'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/04/collating-info-on-hp-ux-b1123-on.html' title='Collating info on HP-UX B.11.23 on Itanium'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-573396818895610028</id><published>2008-04-14T09:49:00.002+01:00</published><updated>2008-04-14T09:54:10.884+01:00</updated><title type='text'>Ubuntu on XPS M1330 - Installing Citrix</title><content type='html'>Last time I tried Citrix on Ubuntu, it failed, reporting the lack of OpenMotif libraries. Having researched the dependency, I now realise that I need to install libmotif3 first. With the system up to date, and all repositories set up, I can now do it:&lt;br /&gt;&lt;br /&gt;root@cherry:~# &lt;span style="font-weight: bold;"&gt;apt-get install libmotif3&lt;/span&gt;&lt;br /&gt;Reading package lists... Done&lt;br /&gt;Building dependency tree      &lt;br /&gt;Reading state information... Done&lt;br /&gt;The following NEW packages will be installed&lt;br /&gt;  libmotif3&lt;br /&gt;0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.&lt;br /&gt;Need to get 1283kB of archives.&lt;br /&gt;After unpacking 3129kB of additional disk space will be used.&lt;br /&gt;Get: 1 http://gb.archive.ubuntu.com gutsy/multiverse libmotif3 2.2.3-2 [1283kB]&lt;br /&gt;Fetched 1283kB in 22s (57.8kB/s)                                              &lt;br /&gt;Selecting previously deselected package libmotif3.&lt;br /&gt;(Reading database ... 88954 files and directories currently installed.)&lt;br /&gt;Unpacking libmotif3 (from .../libmotif3_2.2.3-2_i386.deb) ...&lt;br /&gt;Setting up libmotif3 (2.2.3-2) ...&lt;br /&gt;Processing triggers for libc6 ...&lt;br /&gt;ldconfig deferred processing now taking place&lt;br /&gt;root@cherry:~# &lt;span style="font-weight: bold;"&gt;exit&lt;/span&gt;&lt;br /&gt;alina@cherry:~$&lt;br /&gt;&lt;br /&gt;Now for Citrix: go to Citrix download site: http://www.citrix.com/site/ss/downloads/ and follow the links for "Clients" then "Linux". Identify the tarball (.tar.gz file) for your architecture and download it. Unless you have modified the default browser settings, the citrix client should have landed on your Desktop. By the way, notice that the following steps are done as ordinary user. That means that I am talking here about the Desktop of the user you are logged on as, rather than the desktop of the user "root".&lt;br /&gt;&lt;br /&gt;alina@cherry:~$ &lt;span style="font-weight: bold;"&gt;cd Desktop&lt;/span&gt;&lt;br /&gt;alina@cherry:~/Desktop$ t&lt;span style="font-weight: bold;"&gt;ar zxvf en.linuxx86.tar.gz &lt;/span&gt;&lt;br /&gt;./&lt;br /&gt;./PkgId&lt;br /&gt;./install.txt&lt;br /&gt;./eula.txt&lt;br /&gt;./readme.txt&lt;br /&gt;./setupwfc&lt;br /&gt;./linuxx86/&lt;br /&gt;./linuxx86/hinst&lt;br /&gt;./linuxx86/linuxx86.cor/&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;The listing above has been concatenated, there should have been a lot more files whizzing in front of your eyes!&lt;br /&gt;&lt;br /&gt;In the current location (wherever you were when you unpacked the tarball), there should be the setup script (setu&lt;br /&gt;pwfc). Run it, and follow the prompts. If you accept the defaults (wise move!) then the whole process is relatively painless:&lt;br /&gt;&lt;br /&gt;alina@cherry:~/Desktop$ &lt;span style="font-weight: bold;"&gt;./setupwfc&lt;/span&gt;&lt;br /&gt;Citrix Presentation Server Client 10.6 setup.&lt;br /&gt;&lt;br /&gt;Copyright 1996-2007 Citrix Systems, Inc. All rights reserved.&lt;br /&gt;&lt;br /&gt;Citrix, Independent Computing Architecture (ICA), Program Neighborhood,&lt;br /&gt;MetaFrame, and MetaFrame XP are registered trademarks and&lt;br /&gt;Citrix Presentation Server, Citrix Access Suite, and SpeedScreen are&lt;br /&gt;trademarks of Citrix Systems, Inc. in the United States and other countries.&lt;br /&gt;&lt;br /&gt;Microsoft, MS, MS-DOS, Outlook, Windows, Windows NT, and BackOffice are&lt;br /&gt;either registered trademarks or trademarks of Microsoft Corporation in&lt;br /&gt;the United States and other countries.&lt;br /&gt;&lt;br /&gt;All other Trade Names referred to are the Servicemark, Trademark,&lt;br /&gt;or Registered Trademark of the respective manufacturers.&lt;br /&gt;&lt;br /&gt;User install mode.&lt;br /&gt;&lt;br /&gt;Select a setup option:&lt;br /&gt;&lt;br /&gt; 1. Install Citrix Presentation Server Client 10.6&lt;br /&gt; 2. Remove Citrix Presentation Server Client 10.6&lt;br /&gt; 3. Quit Citrix Presentation Server Client 10.6 setup&lt;br /&gt;&lt;br /&gt;Enter option number 1-3 [1]: &lt;span style="font-weight: bold;"&gt;1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please enter the directory in which Citrix Presentation Server Client is to be installed.&lt;br /&gt;[default /home/alina/ICAClient/linuxx86]&lt;br /&gt;or type "quit" to abandon the installation:&lt;br /&gt;&lt;br /&gt;The parent directory /home/alina/ICAClient does not exist.&lt;br /&gt;Do you want it to be created? [default y]:&lt;br /&gt;&lt;br /&gt;You have chosen to install Citrix Presentation Server Client 10.6 in /home/alina/ICAClient/linuxx86.&lt;br /&gt;&lt;br /&gt;Proceed with installation? [default n]: &lt;span style="font-weight: bold;"&gt;y&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CITRIX(R) LICENSE AGREEMENT&lt;br /&gt;&lt;br /&gt;Use of this component is subject to the Citrix license covering the&lt;br /&gt;Citrix product(s) with which you will be using this component. This&lt;br /&gt;component is only licensed for use with such Citrix product(s).&lt;br /&gt;&lt;br /&gt;CTX_code EP_T_A34320&lt;br /&gt;&lt;br /&gt;Select an option:&lt;br /&gt;&lt;br /&gt; 1. I accept&lt;br /&gt; 2. I do not accept&lt;br /&gt;&lt;br /&gt;Enter option number 1-2 [2]: &lt;span style="font-weight: bold;"&gt;1&lt;/span&gt;&lt;br /&gt;Installation proceeding...&lt;br /&gt;&lt;br /&gt;Checking available disk space ...&lt;br /&gt;&lt;br /&gt;        Disk space available 117588256 K&lt;br /&gt;        Disk space required 4961 K&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Continuing ...&lt;br /&gt;Creating directory /home/alina/ICAClient/linuxx86&lt;br /&gt;Core package...&lt;br /&gt;Setting file permissions...&lt;br /&gt;Integrating with browsers...&lt;br /&gt;&lt;br /&gt;Integration complete.&lt;br /&gt;Do you want to integrate the Citrix client with KDE and GNOME? [default y]:&lt;br /&gt;&lt;br /&gt;Select a setup option:&lt;br /&gt;&lt;br /&gt; 1. Install Citrix Presentation Server Client 10.6&lt;br /&gt; 2. Remove Citrix Presentation Server Client 10.6&lt;br /&gt; 3. Quit Citrix Presentation Server Client 10.6 setup&lt;br /&gt;&lt;br /&gt;Enter option number 1-3 [1]: &lt;span style="font-weight: bold;"&gt;3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This *should* be it. Oh no, not yet! When I downloaded Citric client for RHEL (Red Hat Enterprise Linux), I was able to connect to the server at this point. Here, an essential SSL certificate was missing.&lt;br /&gt;&lt;br /&gt;So, one more preparation step, to create a file under the keystore directory, that will store the certificate for SSL Citrix.&lt;br /&gt;&lt;br /&gt;Edit a (new) file, called: &lt;span style="font-weight: bold;"&gt;~/ICAClient/linuxx86/keystore/cacerts/UTN-USERFirst-Hardware.crt &lt;/span&gt;and paste into it the following lines (including those with BEGIN and END):&lt;br /&gt;&lt;br /&gt;-----BEGIN CERTIFICATE-----&lt;br /&gt;MIIEdDCCA1ygAwIBAgIQRL4Mi1AAJLQR0zYq/mUK/TANBgkqhkiG9w0BAQUFADCB&lt;br /&gt;lzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug&lt;br /&gt;Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho&lt;br /&gt;dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3Qt&lt;br /&gt;SGFyZHdhcmUwHhcNOTkwNzA5MTgxMDQyWhcNMTkwNzA5MTgxOTIyWjCBlzELMAkG&lt;br /&gt;A1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEe&lt;br /&gt;MBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8v&lt;br /&gt;d3d3LnVzZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3QtSGFyZHdh&lt;br /&gt;cmUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx98M4P7Sof885glFn&lt;br /&gt;0G2f0v9Y8+efK+wNiVSZuTiZFvfgIXlIwrthdBKWHTxqctU8EGc6Oe0rE81m65UJ&lt;br /&gt;M6Rsl7HoxuzBdXmcRl6Nq9Bq/bkqVRcQVLMZ8Jr28bFdtqdt++BxF2uiiPsA3/4a&lt;br /&gt;MXcMmgF6sTLjKwEHOG7DpV4jvEWbe1DByTCP2+UretNb+zNAHqDVmBe8i4fDidNd&lt;br /&gt;oI6yqqr2jmmIBsX6iSHzCJ1pLgkzmykNRg+MzEk0sGlRvfkGzWitZky8PqxhvQqI&lt;br /&gt;DsjfPe58BEydCl5rkdbux+0ojatNh4lz0G6k0B4WixThdkQDf2Os5M1JnMWS9Ksy&lt;br /&gt;oUhbAgMBAAGjgbkwgbYwCwYDVR0PBAQDAgHGMA8GA1UdEwEB/wQFMAMBAf8wHQYD&lt;br /&gt;VR0OBBYEFKFyXyYbKJhDlV0HN9WFlp1L0sNFMEQGA1UdHwQ9MDswOaA3oDWGM2h0&lt;br /&gt;dHA6Ly9jcmwudXNlcnRydXN0LmNvbS9VVE4tVVNFUkZpcnN0LUhhcmR3YXJlLmNy&lt;br /&gt;bDAxBgNVHSUEKjAoBggrBgEFBQcDAQYIKwYBBQUHAwUGCCsGAQUFBwMGBggrBgEF&lt;br /&gt;BQcDBzANBgkqhkiG9w0BAQUFAAOCAQEARxkP3nTGmZev/K0oXnWO6y1n7k57K9cM&lt;br /&gt;//bey1WiCuFMVGWTYGufEpytXoMs61quwOQt9ABjHbjAbPLPSbtNk28Gpgoiskli&lt;br /&gt;CE7/yMgUsogWXecB5BKV5UU0s4tpvc+0hY91UZ59Ojg6FEgSxvunOxqNDYJAB+gE&lt;br /&gt;CJChicsZUN/KHAG8HQQZexB2lzvukJDKxA4fFm517zP4029bHpbj4HR3dHuKom4t&lt;br /&gt;3XbWOTCC8KucUvIqx69JXn7HaOWCgchqJ/kniCrVWFCVH/A7HFe7fRQ5YiuayZSS&lt;br /&gt;KqMiDP+JJn1fIytH1xUdqWqeUQ0qUZ6B+dQ7XnASfxAynB67nfhmqA==&lt;br /&gt;-----END CERTIFICATE-----&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-573396818895610028?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/573396818895610028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=573396818895610028' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/573396818895610028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/573396818895610028'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/04/ubuntu-on-xps-m1330-installing-citrix.html' title='Ubuntu on XPS M1330 - Installing Citrix'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5401099106613461504</id><published>2008-04-14T09:42:00.003+01:00</published><updated>2008-04-14T09:49:03.511+01:00</updated><title type='text'>Ubuntu on XPS M1330 - finishing touches (1)</title><content type='html'>&lt;span style="font-family: arial;"&gt;Our intranet is getting more and more comprehensive, and it is becoming more difficult to function without being able to access it. So, although I have resisted it for a long time, I have now accepted that I should be using Citric client, considering that we have a proper and well administered Citrix server farm setup. I have tested it in the past, on that occasion it was RHEL 4. Citrix client (rpm) for Linux worked first time, and I was talking to the intranet within minutes. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Tried the same on Ubuntu, and the first obstacle was the fact that RPMs and Ubuntu are not exactly best friends. Not to worry, there was a tarball (.tar.gz) file. Downloaded it, unpacked it and run the setup script - only to find that some essential libraries were missing. Well, this is what puts people off Linux - having to resolve these kind of dependencies! It transpires that Citrix Client management software requires OpenMotif installed. OpenMotif comes as one of the "x" libraries, and it is missing...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Before downloading the missing libraries (and as I am working on a new Ubuntu install - on a clean machine - without too many experiments) I decided to first update all the software, using Ubuntu's apt-get program. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Quick check for repositories revealed that none have been configured during the install. Could use the front end tool called Synaptic, but it's quicker to hack the configuration file. But first, I time to become the super-user:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;alina@cherry:~$ &lt;span style="font-weight: bold;"&gt;sudo su - root&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;[sudo] password for alina:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Now navigate into the 'apt' directory: the default configuration template is there, it's the sources.list file, containing software repositories; it just needs tweaking. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Edit the sources.list file, to uncomment selected debian/ubuntu software repositories. I'm new to Ubuntu, and not entirely sure which repositories are best, so initially I chose the main Ubuntu sites, as well as some of the sites (such as universe and multiverse) mentioned a lot on the web.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;root@cherry:~# &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;cd /etc/apt&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;root@cherry:~# &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;grep '^deb' sources.list&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;deb http://gb.archive.ubuntu.com/ubuntu/ gutsy main restricted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy main restricted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb http://gb.archive.ubuntu.com/ubuntu/ gutsy universe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy universe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates universe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates universe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb http://gb.archive.ubuntu.com/ubuntu/ gutsy multiverse&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy multiverse&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Before &lt;span style="font-weight: bold;"&gt;apt-get&lt;/span&gt; can be run to install anything, the new configuration needs to be kicked into action. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Run:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;br /&gt;root@cherry:~# &lt;span style="font-weight: bold;"&gt;apt-get update&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;This will have synchronised your local apt-get program with the content and availability of the repositories declared in the configuration file. On my machine, I got the following output:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;"&gt;Get: 1 http://gb.archive.ubuntu.com gutsy Release.gpg [191B] &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 2 http://gb.archive.ubuntu.com gutsy/main Translation-en_GB [21.3kB]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 3 http://gb.archive.ubuntu.com gutsy/restricted Translation-en_GB [2395B]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 4 http://gb.archive.ubuntu.com gutsy/universe Translation-en_GB [4405B]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 5 http://gb.archive.ubuntu.com gutsy/multiverse Translation-en_GB [8133B]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 6 http://gb.archive.ubuntu.com gutsy-updates Release.gpg [191B]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Ign http://gb.archive.ubuntu.com gutsy-updates/main Translation-en_GB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Ign http://gb.archive.ubuntu.com gutsy-updates/restricted Translation-en_GB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Ign http://gb.archive.ubuntu.com gutsy-updates/universe Translation-en_GB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Ign http://gb.archive.ubuntu.com gutsy-updates/multiverse Translation-en_GB&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 7 http://gb.archive.ubuntu.com gutsy Release [65.9kB]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 8 http://gb.archive.ubuntu.com gutsy-updates Release [58.5kB]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 9 http://gb.archive.ubuntu.com gutsy/main Packages [1075kB]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 10 http://gb.archive.ubuntu.com gutsy/restricted Packages [7664B]                              &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 11 http://gb.archive.ubuntu.com gutsy/main Sources [306kB]                                     &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 12 http://gb.archive.ubuntu.com gutsy/restricted Sources [2120B]                               &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 13 http://gb.archive.ubuntu.com gutsy/universe Packages [4065kB]                               &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 14 http://gb.archive.ubuntu.com gutsy/universe Sources [1226kB]                                &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 15 http://gb.archive.ubuntu.com gutsy/multiverse Packages [158kB]                              &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 16 http://gb.archive.ubuntu.com gutsy/multiverse Sources [56.8kB]                              &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 17 http://gb.archive.ubuntu.com gutsy-updates/main Packages [105kB]                            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 18 http://gb.archive.ubuntu.com gutsy-updates/restricted Packages [4263B]                      &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 19 http://gb.archive.ubuntu.com gutsy-updates/main Sources [27.5kB]                            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 20 http://gb.archive.ubuntu.com gutsy-updates/restricted Sources [937B]                        &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 21 http://gb.archive.ubuntu.com gutsy-updates/universe Packages [39.7kB]                       &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 22 http://gb.archive.ubuntu.com gutsy-updates/universe Sources [7563B]                         &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 23 http://gb.archive.ubuntu.com gutsy-updates/multiverse Packages [9215B]                      &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Get: 24 http://gb.archive.ubuntu.com gutsy-updates/multiverse Sources [1702B]                       &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Fetched 7254kB in 2m29s (48.4kB/s)                 &lt;/span&gt;                                   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Unavailable sites will be marked as "Ign", for "ignore". My update manager immediately reported "You can install 142 updates". At the risk that I might forget what the whole exercise was about (get the system to the state where I can install Citrix client to talk to my company's intranet from home), I decided to run the updates. After all, my install CD is rather dated now, and a lot of reported bugs may have been fixed by now. Generally speaking, a blank 'update all' approach may not be the best, but I haven't got the intimate Gutsy knowledge to make a judgement. So, a click on the "Install Updates" at the bottom of the recommended updates list.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;[The time is: 12:26. Estimate for the update download time was 1h5m - on my extremely slow 60kB/s connection. The download actually finished at 13:37 - not bad, just 6 minutes out on the estimate...]&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5401099106613461504?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5401099106613461504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5401099106613461504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5401099106613461504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5401099106613461504'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/04/ubuntu-on-xps-m1330-finishing-touches-1.html' title='Ubuntu on XPS M1330 - finishing touches (1)'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-3864017343378269578</id><published>2008-03-07T20:23:00.002Z</published><updated>2008-03-07T20:26:42.974Z</updated><title type='text'>The answer is 42</title><content type='html'>But what is the question?&lt;br /&gt;&lt;br /&gt;Not sure why the discussion http://news.bbc.co.uk/1/hi/magazine/7283155.stm now? But fun reading contributions...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-3864017343378269578?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/3864017343378269578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=3864017343378269578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3864017343378269578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3864017343378269578'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/03/answer-is-42.html' title='The answer is 42'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-2087841184371714099</id><published>2008-02-07T10:30:00.000Z</published><updated>2008-02-07T10:54:43.710Z</updated><title type='text'>CentOS 5 on SATA drives</title><content type='html'>Making SATA drives work in Linux still seems a bit of a dark art.&lt;br /&gt;&lt;br /&gt;I had a failure yesterday, with CentOS 5 refusing to even enter rescue mode or install procedure, asking for the driver.&lt;br /&gt;&lt;br /&gt;Many suggestions are posted on various sites, most of them indicating that changing BIOS settings from SATA to IDE, or even to RAID should allow to get past the problem. None of these worked for me. What did work, was giving all-generic-ide parameter to the kernel.&lt;br /&gt;&lt;br /&gt;So, to entering rescue mode (one goes there usually to fix bootloader, such as grub, configuration problems), place you first installation CD (od DVD) in the drive, start the machine, and wait for the boot: prompt. Then type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;boot: &lt;span style="font-weight: bold;"&gt;linux rescue all-generic-ide&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For fresh installs, just start up the machine just as described above, except that you will enter:&lt;br /&gt;&lt;br /&gt;boot: &lt;span style="font-weight: bold; font-family: courier new;"&gt;linux all-generic-ide&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-2087841184371714099?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/2087841184371714099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=2087841184371714099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/2087841184371714099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/2087841184371714099'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/02/centos-5-on-sata-drives.html' title='CentOS 5 on SATA drives'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4081548245186461988</id><published>2008-02-05T16:54:00.001Z</published><updated>2008-02-05T18:12:28.299Z</updated><title type='text'>Making the best of VESA drivers in CentOS 5</title><content type='html'>&lt;span style=";font-family:arial;font-size:85%;"  &gt;T&lt;span style="font-family:verdana;"&gt;eaching in Edinburgh, on machines that flatly refuse to switch between CLI and GUI. Going into any of the CLI (CTRL_ALT_F1 - F6) is no problem, but restarting the X server or switching back from CLI gives random, hardly ever successful results.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Last week a couple of colleagues (Donald and Gary) were saying about dropping resolution, this week one of our techies (Stuart) found advice about vesa. Neither approach worked on its own, but put them together (albeit in a slightly modified way) and all is well.&lt;/span&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;&lt;br /&gt;&lt;br /&gt;If your GUI is working&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;Select:&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;System&lt;/span&gt; --&gt; &lt;span style="font-weight: bold;"&gt;Administratio&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;n&lt;/span&gt; --&gt; &lt;span style="font-weight: bold;"&gt;Display&lt;/span&gt; (may need to put root's password if logged in as ordinary user)&lt;br /&gt;Select Hardware tab&lt;br /&gt;Configure "&lt;span style="font-weight: bold;"&gt;Monitor Type&lt;/span&gt;" to Generic LCD --&gt; LCD Panel 1024 x 768&lt;br /&gt;Configure "&lt;span style="font-weight: bold;"&gt;Video Card&lt;/span&gt;" to "vesa - Generic VESA-compliant video cards"&lt;br /&gt;Do the OK three times.&lt;br /&gt;&lt;br /&gt;I always check the config on RHEL/CentOS before restarting the GUI. Either look inside the configuration file (&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;, attached below) or check the System--&gt;Administration--&gt;Display--&gt;Hardware settings (note that the vesa driver will be described as "Unknown video card").&lt;br /&gt;&lt;br /&gt;To restart the GUI press &lt;span style="font-weight: bold;"&gt;CTRL-ALT-Backspace&lt;/span&gt; - all should be well.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; If your GUI is NOT working&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the GUI is broken to the point you can't use the method above, you can hack the file directly, or enter the configuration screen from the command line. For that, log in as root on CLI (enter CLI with CRTL-ALT-F1), then enter:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt; # system-config-display&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; The system will use basic GUI settings to 'draw' the menus. Use the solution as provided above to complete the steps.&lt;br /&gt;&lt;br /&gt;To start the GUI, the cleanest method I found is to 'recycle' runlevels: change into runlevel 3, then into runlevel 5.&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;init 3&lt;/span&gt;&lt;br /&gt;Several messages will be printed, when you see one fron "anaconda" hit enter. That will re-print the prompt. Now type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; # init 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;XWindows should start successfully!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;===============================================&lt;br /&gt;sample  &lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf &lt;/span&gt;using defaults for both the server and the monitor&lt;br /&gt;===============================================&lt;br /&gt;Section "ServerLayout"&lt;br /&gt;       Identifier     "single head configuration"&lt;br /&gt;       Screen      0  "Screen0" 0 0&lt;br /&gt;       InputDevice    "Keyboard0" "CoreKeyboard"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;       Identifier  "Keyboard0"&lt;br /&gt;       Driver      "kbd"&lt;br /&gt;       Option      "XkbModel" "pc105"&lt;br /&gt;       Option      "XkbLayout" "gb"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt;&lt;br /&gt;### Comment all HorizSync and VertSync values to use DDC:&lt;br /&gt;### Comment all HorizSync and VertSync values to use DDC:&lt;br /&gt;       Identifier   "Monitor0"&lt;br /&gt;       ModelName    "LCD Panel 1024x768"&lt;br /&gt;### Comment all HorizSync and VertSync values to use DDC:&lt;br /&gt;       HorizSync    31.5 - 48.5&lt;br /&gt;       VertRefresh  40.0 - 70.0&lt;br /&gt;       Option      "dpms"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Device"&lt;br /&gt;       Identifier  "Videocard0"&lt;br /&gt;       Driver      "vesa"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Screen"&lt;br /&gt;       Identifier "Screen0"&lt;br /&gt;       Device     "Videocard0"&lt;br /&gt;       Monitor    "Monitor0"&lt;br /&gt;       DefaultDepth     24&lt;br /&gt;       SubSection "Display"&lt;br /&gt;               Viewport   0 0&lt;br /&gt;               Depth     24&lt;br /&gt;               Modes    "1024x768" "800x600" "640x480"&lt;br /&gt;       EndSubSection&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4081548245186461988?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4081548245186461988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4081548245186461988' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4081548245186461988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4081548245186461988'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/02/making-best-of-vesa-drivers-in-centos-5_05.html' title='Making the best of VESA drivers in CentOS 5'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-149333657074449372</id><published>2008-02-05T16:54:00.000Z</published><updated>2008-02-05T17:10:54.142Z</updated><title type='text'>Making the best of VESA drivers in CentOS 5</title><content type='html'>&lt;span style="font-family: arial;font-size:85%;" &gt;T&lt;span style="font-family: verdana;"&gt;eaching in Edinburgh, on machines that flatly refuse to switch between CLI and GUI. Going into any of the CLI (CTRL_ALT_F1 - F6) is no problem, but restarting the X server or switching back from CLI gives random, hardly ever successful results.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Last week a couple of colleagues (Donald and Gary) were saying about dropping resolution, this week one of our techies (Stuart) found advice about vesa. Neither approach worked on its own, but put them together (albeit in a slightly modified way) and all is well.&lt;/span&gt;&lt;span style="font-family: verdana; font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;If your GUI is working&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;&lt;br /&gt;Select:&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;System&lt;/span&gt; --&gt; &lt;span style="font-weight: bold;"&gt;Administratio&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;n&lt;/span&gt; --&gt; &lt;span style="font-weight: bold;"&gt;Display&lt;/span&gt; (may need to put root's password if logged in as ordinary user)&lt;br /&gt;Select Hardware tab&lt;br /&gt;Configure "&lt;span style="font-weight: bold;"&gt;Monitor Type&lt;/span&gt;" to Generic LCD --&gt; LCD Panel 1024 x 768&lt;br /&gt;Configure "&lt;span style="font-weight: bold;"&gt;Video Card&lt;/span&gt;" to "vesa - Generic VESA-compliant video cards"&lt;br /&gt;Do the OK three times.&lt;br /&gt;&lt;br /&gt;I always check the config on RHEL/CentOS before restarting the GUI. Either look inside the configuration file (&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;, attached below) or check the System--&gt;Administration--&gt;Display--&gt;Hardware settings (note that the vesa driver will be described as "Unknown video card").&lt;br /&gt;&lt;br /&gt;To restart the GUI press &lt;span style="font-weight: bold;"&gt;CTRL-ALT-Backspace&lt;/span&gt; - all should be well.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; If your GUI is NOT working&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the GUI is broken to the point you can't use the method above, you can hack the file directly, or enter the configuration screen from the command line. For that, log in as root on CLI (enter CLI with CRTL-ALT-F1), then enter:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt; # system-config-display&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; The system will use basic GUI settings to 'draw' the menus. Use the solution as provided above to complete the steps.&lt;br /&gt;&lt;br /&gt;To start the GUI, the cleanest method I found is to 'recycle' runlevels: change into runlevel 3, then into runlevel 5.&lt;br /&gt;&lt;br /&gt;# &lt;span style="font-weight: bold;"&gt;init 3&lt;/span&gt;&lt;br /&gt;Several messages will be printed, when you see one fron "anaconda" hit enter. That will re-print the prompt. Now type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; # init 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;XWindows should start successfully!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;===============================================&lt;br /&gt;sample  &lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf &lt;/span&gt;using defaults for both the server and the monitor&lt;br /&gt;===============================================&lt;br /&gt;Section "ServerLayout"&lt;br /&gt;        Identifier     "single head configuration"&lt;br /&gt;        Screen      0  "Screen0" 0 0&lt;br /&gt;        InputDevice    "Keyboard0" "CoreKeyboard"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;        Identifier  "Keyboard0"&lt;br /&gt;        Driver      "kbd"&lt;br /&gt;        Option      "XkbModel" "pc105"&lt;br /&gt;        Option      "XkbLayout" "gb"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt;&lt;br /&gt; ### Comment all HorizSync and VertSync values to use DDC:&lt;br /&gt; ### Comment all HorizSync and VertSync values to use DDC:&lt;br /&gt;        Identifier   "Monitor0"&lt;br /&gt;        ModelName    "LCD Panel 1024x768"&lt;br /&gt; ### Comment all HorizSync and VertSync values to use DDC:&lt;br /&gt;        HorizSync    31.5 - 48.5&lt;br /&gt;        VertRefresh  40.0 - 70.0&lt;br /&gt;        Option      "dpms"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Device"&lt;br /&gt;        Identifier  "Videocard0"&lt;br /&gt;        Driver      "vesa"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Screen"&lt;br /&gt;        Identifier "Screen0"&lt;br /&gt;        Device     "Videocard0"&lt;br /&gt;        Monitor    "Monitor0"&lt;br /&gt;        DefaultDepth     24&lt;br /&gt;        SubSection "Display"&lt;br /&gt;                Viewport   0 0&lt;br /&gt;                Depth     24&lt;br /&gt;                Modes    "1024x768" "800x600" "640x480"&lt;br /&gt;        EndSubSection&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-149333657074449372?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/149333657074449372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=149333657074449372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/149333657074449372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/149333657074449372'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/02/making-best-of-vesa-drivers-in-centos-5.html' title='Making the best of VESA drivers in CentOS 5'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1398493336949556000</id><published>2008-01-21T21:25:00.000Z</published><updated>2008-01-21T21:51:26.354Z</updated><title type='text'>21 January - time to get depressed ?</title><content type='html'>Today is meant to be the most depressing day of the year.&lt;br /&gt;&lt;br /&gt;Considering that Inland Revenue admitted they owed me a lot of money, the sun showed it's shine over Sywell for the first time in weeks and I have managed to complete my dreadful paperwork for the last so-many months of expenses, I've not been doing too badly!&lt;br /&gt;&lt;br /&gt;And then a colleague asked me for a couple of slides she wanted to include in her presentation. At this point I realised that my ambitious plans to  convert fully to  Open Office are flawed. It's the second time in two days I had to rapidly save an  '.odp' file into the '.ppt' format, just so other people in the company could use it. &lt;br /&gt;&lt;br /&gt;Time to admit defeat. And back to CrossOver Office. Got a professional copy, payed on-line and downloaded the .deb version. All went smoothly. Shame it doesn't allow Office 2007, but Office XP installed without a hitch.&lt;br /&gt;&lt;br /&gt;Oh well, the "happy - depressed" balance restored ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1398493336949556000?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1398493336949556000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1398493336949556000' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1398493336949556000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1398493336949556000'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/01/21-january-time-to-get-depressed.html' title='21 January - time to get depressed ?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-8320130233742704547</id><published>2008-01-11T16:57:00.000Z</published><updated>2008-01-11T17:19:14.408Z</updated><title type='text'>Moving to OpenOffice Impress 2.3</title><content type='html'>Now that my laptop is fully Linux'ised, I am making a brave attempt to convert all my .ppt documents (mostly qa-iq course-related ones) into a Open Document Presentation format. Luckily, our printers use PDF format for  printing. That means that it doesn't really matter which office suite I use for the design, as long as I can convert it into a PDF before it's sent to the printers.  In fact I bet that nobody is going to notice that I no longer work with the .ppt  format  (just as nobody noticed that all my timesheets, expenses and all other paperwork is now done in OpenOffice - I just save it as a .ppt file).&lt;br /&gt;&lt;br /&gt;On the whole, the compatibility of .ppt and .odp is good. Fonts are still rather dissimilar, and this is one area I will have to investigate (although the rendering of characters imported from .ppt file is sufficiently good for me not to loose sleep over the issue).&lt;br /&gt;&lt;br /&gt;What kept me guessing for a long time is the method of setting the notes pages' header and footer. In PowerPoint this is done in Master View --&gt; Notes. However, the .ppt imported into OpenOffice 2.3 treats these headers and footers as standard text boxes. So any change (like document version which we set in the Notes view footer) would have to be done for each page.&lt;br /&gt;&lt;br /&gt;Well, in OpenOffice, text to appear on each slide is done in View --&gt; Header and Footer. Once customised, select "Apply to All".&lt;br /&gt;&lt;br /&gt;So far, there is just one feature I miss in the Open Office Impress - the style painter. It does now exist in the OpenOffice, but its scope is very limited and nowhere as useful as it is in Power Point.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8320130233742704547?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8320130233742704547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8320130233742704547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8320130233742704547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8320130233742704547'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/01/moving-to-openoffice-impress-23.html' title='Moving to OpenOffice Impress 2.3'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5670195818868344829</id><published>2008-01-08T19:16:00.000Z</published><updated>2008-01-08T19:33:15.640Z</updated><title type='text'>The Dell saga continues</title><content type='html'>What a see saw the last few weeks has been. I love my little new dell (some would say it's not so new anymore), and I love Ubuntu. Somehow however, they didn't like each other much. Having search various posts, I strongly believe that Ubuntu 7.10 (gutsy) has been rushed out, and it clearly has bugs, mostly with handling SATA disks and networking.&lt;br /&gt;&lt;br /&gt;After my last post, I was installing and fine-tuning various applications, hoping to arrive at the final (and perfect ;-)), of course) system configuration. Disappointingly, but I hit several re-occurring problems, which put the stop to these ambitions... Most of the issues have been well documented by others - inconsistent  wireless recognition, many SATA warnings popping on the console (even though actual disk access was fine), very slow desktop start-up, cupsd taking up to 5 minutes to start.&lt;br /&gt;&lt;br /&gt;The worst aspect of these problems has been the random, unpredictable nature of them, with problems virtually impossible to reproduce. I'm well used to fixing systems - you expect hiccups, and you anticipate having to dive under the hood of any new version or distribution. This is part and parcel of playing with UNIX or Linux. And one of the great historical attributes of UNIX has been its transparency - you can always get to the bottom of things. Not quite so with the new kernel releases. More and more traditionally user-driven hardware manipulation and control is delegated into kernel's functionality. It's great in some respects - faster, more secure and easier to tie down system. But for an average sysadmin, ability to debug and fix is becoming more obscure and complex, if not difficult.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5670195818868344829?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5670195818868344829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5670195818868344829' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5670195818868344829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5670195818868344829'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2008/01/dell-saga-continues.html' title='The Dell saga continues'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-3486497611408551659</id><published>2007-10-29T09:15:00.000Z</published><updated>2007-10-29T09:45:20.055Z</updated><title type='text'>Re-installing Dell XPS M1330 (Part 4)</title><content type='html'>Well, the machine is ready for Linux. I have preserved the original software by installing it in a much smaller partition, allowing most disk space to be left for Linux.      &lt;p class="MsoNormal"&gt;Obtain installable Ubuntu CD-ROM&lt;br /&gt;------------------------------------------------&lt;br /&gt;Well, the system is ready for Linux installation. One little detail first - need to get the Linux software itself. I decided to go for the highly recommended Ubuntu, after the less than successful attempt with CentOS. No time to order a ready made CD or DVD, so need to download the ISO image (onto an XP box) and burn the CD disk. One reason for the choice is that this is the distribution that Dell use when pre-installing their machines with Linux. &lt;/p&gt;    &lt;p class="MsoNormal"&gt;1. Download Ubuntu 7.10 Gutsy Gibbon (ISO image). &lt;/p&gt;  &lt;p class="MsoNormal"&gt;There are numerous sites that will sell disks with the image on it. But if you have a decent bandwidth, it's cheaper to download your own. My bandwidth is useless, but it was still quicker than ordering disks and waiting for delivery.&lt;br /&gt;I got the image from: &lt;a href="http://www.ubuntu.com/getubuntu/download"&gt;http://www.ubuntu.com/getubuntu/download&lt;/a&gt;. It took nearly 3 hours for the 712MB image (ubuntu-7.10-desktop-i386.iso) to land on my Desktop. &lt;/p&gt;    &lt;p class="MsoNormal"&gt;2. Download ISO file burning software (unless you already have it)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Many commercial programs exist. I used a freeware program: ISO Recorder v2 from &lt;a href="http://isorecorder.alexfeinman.com/isorecorder.htm"&gt;http://isorecorder.alexfeinman.com/isorecorder.htm&lt;/a&gt;. Once the ISO Recorder is installed, "Copy image to CD" option will appear when you right-click in the ISO file. &lt;/p&gt;    &lt;p class="MsoNormal"&gt;3. Having inserted empty CD in the drive, locate the ISO file you have downloaded, right-click it, and select the "Copy image to CD" option. Follow the steps - it will take few minutes for the new disk to be written.&lt;/p&gt;&lt;p class="MsoNormal"&gt;Boot from the Ubuntu CD and install it on hard disk&lt;br /&gt;--------------------------------------------------------------------&lt;br /&gt;Select "Start or install Ubuntu". Watch the little orange bar for a couple of minutes, then a blank screen for a minute or so, eventually Ubuntu starts the services. This will initially start Ubuntu as Live CD (i.e. run directly off the CD). Linux is at that point in memory (and using the CD). However, we will use this to install Ubuntu permanently into the spare partition on the hard disk.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Double-click the Install icon, to start Install program.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-style: italic;"&gt;Welcome screen&lt;/span&gt; - &lt;span style=""&gt;&lt;/span&gt;press "Forward" (notice default is English)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-style: italic;"&gt;Where are you? &lt;/span&gt;- Use the map to locate a city in your timezone (&lt;st1:city st="on"&gt;&lt;st1:place st="on"&gt;London&lt;/st1:place&gt;&lt;/st1:City&gt; for me). &lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;Time zone &lt;/span&gt;is shown as BST (GMT+1:00) -&lt;span style=""&gt; &lt;/span&gt;press "Forward"&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-style: italic;"&gt;Keyboard layout&lt;/span&gt;&lt;span style=""&gt; - &lt;/span&gt;press "Forward" (unless you are not in the &lt;st1:country-region st="on"&gt;&lt;st1:place st="on"&gt;UK&lt;/st1:place&gt;&lt;/st1:country-region&gt;, in which case change it! )&lt;br /&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-style: italic;"&gt;Prepare disk space&lt;/span&gt; -&lt;span style=""&gt;&lt;/span&gt; select "Manual"&lt;span style=""&gt;  &lt;/span&gt;(see &lt;span style="font-weight: bold;"&gt;Note 1 &lt;/span&gt;below for the rationale of my partition layout that I am suggesting) -&lt;span style=""&gt; &lt;/span&gt;press "Forward"&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-style: italic;"&gt;Prepare partitions&lt;/span&gt;&lt;span style=""&gt; - &lt;/span&gt;on my machine, the current layout showed:&lt;span style=""&gt;                                        &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Device&lt;span style=""&gt;             &lt;/span&gt;Type&lt;span style=""&gt;    &lt;/span&gt;...&lt;span style=""&gt;                     &lt;/span&gt;Size&lt;span style=""&gt;                 &lt;/span&gt;Used&lt;span style=""&gt;               &lt;/span&gt;&lt;br /&gt;/dev/sda&lt;br /&gt;&lt;span style=""&gt;&lt;/span&gt;/dev/sda1&lt;span style=""&gt;      &lt;/span&gt;fat16&lt;span style=""&gt;    &lt;/span&gt;...&lt;span style=""&gt;                     &lt;/span&gt;49 MB&lt;span style=""&gt;             &lt;/span&gt;33 MB&lt;br /&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt;/dev/sda2&lt;span style=""&gt;      &lt;/span&gt;ntfs&lt;span style=""&gt;      &lt;/span&gt;...&lt;span style=""&gt;                     &lt;/span&gt;42952 MB&lt;span style=""&gt;       &lt;/span&gt;14700 MB&lt;br /&gt;&lt;span style=""&gt;&lt;/span&gt;/dev/sda5&lt;span style=""&gt;                                          &lt;/span&gt;154890 MB&lt;span style=""&gt;     &lt;/span&gt;unknown&lt;br /&gt;&lt;span style=""&gt;&lt;/span&gt;/dev/sda6&lt;span style=""&gt;      &lt;/span&gt;fat32&lt;span style=""&gt;    &lt;/span&gt;...&lt;span style=""&gt;                     &lt;/span&gt;2154 MB&lt;span style=""&gt;         &lt;/span&gt;50 MB&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight &lt;span style="font-weight: bold;"&gt;/dev/sda5 &lt;/span&gt;and press "Delete partition" -&lt;span style=""&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;/span&gt; it should now show as "free space"&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: -&lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt; 150 MB&lt;span style=""&gt;           &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/boot&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: - &lt;b style=""&gt;2000&lt;span style=""&gt;    &lt;/span&gt;swap&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: - &lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;5000 MB&lt;span style=""&gt;         &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: - &lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;10000 MB&lt;span style=""&gt;       &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/home&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: -&lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;10000 MB&lt;span style=""&gt;       &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/usr&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: - &lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;b style=""&gt;1000 MB&lt;span style=""&gt;         &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/var&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: - &lt;b style=""&gt;&lt;span style=""&gt;&lt;/span&gt;850 MB&lt;span style=""&gt;           &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/tmp&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: -&lt;b style=""&gt;&lt;span style=""&gt; &lt;/span&gt;2500 MB&lt;span style=""&gt;         &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/spare1&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;/span&gt;Highlight the "free space" line and press "New partition".&lt;br /&gt;Fill the form with: -&lt;b style=""&gt;&lt;span style=""&gt; &lt;/span&gt;2500 MB&lt;span style=""&gt;         &lt;/span&gt;ext3&lt;span style=""&gt;     &lt;/span&gt;/spare2&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;Press "Finish", then "Ignore" (if you got it, see &lt;span style="font-weight: bold;"&gt;Note 2 &lt;/span&gt;below)&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-style: italic;"&gt;Migrate Docs and Settings&lt;/span&gt;&lt;span style=""&gt;  - &lt;/span&gt;press "Forward"&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-style: italic;"&gt;Who are you?&lt;/span&gt;&lt;span style=""&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;- &lt;/span&gt;fill in the form; press "Forward"&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Ready to install&lt;/p&gt;        &lt;p class="MsoNormal"&gt;&lt;span style="font-weight: bold;"&gt;Note 1.&lt;/span&gt;&lt;br /&gt;I never trust automatic partitioning tools - they never seem to split the disk in a sensible way.I want to share files with Windows, hence fat32 partition.&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;I'm of a traditional UNIX school, where a separate partition is used for just about anything ;-). I always have at least one spare partition, for rescuing data from broken partitions, experimenting, trying new or experimental filesystem types, etc.&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;This time I've ended up with 2 spare partitions, because one of them was going to be &lt;span style="font-weight: bold;"&gt;vfat &lt;/span&gt;type. This didn't work (see &lt;span style="font-weight: bold;"&gt;Note 2&lt;/span&gt;), but I will try changing the type later on, once the system is up and running.&lt;br /&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="font-weight: bold;"&gt;Note 2.&lt;/span&gt;&lt;br /&gt;Issues I had during the install:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;When partitioning, after creating all partitions I wanted, I have then selected the rest of the disk and assigned the "don’t_use" filesystem type. What a mistake - the process crashed. Waited a long time hoping that the little timer indicating that something is happening would time out and allow me to continue. Nope. Had to cancel the whole procedure and start from scratch (all the way from double-clicking in the Install icon). Second time round tried fat16 instead of fat32. Same problem. Tried to "Ignore" it, but when the actual partitioning started, got a new message: &lt;/p&gt;  &lt;p class="MsoNormal"&gt;"Failed to create a file system: The fat 16 file system creation in partition #4 of SCSI1 (0,0,0) (sda) failed. Press "OK". &lt;/p&gt;  &lt;p class="MsoNormal"&gt;This put me back into the partitioner (but I had to select "Manual" again. However, at least the partition information was remembered. Just had to go through each one and allocate type and mount point. At this point, I have also given up on the fat partition, and set it to free space (by deleting it).&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Once the complete partitioning process, you need to press "Finish". At this point, the Warning message popped:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;"File system doesn't have expected sizes for Windows to like it. Cluster size is 2k (expected 1k); number of clusters is 24026 (47959 expected); size of FATs is 94 sectors (188 expected). I chose to ignore this message and pressed "Ignore".&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-3486497611408551659?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/3486497611408551659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=3486497611408551659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3486497611408551659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/3486497611408551659'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/10/re-installing-dell-xps-m1330-part-4.html' title='Re-installing Dell XPS M1330 (Part 4)'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5640807120761817916</id><published>2007-10-29T08:48:00.000Z</published><updated>2007-10-29T09:06:01.801Z</updated><title type='text'>Re-installing Dell XPS M1330 (Part 3)</title><content type='html'>&lt;p class="MsoNormal"&gt;Using Dell MediaDirect (TM) 3.3 to partition disk&lt;br /&gt;--------------------------------------------------&lt;br /&gt;Before I move on, I need to give credit to another blogger, who published a quick howto about installing M1330 with dual boot configuration: (http://linuxevangelist.blogspot.com/2007/10/dual-boot-in-dell-xps-m1330-with.html). Without his information, it would've taken me a lot longer to realise that the MediaDirect disk is more than an application. It is a bootable CD, and is important for partitioning and making sure that Vista would be able to make use of the various media buttons the M1330 has (at this point I'm not sure if Linux will be able to use them ).&lt;/p&gt;        &lt;p class="MsoNormal"&gt;Installing &lt;st1:place st="on"&gt;Vista&lt;/st1:place&gt;&lt;br /&gt;--------------------------------------------------&lt;br /&gt;Put &lt;st1:place st="on"&gt;Vista&lt;/st1:place&gt; disk in the drive and restart the box. Follow the few simple instructions. No problem with the install, except I had to insert the disk several times before it started - I hope I don't have an inherent CD or drive problem! A quick reboot into &lt;st1:place st="on"&gt;Vista&lt;/st1:place&gt; to confirm it worked - it did, after a fashion. What surprised me is, though, it started into 800x600 resolution! A quick adjustment (Start --&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt; Control Panel &lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;--&gt; Appearance and Personalization: Adjust Screen Resolution) and slide the resolution to 1280x800.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Worked fine, but I thought Windows do these things automatically. Hmmm.&lt;/p&gt;        &lt;p class="MsoNormal"&gt;Installing Drivers and Utilities (grey Driver and Utilities disk)&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;Insert the Drivers and Utilities CD disk in the drive. Select "Run..." in the AutoPlay pop up screen. Say "OK" to start. On my machine, the virus wizard showed a warning: "An unidentified program wants access to your computer". Not really knowing what it's about, I can only assume that driver setup.exe is regarded as potential virus. So, selected "Allow". A couple of more "OK" clicks and 30 seconds later the Dell Resource Disk printed a Welcome message with hardware, drivers and hardware utilities being displayed. Close this screen, and you will find that behind it the install wizard is waiting for you to press "Finish". Do that. Eject the disk (with the eject touch key above the main keyboard).&lt;/p&gt;        &lt;p class="MsoNormal"&gt;Installing Dell Webcam Manager (blue Driver and Utilities disk)&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;Insert the Drivers and Utilities CD disk in the drive. Select "Run..." in the pop up screen. Scroll to the bottom of the licence text and press "Yes" to accept the licence. Unless you have a good reason to change the default destination for the drivers to go to, accept the default location: c:\Program Files\DELL. Select the "Full Installation".&lt;/p&gt;  &lt;p class="MsoNormal"&gt;The "Dell Webcam Software" screen will be displayed, and this stage of the installation should take not more that 5 minutes.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Allow the laptop to restart (default action on "Finish"). The CD will be automatically ejected, and the machine will reboot.&lt;/p&gt;        &lt;p class="MsoNormal"&gt;Installing Dell MediaDirect(TM) 3,3&lt;br /&gt;--------------------------------------------------&lt;br /&gt;Insert the Drivers and Utilities CD disk in the drive. Select "Run..." in the AutoPlay pop up screen. Say&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Another warning from the virus - press "Allow" again, Then "Enter" to start installation. First time round the disk got stuck again (you know when it happens, because it starts making repeatable noises). Had to eject the disk and restart the process. Not happy about it!&lt;/p&gt;  &lt;p class="MsoNormal"&gt;But eventually it all worked, and MediaDirect installed itself in a separate partition. Another reboot to confirm it's all installed and working from Windows perspective. &lt;st1:place st="on"&gt;Vista&lt;/st1:place&gt; booted fine, all touch keys work OK (although I haven't really played any media with it - can't wait to put Linux on and see how it can handle the same hardware).&lt;/p&gt;    &lt;p class="MsoNormal"&gt;So, the next step is to obtain Linux - this time I'll go for Ubuntu - and install it in the free space.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5640807120761817916?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5640807120761817916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5640807120761817916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5640807120761817916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5640807120761817916'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/10/re-installing-dell-xps-m1330-part-3.html' title='Re-installing Dell XPS M1330 (Part 3)'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-8056668448340689463</id><published>2007-10-26T15:59:00.000+01:00</published><updated>2007-10-26T16:22:13.787+01:00</updated><title type='text'>Re-installing Dell XPS M1330 (Part 2)</title><content type='html'>&lt;p class="MsoNormal"&gt;I only need &lt;st1:place st="on"&gt;Vista&lt;/st1:place&gt; for MS for a few applications used at work. Other than that, everything I need can be done by Linux. &lt;/p&gt;            &lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;Also, I don't want *all* applications installed by default, so I had to start from scratch. As every self-righteous know-it-all techie, I threw the &lt;st1:place st="on"&gt;Vista&lt;/st1:place&gt; install disk in, to re-install, clean up the disk and repartition it in the process.&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;Allowing your M1330 to boot from DVD&lt;br /&gt;--------------------------------------------------&lt;br /&gt;First little hiccup that surprised me was that CD/DVD is after hard disk in the BIOS booting sequence. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Not a problem: reboot the system, hit &lt;span style="font-weight: bold;"&gt;F2&lt;/span&gt; as soon as the first Dell screen appears and locate under "&lt;span style="font-weight: bold;"&gt;System&lt;/span&gt;" the "&lt;span style="font-weight: bold;"&gt;Bootable Sequence&lt;/span&gt;" menu item. Scroll down to it, press &lt;&lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt;&gt;. Now, with the list of available bootable devices displayed, reshuffle them to have HDD after DVD. Nice to see that booting from a USB device is available: reassuring if not surprising.&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;There is some help at the bottom of the BIOS setup screen. I couldn't get how to actually move the entry. If up/down arrow keys are described as &lt;span style="font-weight: bold;"&gt;Up/Down&lt;/span&gt; arrows (to select the line), what could U/D mean (to move the entry)? Well, trial and error proved that &lt;span style="font-weight: bold;"&gt;U/D&lt;/span&gt; means &lt;span style="font-weight: bold;"&gt;Shift-Up&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;Shift-Down&lt;/span&gt; arrows. Obvious !?&lt;/p&gt;    &lt;p class="MsoNormal"&gt;My preferred sequence would be:&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;st1:street st="on"&gt;&lt;st1:address st="on"&gt;1. CD/DVD/CD-RW   Drive&lt;/st1:address&gt;&lt;/st1:Street&gt;&lt;br /&gt;2. USB Storage Device&lt;br /&gt;3. Internal HDD&lt;/p&gt;        &lt;p class="MsoNormal"&gt;That's for my personal use - security consideration may dictate different approach (not a good idea to allow booting from removable media in a commercial environment).&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;Once you have the correct sequence, do &lt;span style="font-weight: bold;"&gt;ESCAPE&lt;/span&gt;, then choose &lt;span style="font-weight: bold;"&gt;Save/Exit&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt;. That will accept your new setting and continue booting the system.&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;During my first attempt, I have followed this with a fresh install of CentOS 5. It kind of worked, however, no sound, Ethernet or wireless were recognised. Screen required adjustments, but was fine after that. However, on reboot, although &lt;st1:place st="on"&gt;Vista&lt;/st1:place&gt; was shown (as "other"), it wouldn't boot - missing MBR!&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;Not very worried about any of this - I never expect my first install to work. But I decided to take a step back, and rethink my approach. A bit of googling didn't go amiss. There was a very useful blog entry from a chap who tried to achieve a similar configuration, and I took his advice. More in the next part...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8056668448340689463?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8056668448340689463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8056668448340689463' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8056668448340689463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8056668448340689463'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/10/re-installing-dell-xps-m1330-part-2.html' title='Re-installing Dell XPS M1330 (Part 2)'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-4586729716833847778</id><published>2007-10-26T15:42:00.000+01:00</published><updated>2007-10-26T15:59:10.765+01:00</updated><title type='text'>Re-installing Dell XPS M1330 (Part 1)</title><content type='html'>I have invested a few pounds ;-) into a gorgeous toy. I want to start playing with applications that require a dual core processor, have a bit more memory and disk. For one thing, I will be investigating virtualisation, first step: ESX from VMWare, now that we are the authorised training place for them. If anything, I need to understand exactly the Linux portion of the product (Linux for ESX administrators course will follow soon).&lt;br /&gt;&lt;br /&gt;This is a great excuse to have a box with the spec:                           &lt;p class="MsoNormal"&gt;System Info:&lt;br /&gt;---------------------------&lt;br /&gt;System:&lt;span style=""&gt;                       &lt;/span&gt;XPS M1330&lt;br /&gt;BIOS version:&lt;span style=""&gt;             &lt;/span&gt;A06 (09/03/2007)&lt;br /&gt;&lt;br /&gt;Processor Type:&lt;span style=""&gt;         &lt;/span&gt;Intel(R) Core(TM)2 Duo processor&lt;br /&gt;Max. Clock Speed:&lt;span style=""&gt;     &lt;/span&gt;2.2 GHz&lt;br /&gt;Processor Cache:&lt;span style=""&gt;       &lt;/span&gt;4096 KB&lt;br /&gt;Dual Core Present:&lt;span style=""&gt;    &lt;/span&gt;Yes&lt;/p&gt;                    &lt;p class="MsoNormal"&gt;Memory Info&lt;br /&gt;---------------------------&lt;br /&gt;Installed:&lt;span style=""&gt;                    &lt;/span&gt;4096 MB&lt;br /&gt;Speed:&lt;span style=""&gt;                         &lt;/span&gt;667 MHz&lt;br /&gt;Channel Mode:&lt;span style=""&gt;           &lt;/span&gt;Dual&lt;br /&gt;Technology:&lt;span style=""&gt;                &lt;/span&gt;DDR2 SDRAM&lt;br /&gt;Device Info&lt;br /&gt;---------------------------&lt;br /&gt;Primary Hard Drive:&lt;span style=""&gt;   &lt;/span&gt;200 GB HDD&lt;br /&gt;Video Memory:&lt;span style=""&gt;           &lt;/span&gt;128 MB&lt;br /&gt;Panel Type:&lt;span style=""&gt;                 &lt;/span&gt;13.3" Wide XGA&lt;br /&gt;Native Resolution:&lt;span style=""&gt;      &lt;/span&gt;1280 by 800&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt;It's got all sorts of other bits and pieces, WIFI, bluetooth - of course, fingerprint recognition, camera, and a product called MediaDirect, which I haven't yet sussed out.&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;My first task is to reinstall it. I want a minimal install of the Vista the box came with, and Linux, which will take over most of the tasks. First quick reinstall has proven that RedHat derivatives couldn't cope. Very few devices were recognised with CentOS 5 or Fedora 6. So I decided to give the highly recommended Ubuntu 7.10 Gutsy.&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;Well, I'm in business, incredibly impressed with Ubuntu. I am documenting every step of my attempts, and will be posting them in turn, as things progress.&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;The next post will cover the partitioning and preparing for Ubuntu install without losing any facilities and drivers used by Vista.&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-4586729716833847778?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/4586729716833847778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=4586729716833847778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4586729716833847778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/4586729716833847778'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/10/re-installing-dell-xps-m1330-part-1.html' title='Re-installing Dell XPS M1330 (Part 1)'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1299916433245379104</id><published>2007-10-24T15:32:00.000+01:00</published><updated>2007-10-24T16:02:24.048+01:00</updated><title type='text'>An example of using eval</title><content type='html'>When learning (or teaching) &lt;span style="font-weight: bold;"&gt;eval&lt;/span&gt;, the first - and very valuable - example of it is to see &lt;span style="font-weight: bold;"&gt;eval&lt;/span&gt;'s ability to evaluate the value of the last positional parameter:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ set a b c d&lt;br /&gt;          &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ eval print -- \$$#&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;d&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We use &lt;span style="font-weight: bold;"&gt;eval &lt;/span&gt;it to force the shell to perform a double scan, when we need to find a value of a value. First scan will evaluate the &lt;span style="font-weight: bold;"&gt;$# &lt;/span&gt;to the number of available parameters (in this case: &lt;span style="font-weight: bold;"&gt;4&lt;/span&gt;); the second scan will check the value of it (&lt;span style="font-weight: bold;"&gt;d&lt;/span&gt;). This is 'bread and butter' of &lt;span style="font-weight: bold;"&gt;eval &lt;/span&gt;application.&lt;br /&gt;&lt;br /&gt;Other cases of using eval are a bit more obscure, and for that reason eval is often forgotten...&lt;br /&gt;&lt;br /&gt;Here is an example that is not 'that' obscure - and possible quite useful. A delegate wanted to rename all files in a given directory, to change the character case from lower to upper. What he devised, successfully, is as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;for file in *&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;do&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;   mv $file  $(echo $file |  tr  '[a-z]'  '[A-Z]')&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This worked, until he found that some of the files contained 'unfriendly' characters: spaces. The script failed to cope with this.&lt;br /&gt;&lt;br /&gt;This is where &lt;span style="font-weight: bold;"&gt;eval &lt;/span&gt;stepped in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;for file in *&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;eval mv '"$file"' \"$(echo "$file" | tr '[a-z]' '[A-Z]' )\"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;In this case &lt;span style="font-weight: bold;"&gt;eval &lt;/span&gt;allows to insert an additional set of double quotes, which protected spaces embedded in file names.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1299916433245379104?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1299916433245379104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1299916433245379104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1299916433245379104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1299916433245379104'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/10/example-of-using-eval.html' title='An example of using eval'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-297927185567880526</id><published>2007-10-17T07:57:00.000+01:00</published><updated>2007-10-18T10:43:46.503+01:00</updated><title type='text'>ksh93 - test, test and then test a bit more</title><content type='html'>Since ksh&lt;span style="font-weight: bold;"&gt;93&lt;/span&gt; is now [1] available for most version of UNIX (and Linux), we have been tentatively moving our courses (especially scripting) towards the new syntax. At the moment the scripting course is still based predominantly on the pre-93 versions, but we now introduce a fair amount of comparisons, 'gotchas' and demos of new capabilities and syntax.&lt;br /&gt;&lt;br /&gt;Truth is, months later we still find new idiosyncrasies.&lt;br /&gt;&lt;br /&gt;Here is one I found today, whilst teaching... Imagine the following example, to illustrate the need for double quotes when creating and accessing variables:&lt;br /&gt;&lt;br /&gt;If you want to assign a value that has leading or trailing spaces or tabs, you need the quotes:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$&lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt; address="  6 Pie Corner"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Would you expect to see the leading spaces if you didn't use the quotes when accessing the variable? Of course not! Well, in &lt;span style="font-weight: bold;"&gt;ksh93&lt;/span&gt; it works! Haven't checked yet if this behaviour is driven by any particular setting or switch, but in my CentOS 5 &lt;span style="font-weight: bold;"&gt;ksh &lt;/span&gt;(Version M 1993-12-28 r), the following worked out of the box:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;print -- $address&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;&lt;span style="font-style: italic;"&gt;space&lt;/span&gt;&gt;&lt;&lt;span style="font-style: italic;"&gt;space&lt;/span&gt;&gt;6 Pie Corner&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;[1] in the original posting this said 'not' - corrected 18/10/2007&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-297927185567880526?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/297927185567880526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=297927185567880526' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/297927185567880526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/297927185567880526'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/10/ksh93-test-test-and-then-test-bit-more.html' title='ksh93 - test, test and then test a bit more'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-8353978201991811867</id><published>2007-10-15T18:07:00.000+01:00</published><updated>2007-10-15T18:30:20.753+01:00</updated><title type='text'>No access to ntp source?</title><content type='html'>When you install Linux on a PC, you may find that the hardware clock enforced the time. Normally, you would use the &lt;span style="font-weight: bold;"&gt;ntpd &lt;/span&gt;(network time protocol daemon) to synchronise the system (software) time with a selection of external sources.&lt;br /&gt;&lt;br /&gt;However, what if you are not connected, or for some reason just don't have access to time servers (for example the &lt;span style="font-weight: bold;"&gt;ntpd &lt;/span&gt;port 123 is blocked)?&lt;br /&gt;&lt;br /&gt;Well, unless you need to maintain a precise time (in which case you still need to find access to a reliable source), you can just use the good old date command and inform the hardware clock of the change.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;date --utc 101517052007.00&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;will update the system (software) clock and set the current time and date to: &lt;span style="font-weight: bold;"&gt;Oct 15 18:05:00 BST 2007&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The only problem is that system clock doesn't run when your machine is powered off. What does continue to run is the hardware clock. It ticks forever. External power present or not. Because on start-up the hardware clock is used, you need to flush the system date into the hardware clock, and as long as the hardware clock is accurate enough, your newly adjusted time will be persistent over reboots.&lt;br /&gt;&lt;br /&gt;Use the &lt;span style="font-weight: bold;"&gt;hwclock &lt;/span&gt;tool to achieve this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;hwclock --systohc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Do remember, though: this is 'quick and dirty'. If you require consistent and accurate time keeping, you need to synchronise the system clock with an external source...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8353978201991811867?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8353978201991811867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8353978201991811867' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8353978201991811867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8353978201991811867'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/10/no-access-to-ntp-source.html' title='No access to ntp source?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-6487725527590550328</id><published>2007-08-18T22:43:00.000+01:00</published><updated>2007-08-18T22:52:33.154+01:00</updated><title type='text'>How much do people pay for Windows software?</title><content type='html'>There is a discussion brewing in our local LUG, to do with almost philosophical aspect of software theft.&lt;br /&gt;The basis for the thread lie in one of the most interesting articles on the subject I have ever read:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://tlug.jp/articles/Windows_Is_Free"&gt;http://tlug.jp/articles/Windows_Is_Free&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As many before, it explores moral aspects of using "second hand" software, but less usually, it attempts to analise the implication of cracked software on the industry itself and how, ironically, the effectively free windows software distorts the balance of marketing power between windows, mac OS and linux.&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6487725527590550328?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6487725527590550328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6487725527590550328' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6487725527590550328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6487725527590550328'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/08/how-much-do-people-pay-for-windows.html' title='How much do people pay for Windows software?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1358193439861774771</id><published>2007-08-18T22:38:00.000+01:00</published><updated>2007-08-18T22:42:49.663+01:00</updated><title type='text'>Keyboard layout in Solaris 10</title><content type='html'>If there is a way of setting UK keyboard during Solaris 10 installation - I don't know it! However, the &lt;span style="font-weight: bold;"&gt;/boot/solaris/bootenv.rc&lt;/span&gt; has a directive for that - just change US to UK.&lt;br /&gt;&lt;br /&gt;A reboot, unfortunately is necessary...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1358193439861774771?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1358193439861774771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1358193439861774771' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1358193439861774771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1358193439861774771'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/08/keyboard-layout-in-solaris-10.html' title='Keyboard layout in Solaris 10'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-8451931575224995334</id><published>2007-07-09T19:29:00.000+01:00</published><updated>2007-07-09T20:01:15.816+01:00</updated><title type='text'>Keyboard layout in Centos</title><content type='html'>I have been playing with Centos 5, which is the community binary for binary version of RHEL 5 (with various elements, such as text and graphics depicting or referring to Red Hat replaced with Centos, quite legally, might I add). It's an excellent alternative, as long as you don't expect a 24/7 support, or automatic updates or any of the value added stuff that a formal contract from Red Hat provides.&lt;br /&gt;&lt;br /&gt;Anyway, the install from the DVD onto my Vaio PCG-V505BP went without any problems. Selected "Gnome Desktop", "Server" and "Server-GUI" software, and the only other customisation was disk partitioning (I like my partitions to be done the old-fashioned UNIX style).&lt;br /&gt;&lt;br /&gt;So, as I said, the installation completed successfully, and to my best knowledge all hardware was recognised OK (still testing, so can't be totally sure).  One little surprise, though - the keyboard layout was the US, not UK! Well, it is quite possible that I messed it up myself (when selecting the keyboard during installation).  Either way, I went to correct it by hand, and thought I'd document it. It's quite straightforward, but a thing to remember is that two different configuration files need to be changed.&lt;br /&gt;&lt;br /&gt;For CLI (character interface screen, accessed through CTRL-ALT-F1 - F6) you need to modify the &lt;span style="font-weight: bold;"&gt;/etc/sysconfig/keyboard&lt;/span&gt;. Change the &lt;span style="font-weight: bold;"&gt;KEYTABLE &lt;/span&gt;line to read:&lt;br /&gt;&lt;br /&gt;  &lt;span style="font-family: courier new;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;KEYTABLE="uk"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will have immediate effect, and any new CLI session will assume the correct keyboard.&lt;br /&gt;&lt;br /&gt;For GUI screen terminals, you need to change the Xorg configuration file: &lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;. In the "Section InputDevice", identify the line with &lt;span style="font-weight: bold;"&gt;XkbLayout &lt;/span&gt;and modify it to read:&lt;br /&gt;&lt;br /&gt;   &lt;span style="font-weight: bold; font-family: courier new;"&gt;Option           "XkbLayout"   "uk"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unlike CLI setting, this GUI change will only take place after GUI session is restarted. I have tried the standard CTRL-ALT-Backspace, to restart Xorg server, but it didn't work! Well, not for the first time. On many systems this is disabled.&lt;br /&gt;&lt;br /&gt;I refuse doing a full reboots lightly,  so I tend to 'recycle' GUI instead. First of all, make sure you don't have any GUI-dependent users or applications before you carry out the next step (they may not like being kicked off the system without a warning).&lt;br /&gt;&lt;br /&gt;To 'recycle' GUI means switching runlevels to 3 than to 5 again. To do that: open a CLI session (press CTRL-ALT-F1), log in as root, and switch runlevel to 3 with:&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;  &lt;span style="font-family: courier new;"&gt;# init 3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once the 'anaconda' message appears on the screen - you are in runlevel 3, even though you see no new prompt. Hit "Enter", and the prompt will be printed. At that point, switch back into runlevel 5 with:&lt;br /&gt;&lt;br /&gt;   &lt;span style="font-weight: bold; font-family: courier new;"&gt;# init 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Your new keyboard layout is now available to all users.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8451931575224995334?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8451931575224995334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8451931575224995334' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8451931575224995334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8451931575224995334'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/07/keyboard-layout-in-centos.html' title='Keyboard layout in Centos'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-8938218492304865878</id><published>2007-07-05T08:56:00.000+01:00</published><updated>2007-07-05T09:12:09.465+01:00</updated><title type='text'>Default gateway in Solaris 10</title><content type='html'>I'm spending a lot of time switching between different versions of UNIX and Linux, and the detailed syntax of the command line stuff keeps catching me out. So I will start documenting for myself (and any QA-IQ colleagues) some of the most popular things that are needed in our classrooms.&lt;br /&gt;&lt;br /&gt;This week it is a turn of Solaris 10 (ix86), in our Swindon office. Our infrastructure is such that the 192.168.1.254 gateway requires an argument of 1 where the 'metric' value used to be. No rocket science - just the command line syntax, but it kept me unconnected for far too long (or am I getting too indoctrinated by the Linux syntax and the power of the ip command there?).&lt;br /&gt;&lt;br /&gt;Anyway: to add the default gateway to the Solaris 10 :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;route add default 192.168.1.254 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then obviously adjust the browser settings to the correct proxy for your location (with port 8080 on QA-IQ sites). In the Mozilla version provided with Solaris 10 you can find the settings in Edit --&gt; Preferences --&gt; Advanced --&gt; Proxies.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-8938218492304865878?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/8938218492304865878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=8938218492304865878' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8938218492304865878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/8938218492304865878'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/07/default-gateway-in-solaris-10.html' title='Default gateway in Solaris 10'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-5556043135918761731</id><published>2007-07-05T08:53:00.000+01:00</published><updated>2007-07-05T08:55:43.136+01:00</updated><title type='text'>Get it back together again</title><content type='html'>Had so many changes within the company - blog went onto the back burner. Things are getting calmer and easier again, and hopefully I can  get on with it  properly. With any luck, the postings will start coming out  again...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-5556043135918761731?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/5556043135918761731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=5556043135918761731' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5556043135918761731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/5556043135918761731'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/07/get-it-back-together-again.html' title='Get it back together again'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-1715786186913275666</id><published>2007-05-06T23:16:00.000+01:00</published><updated>2007-05-06T23:22:36.384+01:00</updated><title type='text'>Forcing hp2400 to print double sided</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 14pt; font-family: Arial;"&gt;&lt;span style="font-size:100%;"&gt;Needed to print  a set of labs for  a new version of a course. Run out of time, and although the manuals are being printed, the labs documents had to be done by hand! So to save the Amazon, I managed to get my printer to  print double-sided! Although  this is specifically for the hp2400, the algorythm of printing sequence and which way at which stage should be useful  for any printer...&lt;/span&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;span style="font-size: 14pt; font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class="MsoNormal" style="margin-left: 36pt; text-indent: -36pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;1.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;Ensure all documents have an even number of pages&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 36pt; text-indent: -36pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;2.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;First print the even pages with the last page on top.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Select File &lt;/span&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;--&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;Print... &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;            &lt;/span&gt;- in "Print:" drop down menu select "Even pages" (default is "All pages in range")&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Then select "Properties" &lt;/span&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;--&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; Basics &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;            &lt;/span&gt;- in "Page Order" mark "Back to Front"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Then press "OK" in Properties screen, and "OK" again in Print screen&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 36pt; text-indent: -36pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;3.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;Replace the paper&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Pick up the freshly printed pages. Keep them together, in the same order they were printed and the same side up (i.e. printed side up). Rotate the whole bunch 180 degrees horizontally and insert in into the paper tray. Once in the paper tray, the orientation of the paper should be such that one can read the pages correctly, with the highest even page at the top.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 36pt; text-indent: -36pt;"&gt;&lt;!--[if !supportLists]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;4.&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;!--[endif]--&gt;&lt;b style=""&gt;&lt;span style="font-family: Arial;"&gt;Print the odd pages with the ultimate result having the first page on top.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Select File &lt;/span&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;--&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;Print... &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;            &lt;/span&gt;- in "Print:" drop down menu select "Odd pages" (default is "All pages in range")&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Then select "Properties" &lt;/span&gt;&lt;span style="font-family: Wingdings;"&gt;&lt;span style=""&gt;--&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;Basics &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;span style=""&gt;           - &lt;/span&gt;in "Page Order" mark "Front to Back"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Then press "OK" in Properties screen, and "OK" again in Print screen&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-1715786186913275666?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/1715786186913275666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=1715786186913275666' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1715786186913275666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/1715786186913275666'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2007/05/forcing-hp2400-to-print-double-sided.html' title='Forcing hp2400 to print double sided'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-6992744850777949769</id><published>2006-11-19T22:34:00.000Z</published><updated>2006-11-19T23:29:24.961Z</updated><title type='text'>The IFS mystery</title><content type='html'>The &lt;span style="font-weight: bold;"&gt;IFS &lt;/span&gt;is involved in the parsing of the command line (word splitting) and in variable assignment  during the read built-in execution.&lt;br /&gt;&lt;br /&gt;But there is a  side effect, which I have only discovered recently, by accident. If you assign positional parameters with set:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;set a 'b c' d 'e f'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;than using the * parameter we can get at the values individually or as one word. To illustrate, try the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;echo  $*  "$*"&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;a b c d e f a b c d e f&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;However, if you 'nullify' the IFS variable:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;IFS=""&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;then the behaviour of the shell when referencing the * parameter changes:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;echo  $*  "$*"&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;a b c d e f ab &lt;/span&gt;cde&lt;span style="font-family: courier new;"&gt; f&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This only works with the &lt;span style="font-weight: bold; font-family: courier new;"&gt;*&lt;/span&gt; parameter (not with &lt;span style="font-family: courier new;"&gt;@&lt;/span&gt;) and only if &lt;span style="font-weight: bold;"&gt;IFS &lt;/span&gt;had a null value (if you inset &lt;span style="font-weight: bold;"&gt;IFS &lt;/span&gt;altogether, then the shell will use a space to separate positional parameters.&lt;br /&gt;&lt;br /&gt;Finally, I've checked this behaviour in ksh&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;bash &lt;/span&gt;- same (and documented in manual pages, at least in &lt;span style="font-weight: bold;"&gt;bash&lt;/span&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-6992744850777949769?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/6992744850777949769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=6992744850777949769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6992744850777949769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/6992744850777949769'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/11/ifs-mystery.html' title='The IFS mystery'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-2486676941743197290</id><published>2006-11-15T23:14:00.000Z</published><updated>2006-11-16T09:51:08.535Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell behaviour'/><title type='text'>Quoting command substitution</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;When we learn the inner works of a shell, we quickly realise the benefit of using double quotes with request for variable substitution. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;For example, to assign a value to a variable (and preserve leading spaces), we would use:&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:courier new;"&gt;&lt;span style=""&gt;$ &lt;b style=""&gt;address="    23 Acacia Avenue    "&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;A correct quotation is needed to recall the value complete with the spaces:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;b style=""&gt;echo "&lt;$address&gt;"&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The less known application of the quotes is when they are around the command substitution syntax. By default, POSIX shells remove trailing new-lines during command substitution. Double quotes change this behaviour!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Compare the output of the following commands:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;/span&gt;&lt;b style="font-family: courier new;"&gt;echo $(ls)&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;log.1 log.2 log.3&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;and &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;/span&gt;&lt;b style="font-family: courier new;"&gt;echo "$(ls)"&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;log.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;log.2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;log.3&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-2486676941743197290?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/2486676941743197290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=2486676941743197290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/2486676941743197290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/2486676941743197290'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/11/quoting-command-substitution.html' title='Quoting command substitution'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-116301118749930312</id><published>2006-11-08T18:33:00.000Z</published><updated>2006-11-15T23:11:07.405Z</updated><title type='text'>Graphics problems...</title><content type='html'>&lt;span style="font-family: arial;"&gt;For all its maturity, problems with graphics with installs out of the box are still there... This time, trying to use RHEL4 on an HP machine with Intel 82845G/GL[Brookdale-G]/GE Chipset.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Seems fine, until you try to restart the  X Window  System with &lt;span style="font-weight: bold;"&gt;CTL-ALT-Backspace&lt;/span&gt;. The screen just goes blank, no message, no GUI - nothing.  Log into a  character interface, run level 5 is shown, and the &lt;span style="font-weight: bold;"&gt;startx &lt;/span&gt;command works well.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Just wonder, actually... Could it be a setting somewhere stopping the &lt;span style="font-weight: bold;"&gt;CTL-ALT-Backspace&lt;/span&gt; restart deliberately? Will need to do a bit of 'googling'.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-116301118749930312?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/116301118749930312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=116301118749930312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/116301118749930312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/116301118749930312'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/11/graphics-problems.html' title='Graphics problems...'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-116292269955591400</id><published>2006-11-07T17:34:00.000Z</published><updated>2006-11-15T23:11:07.334Z</updated><title type='text'>Adjusting the kernel for Oracle</title><content type='html'>&lt;span style="font-family: arial;"&gt;In the golden old days, when installing Oracle on UNIX, a laborious kernel recompilation process was often needed, to adjust required memory parameters. &lt;/span&gt;&lt;br /&gt; &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt; On Linux, the process is much simpler, as most of the significant parameters may be changed 'on the fly', effortlessly, and without as much as a reboot, let alone kernel compilation.&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;All current kernel parameters may be found in &lt;b style=""&gt;/proc/sys/kernel&lt;/b&gt; location. Explore it, to see that each parameter has its own file, with either a Boolean Yes/No (or 1/0) or a string value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The set of parameters required for Oracle10g (only part of the list is quoted here) says:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;a style="color: rgb(51, 0, 153); font-weight: bold;" name="CheckingKernelParameters"&gt;&lt;span style="font-size: 12pt;"&gt;shmmax&lt;span style=""&gt;  &lt;/span&gt;= 2147483648&lt;span style=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=""&gt;&lt;span style="font-size: 12pt;"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 0, 153); font-weight: bold;"&gt;shmmni  = 4096&lt;br /&gt;shmall  = 2097152&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 0, 153); font-weight: bold;"&gt;shmmin  = 1&lt;br /&gt;shmseg  = 10&lt;/span&gt;&lt;span style=""&gt;&lt;span style="color: rgb(51, 0, 153);"&gt;&lt;span style="font-weight: bold;"&gt;      &lt;/span&gt;    &lt;/span&gt;   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=""&gt;&lt;/span&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;There are different ways of implementing it: first of all, you can get the values directly into the memory constructs, for example:&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;" lang="PL"&gt;# &lt;b style=""&gt;echo 2147483648 &gt; /proc/sys/kernel/shmmax&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;This will adjust the value correctly, with the slight drawback - the value will return to whatever the default was after the next reboot.&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Alternatively, for a more permanent modification, you can place the required definitions in the kernel configuration file: &lt;b style=""&gt;/etc/sysctl.conf&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;pre&gt;&lt;span style="font-size: 12pt; font-family: Arial;" lang="DE"&gt;&lt;span style="font-family: courier new;"&gt;kernel.shmmax=2147483648&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;kernel.smni=4096&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;kernel.shmall=2097152&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;kernel.shmin=1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;kernel.shmseg=10&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: 12pt; font-family: Arial;"&gt;and inform the kernel of the changes with:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;" lang="PL"&gt;# &lt;b style=""&gt;sysctl -p &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;span style="font-size: 12pt; font-family: Arial;"&gt;command, which will read the values from the sysctl.conf file and place them in the&lt;br /&gt;appropriate files under &lt;b style=""&gt;/proc/sys/kernel&lt;/b&gt;.&lt;br /&gt;Any subsequent reboots will also make use of these values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-family: Arial; color: blue;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-116292269955591400?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/116292269955591400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=116292269955591400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/116292269955591400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/116292269955591400'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/11/adjusting-kernel-for-oracle.html' title='Adjusting the kernel for Oracle'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-116003983292638816</id><published>2006-10-05T09:41:00.000+01:00</published><updated>2006-11-15T23:11:07.264Z</updated><title type='text'>Crashing Unix?</title><content type='html'>&lt;span style="font-family: arial;"&gt;What's that?&lt;br /&gt;&lt;br /&gt;Having now worked so much with Linux, I have developed an unhealthy approach to file system care. Initially by accident, then by design - to test, now by habit, when I shut a Linux machine, I just slam the lid - generally just pull the power on it (I'm talking laptops here - not really advisible on servers, especially of a production, live variety). &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Well, I've been waiting for some kind of corruption, longing for the &lt;span style="font-weight: bold;"&gt;fsck &lt;/span&gt;to be forced on me, waiting to sit there for the entire afternoon typing "yes", because I've forgotten to provide the &lt;span style="font-weight: bold;"&gt;-y&lt;/span&gt; option (and worrying that &lt;span style="font-weight: bold;"&gt;^C&lt;/span&gt; would upset it further - which it wouldn't!). &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Nothing! A bit of a delay on subsequent boots, but no disaster of any description.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;This week we are working on porting our generic UNIX admin course onto SPARCs with Solaris 9 (I'm still not up to speed with the new Solaris 10 features, but that's a totally different story).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;We are working at the brand new offices in Birmingham (on the verge of the China Town - wonderful, but that's yet another different story). The machines were shipped from London. Once connected - power on, and... three out of four boxes booted OK, the last one would not. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Guess what: had to do a manual &lt;span style="font-weight: bold;"&gt;fsck &lt;/span&gt;on the &lt;span style="font-weight: bold;"&gt;/var&lt;/span&gt; partition. Guess what: forgot to do the &lt;span style="font-weight: bold;"&gt;-y&lt;/span&gt; option. Except that I did interrupt it this time ;-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Fsck declared the partition healthy - boot into runlevel 3 - no joy: &lt;span style="font-weight: bold;"&gt;utmpx &lt;/span&gt;file missing. Back to single user: it turned out that most of the &lt;span style="font-weight: bold;"&gt;/var &lt;/span&gt;partition is missing! Having recreated most of it by hand, the machine came up - eventually.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Now then - I might be totally unfair to Solaris at this point, but the corruption has no known history or explanation. The machines had been installed at the same time from a jumpstart (logs confirm it), then they were shutdown and shipped. Did the engineer pull the power? Very likely. Did the engineer remove by hand some of the&lt;span style="font-weight: bold;"&gt; /var &lt;/span&gt;tree - doubt it very much.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Well, at least I had a chance to reacquaint myself with the good old &lt;span style="font-weight: bold;"&gt;fsck &lt;/span&gt;!&lt;/span&gt;&lt;span style="font-size: 24pt; color: rgb(0, 0, 70); font-family: arial;"&gt;&lt;/span&gt;&lt;p:colorscheme style="font-family: arial;" colors="#ffffff,#000046,#aaaaaa,#ffffff,#fcffc9,#e0eade,#d7e6f1,#f0c9ff"&gt;  &lt;/p:colorscheme&gt;  &lt;span style="font-family: arial;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-116003983292638816?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/116003983292638816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=116003983292638816' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/116003983292638816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/116003983292638816'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/10/crashing-unix.html' title='Crashing Unix?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-115931137499875823</id><published>2006-09-26T23:44:00.000+01:00</published><updated>2006-11-15T23:11:07.188Z</updated><title type='text'>I'll be back</title><content type='html'>&lt;span style="font-family: arial;"&gt;My blog has been awfully neglected lately.&lt;br /&gt;&lt;br /&gt;The company's merger meant a new look at the portfolio, to integrate and merge the offerings. Quite exciting, as several new sites mean access to loads more kit, including some top spec Sparc machines, which will be employed very quickly for the new generation of administration courses. The breadth of the combined customer base is demanding several new courses, at either end of the spectrum. Linux for desktop at one end, and top level enterprise server stuff at the other.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;Teaching trips to all corners of the world add variety and excitement, but do nothing to relief time squeeze ;-)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;All in all rather busy times for us! But I have so much to document, that hopefully this blog might start flowing again soon...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-115931137499875823?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/115931137499875823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=115931137499875823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115931137499875823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115931137499875823'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/09/ill-be-back.html' title='I&apos;ll be back'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-115667498449877455</id><published>2006-08-27T11:03:00.000+01:00</published><updated>2006-11-15T23:11:07.118Z</updated><title type='text'>Choice is wonderful</title><content type='html'>&lt;span style="font-family: arial;"&gt;There has been so much arguing about pros and cons of open source, I'm not going to start now. Developers and system architects having choice in selecting programs and having the Linus-given right to modify them and adjust them to their need is all truly great.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;It may, however, give the rest of us headaches when trying to adjust our understanding of a command or program behaviour.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;Take the &lt;span style="font-weight: bold;"&gt;login &lt;/span&gt;program. Originated quite early in the UNIX evolution. Linux implementation (look at the bottom of man login) refers to:&lt;br /&gt;'&lt;span style="font-style: italic; font-family: webdings;"&gt;BSD login 5.40 (5/9/89) by Michael Glad (glad@daimi.dk) for HP-UX.&lt;br /&gt;Ported to Linux 0.12: Peter Orbaek (poe@daimi.aau.dk)&lt;/span&gt;'.&lt;br /&gt;&lt;br /&gt;Both SuSE and Red Hat derivatives use this version of the program. &lt;/span&gt;&lt;span style="font-family: arial;"&gt;However, if you are SuSE user, there is one more credit line you can see there:&lt;br /&gt;'&lt;span style="font-family: webdings; font-style: italic;"&gt;Added new features: ThorstenKukuk (kukuk@suse.de)&lt;/span&gt;'.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;I have only realised that, when hours of trying and trying to make the &lt;span style="font-weight: bold;"&gt;/etc/securetty&lt;/span&gt; file work consistently failed, and I was reaching that well know to me desparation state.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;In manual pages, under SPECIAL ACCESS RESTRICTIONS, where the behaviour of the two standard access files (&lt;span style="font-weight: bold;"&gt;securetty &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;usertty&lt;/span&gt;) are described, the behaviour of the &lt;span style="font-weight: bold;"&gt;securetty &lt;/span&gt;file is described, but on closer inspection, in the DESCRIPTION section it's stated: &lt;br /&gt;'&lt;span style="font-family: webdings; font-style: italic;"&gt;This login implementation does ignore /etc/nologin and /etc/securetty. You need to configure this in the PAM  configuration file for login...&lt;/span&gt;' .&lt;br /&gt;&lt;br /&gt;Why? Obviously the assumption is made that PAM ought to run at all times - a very sensible advice. But why force people? The worse implication to me is that if administrator decides to leave the PAM configuration out of the equation, the simple system access configuration is then missing altogether...&lt;br /&gt;&lt;br /&gt;Apart of anything, it means that I cannot have an exercise in the 'generic' Linux course that can be done on both distributions. &lt;/span&gt;&lt;span style="font-family: arial;"&gt;How annoying!&lt;br /&gt;&lt;br /&gt;I'm not going to throw it out, though. It will act as a reminder for all of us, not to become complacent.&lt;br /&gt;&lt;br /&gt;This is the beauty of UNIX and Linux - always keep you on your toes, make you test all solutions on every new platform, force you to test-run every script or program you want to port...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-115667498449877455?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/115667498449877455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=115667498449877455' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115667498449877455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115667498449877455'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/08/choice-is-wonderful.html' title='Choice is wonderful'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-115442924393281400</id><published>2006-08-01T11:25:00.000+01:00</published><updated>2006-11-15T23:11:07.048Z</updated><title type='text'>Which shell?</title><content type='html'>&lt;span style="font-family: arial;"&gt;Finding which shell you are currently using is not difficult, the &lt;/span&gt;&lt;span style="font-family: arial; font-weight: bold;"&gt;ps&lt;/span&gt;&lt;span style="font-family: arial;"&gt; command can tell you this easily. However, if you are using several shells, identifying the current one can be rather involving, may require &lt;span style="font-weight: bold;"&gt;ps -f&lt;/span&gt;, to make sure that you are looking at the last one executed. his method has one inherent problem - relies on human ability to deduce the desired result. Approach very much prone to mistakes!&lt;br /&gt;&lt;br /&gt;Whenever possible make the system do the hard work for you. We know that the current process ID is stored in the environmental variable &lt;span style="font-weight: bold;"&gt;$&lt;/span&gt;. You can therefore always check what the PID of the current shell is with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;echo $$&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PID itself does not tell you which shell this is (if you have a mix of &lt;span style="font-weight: bold;"&gt;ksh&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;bash&lt;/span&gt; or any other you are still nonthewiser which one of them corresponds to the PID). Yyou can find the name of the process name ellegantly by interrogating the &lt;span style="font-weight: bold;"&gt;/proc &lt;/span&gt;filesystem, which stores all process information (in both UNIX and Linux, but on Linux has also all sorts of other hardware information).&lt;br /&gt;&lt;br /&gt;Still using a reference to the &lt;span style="font-weight: bold;"&gt;$&lt;/span&gt; variable, look in the &lt;span style="font-weight: bold;"&gt;/proc&lt;/span&gt; for the name of the corresponding program:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ &lt;span style="font-weight: bold;"&gt;ls -l /proc/$$/exe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;lrwxrwxrwx    . . .       /proc/25541/exe -&gt; /bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If this is something you need to execute regularly, you can always create a little function and place it in one of the environmental files...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-115442924393281400?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/115442924393281400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=115442924393281400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115442924393281400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115442924393281400'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/08/which-shell.html' title='Which shell?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-115373792833292820</id><published>2006-07-24T11:32:00.000+01:00</published><updated>2006-11-15T23:11:06.976Z</updated><title type='text'>Back in action</title><content type='html'>&lt;span style="font-family: arial;"&gt;I've spent last few months between holidays, teaching, flying and a combination of all three above. Rather busy and exciting times, and the QA-IQ merger put another layer of travel, presentations and meetings to this all. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Well, it looks like it's back to 'normal', whatever this may mean ;-)) - so back to Linux'ing, etc.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;I've now moved to Linux almost entirely. The HP/XP laptop is now sitting on my desk at home most of the time, and is acting as a backup machine mostly. My old faithful VAIO V550 is back in action, with SuSE10 final beta. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;I'm so impressed with it, that (backed up by the expressed needs of the public sector customers that IQ brought into the equation) I decided that for the first time Linux *IS* ready for the desktop, and consequently we need a Linux Desktop end user training. In the good QA tradition, will try to make it vendor (distributor in this case) independent, but will probably base it round Fedora 5 and Suse 10 installations.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-115373792833292820?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/115373792833292820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=115373792833292820' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115373792833292820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115373792833292820'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/07/back-in-action.html' title='Back in action'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-115196794081608142</id><published>2006-07-03T23:57:00.000+01:00</published><updated>2006-11-15T23:11:06.890Z</updated><title type='text'>Partition or not</title><content type='html'>&lt;span style="font-family: arial;font-size:85%;" &gt;This entry is in fact a reply I posted earlier today on our local LUG. &lt;br /&gt;&lt;br /&gt;One of our guys lost a lot of data, because he accidentally done the &lt;/span&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;rm &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;at a wrong level of the &lt;span style="font-weight: bold;"&gt;/var &lt;/span&gt;branch. Any recovery work was made very difficult through the fact that his entire sys&lt;/span&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;tem was on a single partition.&lt;br /&gt;&lt;br /&gt;So, the discussion about best partitioning practice emerged. Here are my comments:&lt;br /&gt;&lt;br /&gt;My rule of thumb has always been to separate 'dynamic' from 'static' directories.&lt;br /&gt;&lt;br /&gt;Every branch which I regard as 'dynamic' (ie written frequently by users or applications)&lt;br /&gt;would go onto its own partition.&lt;br /&gt;&lt;br /&gt;Typically these would be:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/var&lt;/span&gt;            - log and spool files; these days also web pages - adjust the size for that&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/tmp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/usr&lt;/span&gt;            - (mostly because of /usr/local, but also because historically it used to be&lt;br /&gt;          separate partition)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/boot&lt;/span&gt;           - this is to keep the kernel's disk small, away from other stuff, and as contiguous&lt;br /&gt;         as possible&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/any-other-application&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Anything that you don't place on a separate partition will end up being part of the 'root disk'.&lt;br /&gt;Don't forget a &lt;span style="font-weight: bold; font-style: italic;"&gt;swap &lt;/span&gt;partition, and consider any particular needs of applications you are installing.&lt;br /&gt;&lt;br /&gt;There seems to be a new school of thought, which suggests doing swap and root only (perhaps &lt;span style="font-weight: bold;"&gt;/boot&lt;/span&gt; as well).&lt;br /&gt;I have heard arguments supporting that approach, but they obviously didn't convince me, as I can't remember what they were ;-)&lt;br /&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-115196794081608142?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/115196794081608142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=115196794081608142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115196794081608142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115196794081608142'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/07/partition-or-not.html' title='Partition or not'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-115072985647279613</id><published>2006-06-19T16:06:00.000+01:00</published><updated>2006-11-15T23:11:06.823Z</updated><title type='text'>Command line and GUI operations don't mix</title><content type='html'>&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;When unzipping files (zipped originally under DOS) all permissions are messed up; notably the 'x' bit for shell scripts. That's nothing new really – always something to be aware of. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;We have a set of Oracle installation (Linux) scripts that are stored on a Windows server. When needed, Dave "the NumbThumb" zips them up and sends them to us to play with. We are well used to adjusting access permissions, in fact we have a little script that looks after attributes of files that arrive from the dark side.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Today I've realised that mixing command line and GUI file manager is no good. Martin opened a GUI file manager and tried to run one of the scripts by double-clicking on the icon. Instead of running, an editor was opened. We quickly realised that the 'x' permission was missing. So I dropped into the command line, and did a quick: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;# &lt;b style=""&gt;chmod +x *.sh&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;Run &lt;b style=""&gt;ls –l&lt;/b&gt; to confirm the change – OK. Martin tries to run the script again, but no difference: script didn't execute, but the editor opened again. Conclusion: if you have a GUI screen showing file icons, and change file attributes from the command line, don't expect GUI to take any notice.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family: Arial;"&gt;The whole experience proves the very old &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;recommendation&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; of working with UNIX &lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;: when working on any particular task it’s best to stick to either the command line or GUI, don't mix them! &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-115072985647279613?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/115072985647279613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=115072985647279613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115072985647279613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/115072985647279613'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/06/command-line-and-gui-operations-dont.html' title='Command line and GUI operations don&apos;t mix'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114988999296191407</id><published>2006-06-09T22:49:00.000+01:00</published><updated>2006-11-15T23:11:06.754Z</updated><title type='text'>Playing cat and mouse with the cat builtin</title><content type='html'>&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;Teaching Fundies. Using &lt;b style=""&gt;cat&lt;/b&gt;. Straightforward, hey?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;One example in the book says, that you cannot redirect file onto itself using &lt;b style=""&gt;cat&lt;/b&gt;.&lt;br /&gt;What should happen is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;$ &lt;b style=""&gt;cat file5 &gt; file5&lt;/b&gt;&lt;br /&gt;cat: file5: input file is output file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;Delegates try this - "Alina, it doesn't work!". What does happen is:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;$ &lt;b style=""&gt;cat file5 &gt; file5&lt;/b&gt;&lt;br /&gt;$&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;Several minutes of experimenting, and one of the delegates shouted with satisfaction: "Got it&lt;span style=""&gt;  &lt;/span&gt;- &lt;b style=""&gt;cat&lt;/b&gt; is a built in". &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;What? As surprised as I was, in the &lt;i style=""&gt;ksh-20050202-1&lt;/i&gt; &lt;b style=""&gt;cat&lt;/b&gt; is a builtin, in addition to the standard &lt;b style=""&gt;/bin/cat&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;$ &lt;b style=""&gt;type cat&lt;/b&gt;&lt;br /&gt;cat is a shell builtin version of /bin/cat&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;It may be a builtin implementation of &lt;b style=""&gt;/bin/cat&lt;/b&gt;, but there is behavioural difference. Perhaps not because of changes to what or how the two &lt;b style=""&gt;cat&lt;/b&gt; versions work, but due to the fact that one (the builtin) is operating in the same process as the calling shell, the other (&lt;b style=""&gt;/bin/cat&lt;/b&gt;) gets its own process space.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;This could have VERY serious implications for shell scripts!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;Consider the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;        &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;$ &lt;b style=""&gt;cat x &gt; x&lt;/b&gt;&lt;br /&gt;$ &lt;b style=""&gt;echo $?&lt;/b&gt;&lt;br /&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;Then try the same, this time using external version:&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;        &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;;"&gt;$ &lt;b style=""&gt;/bin/cat x &gt; x&lt;/b&gt;&lt;br /&gt;/bin/cat: x: input file is output file&lt;br /&gt;$ &lt;b style=""&gt;echo $?&lt;/b&gt;&lt;br /&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;How many programmers use full pathnames in their scripts? If you are one of them – well done, and you will have no problems with this particular &lt;b style=""&gt;cat&lt;/b&gt;! &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;If not, however (admit it!), any script written in the past, that uses &lt;b style=""&gt;cat&lt;/b&gt;'s exit status will fail when ported to this version of &lt;b style=""&gt;ksh&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style="font-family: Arial;"&gt;OK, so why would you like to use &lt;b style=""&gt;cat&lt;/b&gt; for testing? I don't know – but that's not the point!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114988999296191407?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114988999296191407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114988999296191407' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114988999296191407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114988999296191407'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/06/playing-cat-and-mouse-with-cat-builtin.html' title='Playing cat and mouse with the cat builtin'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114923862072596404</id><published>2006-06-02T09:51:00.000+01:00</published><updated>2006-11-15T23:11:06.678Z</updated><title type='text'>Amazing resource page</title><content type='html'>When looking for an on-line IP subnet calculator during a class, we came across the &lt;a href="http://www.cotse.com/"&gt;site &lt;/a&gt;that managed to pull together a fantastic number of network and computer relating tools and resources.&lt;br /&gt;&lt;br /&gt;The site itself is an American ISP. If they were in the UK, I would probably be talking to them about their services. Anybody who put so much effort and intelligence into creating this site would be worth considering...&lt;br /&gt;&lt;br /&gt;A lesson to learn ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114923862072596404?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114923862072596404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114923862072596404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114923862072596404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114923862072596404'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/06/amazing-resource-page.html' title='Amazing resource page'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114799462150494704</id><published>2006-05-18T23:59:00.000+01:00</published><updated>2006-11-15T23:11:06.610Z</updated><title type='text'>Input redirection into a while loop</title><content type='html'>&lt;span style="font-family: arial;"&gt;I'm teaching shell scripting in Stamford this week. Earlier today we had a discussion about data redirection to/from various programming statements like &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;if&lt;/span&gt;&lt;span style="font-family: arial;"&gt;, &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;while&lt;/span&gt;&lt;span style="font-family: arial;"&gt;, etc.&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;The offered approach was:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;while read -r&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;    command(s)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;done 0&lt; file &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;One of the students asked if you could have the redirection specified before the while, i.e:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;0&lt; file while read -r&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;do &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;   command(s)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;done  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My immediate thought was - yes, it should work. I didn't offer my opinion at that point, though. Instead I answered the question with another one. I asked them if the following would work (my favourite example illustrating shell scan):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;" &gt;$ &lt;/span&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;1&gt; file &lt; /etc/passwd cat 2&gt; /dev/null&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I was truly convinced that the original question is another exhibition of the same behaviour, which allows to specify the I/O redirection at any (sensible) point of the command line.&lt;br /&gt;&lt;br /&gt;Well, whereas the &lt;span style="font-weight: bold;font-family:courier new;" &gt;cat &lt;/span&gt;command line above will work OK, the original construct does not work!  I have tried various combinations, and deduced that any alias, function or external command can have redirection specified before the command itself. However, when you are dealing with reserved words (programming keywords) or built-ins, the mechanism is not recognised, with a  "command not found" error message.&lt;br /&gt;&lt;br /&gt;Curious... Need to investigate it further, unless Clive comes back with an answer before then ;-)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114799462150494704?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114799462150494704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114799462150494704' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114799462150494704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114799462150494704'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/05/input-redirection-into-while-loop.html' title='Input redirection into a while loop'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114682766209571916</id><published>2006-05-05T12:09:00.000+01:00</published><updated>2006-11-15T23:11:06.538Z</updated><title type='text'>URL code/decode tool</title><content type='html'>&lt;span style="font-family:arial;"&gt;NLUG discussion on debugging htmp/php code lead to one of the participants quoting what I thought was an excellent tool for &lt;/span&gt;&lt;a style="font-family: arial;" href="http://www.dommermuth-1.com/protosite/experiments/encode/index.html"&gt;url decoding&lt;/a&gt;&lt;span style="font-family:arial;"&gt;.&lt;br /&gt;&lt;br /&gt;There are also very useful &lt;a href="http://i-technica.com/whitestuff/urlencodechart.html"&gt;conversion tables&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114682766209571916?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114682766209571916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114682766209571916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114682766209571916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114682766209571916'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/05/url-codedecode-tool.html' title='URL code/decode tool'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114660602119829713</id><published>2006-05-02T21:41:00.000+01:00</published><updated>2006-11-15T23:11:06.466Z</updated><title type='text'>Mac addresses in VMWare</title><content type='html'>&lt;span style="font-family:arial;"&gt;I have recently noticed that when booting RHEL 4 in VMWare 5 (on my HPnc6120 laptop) the &lt;span style="font-weight: bold;"&gt;eth0 &lt;/span&gt;card would not initialise, with an error "&lt;span style="font-style: italic;"&gt;MAC address is different than expected - failed&lt;/span&gt;". &lt;/span&gt; &lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;After some googling, one theme appeared to recur: hardware modules in the kernel problem. However, I was convinced this was not the issue in my case, since  I also have FC 5 and SuSE, to compare the kernel config files against. &lt;/span&gt;&lt;span style="font-family:arial;"&gt;To complicate the matter further, I went down the totally wrong way to start with, assuming that the correct value was one reported by &lt;span style="font-weight: bold;font-family:courier new;" &gt;ip neigh show&lt;/span&gt; from another machine on the same home network. How silly of me - that other host was looking at the 'front end' configuration, whereas my problem was sitting behind the VM...&lt;/span&gt;  &lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;Eventually I managed to fix the problem, but without really understanding the reasons. What was the fix?&lt;br /&gt;&lt;br /&gt;Well, I noticed that the &lt;span style="font-weight: bold;"&gt;HWADDR &lt;/span&gt;parameter in the &lt;span style="font-weight: bold;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt; had a different value than the one reported by the  &lt;span style="font-weight: bold;font-family:courier new;" &gt;ip address show&lt;/span&gt; command.&lt;br /&gt;&lt;br /&gt;I changed the &lt;span style="font-weight: bold;"&gt;HWADDR &lt;/span&gt;value to the one reported by the &lt;span style="font-weight: bold;"&gt;ip&lt;/span&gt; command, restarted the network with &lt;span style="font-weight: bold; font-family: courier new;"&gt;service network restart&lt;/span&gt;, and all was well. But I couldn't understand why (and how) the configuration file got changed - I could swear that I hadn't touched the parameter - ever! So I continued googling - and eventually went directly to the vmware site (another lesson learnt - should have gone there much sooner!) . The answer is well documented amongst their support pages, under "&lt;a href="http://www.vmware.com/support/ws55/doc/ws_net_advanced_mac_address.html"&gt;Maintaining and Changing the MAC Address of a Virtual Machine&lt;/a&gt;".&lt;br /&gt;&lt;br /&gt;In a nutshell: virtual machine also means virtual MAC.  The value assigned is unique, but is liable to be changed if you move the location of your VM.&lt;br /&gt;&lt;br /&gt;This is exactly what happened to me. Since creating the RHEL4 VM, I have moved the "&lt;span style="font-style: italic;"&gt;My Virtual Machines&lt;/span&gt;" folder (yes, XP) to a different drive - to fix XP synchronisation issues... But in turn , that messed up my RHEL installation.&lt;br /&gt;&lt;br /&gt;Since my fix did the trick, I haven't studied the solutions they quote on their site - apparently you can tweak configuration files of VMWare itself to fix this.&lt;br /&gt;&lt;br /&gt;I'm just happy that there was a 'good' reason for my problems. I hate fixing the unknown... It's just like replacing a blown fuse without knowing why it blew in the first place ;-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114660602119829713?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114660602119829713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114660602119829713' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114660602119829713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114660602119829713'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/05/mac-addresses-in-vmware.html' title='Mac addresses in VMWare'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114599630473476986</id><published>2006-04-25T21:03:00.000+01:00</published><updated>2006-11-15T23:11:06.399Z</updated><title type='text'>Just a link... to a Microsoft blogger!</title><content type='html'>&lt;span style="font-family:arial;"&gt;I've come across a very interesting discussion, started by a blog entry. It comes from an MS enclosure, and is a rather adventureous and brave expression of individual's views.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;In the world where corporates often attempt to control the expression of views of their employees - usually through the fear of the unknown - this blog entry is proving that given a chance, most employees are prepared to stand by their bread provider, for better and for worse, in sickness and in health.&lt;/span&gt;  &lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;So, whether you agree with the preaching, analisys and recommendations or not - it does make interesting &lt;a href="http://scobleizer.wordpress.com/2006/04/24/how-microsoft-can-shut-down-mini-microsoft/"&gt;reading&lt;/a&gt;.&lt;/span&gt; &lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114599630473476986?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114599630473476986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114599630473476986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114599630473476986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114599630473476986'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/04/just-link-to-microsoft-blogger.html' title='Just a link... to a Microsoft blogger!'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114433692887250284</id><published>2006-04-06T16:17:00.000+01:00</published><updated>2006-11-15T23:11:06.333Z</updated><title type='text'>Linux in the air</title><content type='html'>&lt;span style="font-family: arial;"&gt;Embedded Linux from LynuxWorks has been cleared for use in display, flight management and flight control systems in American commercial fleets.&lt;br /&gt;&lt;br /&gt;"LynuxWorks becomes the first and only embedded operating system vendor to receive an  Advisory Circular AC 20-148 acceptance letter from the FAA. "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;See more at &lt;/span&gt;&lt;a style="font-family: arial;" href="http://www.lynuxworks.com/corporate/press/2006/rsc-acceptance.php"&gt;http://www.lynuxworks.com/corporate/press/2006/rsc-acceptance.php.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114433692887250284?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114433692887250284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114433692887250284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114433692887250284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114433692887250284'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/04/linux-in-air.html' title='Linux in the air'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114200440137956895</id><published>2006-03-10T15:01:00.000Z</published><updated>2006-11-15T23:11:06.267Z</updated><title type='text'>F-Spot - open source answer to Picassa</title><content type='html'>&lt;span style="font-family:arial;"&gt;There is only a handful of applications which ensured that I continue using Windows. &lt;span style="font-weight: bold;"&gt;Picassa &lt;/span&gt;from Google (picture and video editing and management program) has definitely been one of them. Personally, I could never understand why they resist releasing a version of &lt;span style="font-weight: bold;"&gt;Picassa &lt;/span&gt;for Linux, but resist they do. &lt;/span&gt;  &lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;However, Linux community responded, as usual, and equivalent tool emerged. It's name is &lt;span style="font-weight: bold;"&gt;F-Spot&lt;/span&gt;, and comes from:  &lt;/span&gt;&lt;a style="font-family: arial;" href="http://f-spot.org/Main_Page"&gt;http://f-spot.org/&lt;/a&gt;  &lt;span style="font-family:arial;"&gt;F-Spot can be used on a non-Linux platform as well - if you download a &lt;a href="http://www.mono-live.org/"&gt;Mono-Live CD&lt;/a&gt; , which comes with all sorts of goodies, &lt;span style="font-weight: bold;"&gt;F-Spot&lt;/span&gt; included.&lt;/span&gt;  &lt;span style="font-family:arial;"&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;The current version, 0.1.10, is actually quite good and stable. I haven't tested it fully yet, but it certainly&lt;/span&gt;y is usable.  The only  feature I'm missing is video clips management, but this is very early days for the project, and developer team is keen to hear of any "shopping lists". Versioning is good, editing less comprehensive than that of Picassa's, but on the whole the time of good by to Windows is nearer and nearer. &lt;/span&gt;  &lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;Any QA person reading this - relax, I will maintain a system for course design applications, at least until we get to use some portable standard ;-)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114200440137956895?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114200440137956895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114200440137956895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114200440137956895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114200440137956895'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/03/f-spot-open-source-answer-to-picassa.html' title='F-Spot - open source answer to Picassa'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114172859574323825</id><published>2006-03-07T10:06:00.000Z</published><updated>2006-11-15T23:11:06.202Z</updated><title type='text'>New phase in X server evolution</title><content type='html'>&lt;span style="font-family:arial;"&gt;For a while Novell seemed to head for the open source community doghouse, for working on the new X standard (&lt;span style="font-weight: bold;"&gt;Xgl&lt;/span&gt;) behind closed doors. They have also been developing a new window and composition manager called Combiz. Well, both of these products have now been released into Xorg repositories. So all is well. Is it? &lt;/span&gt;  &lt;span style="font-family:arial;"&gt;There are two issues that this has raised. &lt;/span&gt;  &lt;span style="font-family:arial;"&gt;One is the new wave of standard in-fighting that we are seemingly face. This is because as soon as the community accepted Novell's &lt;span style="font-weight: bold;"&gt;Xgl &lt;/span&gt;(or &lt;span style="font-weight: bold;"&gt;Xegl &lt;/span&gt;- OpenGL version) as the future for &lt;span style="font-weight: bold;"&gt;X11&lt;/span&gt;, Red Hat put the spanner in the works by promoting an alternative: &lt;span style="font-weight: bold;"&gt;aiglx &lt;/span&gt;(accelerated indirect GL X. Red Hat's argument would be sound - both &lt;span style="font-weight: bold;"&gt;Xgl &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;Xegl &lt;/span&gt;are brand new solutions, which would require a lot of work on the part of driver creators, whereas &lt;span style="font-weight: bold;"&gt;aiglx &lt;/span&gt;is just an extension to the existing X server standard. Hmmm. Here we go again...&lt;/span&gt;  &lt;span style="font-family:arial;"&gt;The other issue that occurred to me is more of the philosophical nature. It refers to the reasoning Novell offered in defense of the 'keep it behind the closed door' approach to the design. The "design by committee" concept is what most companies face, and have to deal with.&lt;/span&gt; &lt;span style="font-family:arial;"&gt;Novell chose to go against the politically correct community involvement in the early stages of planning, spec'ing and designing. They are being slagged for it, but should they really. For one, I fully agree with Dan Winship's reasoning...&lt;br /&gt;&lt;br /&gt;See: &lt;a href="http://mail.gnome.org/archives/desktop-devel-list/2006-February/msg00115.html"&gt;http://mail.gnome.org/archives/desktop-devel-list/2006-February/msg00115.html&lt;/a&gt; . &lt;/span&gt; &lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114172859574323825?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114172859574323825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114172859574323825' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114172859574323825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114172859574323825'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/03/new-phase-in-x-server-evolution.html' title='New phase in X server evolution'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-114042750849425255</id><published>2006-02-20T08:52:00.000Z</published><updated>2006-11-15T23:11:06.133Z</updated><title type='text'>Boot from CD - a winner again</title><content type='html'>Didn't expect to write anything whilst on holidays in Sydney. But couldn't resist sharing my joy of Knoppix saving me from a big row with the hotel staff.&lt;br /&gt;&lt;br /&gt;Hotel I'm in is using  a third party  company to provide  telecomms and broadband  services.  It's awfully expensive, but  convenient, so I have subscribed.&lt;br /&gt;&lt;br /&gt;So, to get online, you tune into channel 8 on your telly, choose the deal (9.95 for an hour, 44.95 for 3 days), then enter your room number - and bingo, a password is created for you. You connect your laptop and off you go. Except that the socket in our room was faulty. A very friendly manager  allowed us to use another room (to test my laptop), using a password he provided for me. It worked (I never doubted my laptop). So, we move rooms altogether. Once moved, tried to connect and the fun started.&lt;br /&gt;&lt;br /&gt;Tried the password I had generated before - error message saying - cannot activate: already active.  Although the manager's password has expired, I could still connect to the Internet, and use exactly the same sites I did as part of the test, but no others. Tried clearing the browser's cache, reboot, clear the cache again for good measure, same behaviour over and over.&lt;br /&gt;&lt;br /&gt;MAC address tied it in? Don't know, but booted from the Knoppix CD, connected the cable, punched in the password - straight in! On the same laptop, with the same hardware.&lt;br /&gt;&lt;br /&gt;So, if not a browser's cache, not an interface number, what was it that tied my laptop to the servers information? Am I missing something? Or is the comms provider being naughty and captures more information that I would comfortably want to surrender? I left the question with the manager. Somehow, I don't expect to get any answers before we leave in three days time...&lt;br /&gt;&lt;br /&gt;Moral of the story - Knoppix came up trupms again!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-114042750849425255?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/114042750849425255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=114042750849425255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114042750849425255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/114042750849425255'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/02/boot-from-cd-winner-again.html' title='Boot from CD - a winner again'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-113890816674469328</id><published>2006-02-02T19:07:00.000Z</published><updated>2006-11-15T23:11:06.066Z</updated><title type='text'>Allowing remote X sessions</title><content type='html'>&lt;span style="font-family: arial;"&gt;A couple of posts before, I have described how to use gdmsetup to enable (in conjunction with &lt;span style="font-weight: bold;"&gt;xhost +&lt;/span&gt; command) remote X applications on your machine.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;I've been working with our engineers (OK, here goes the mention  - Dave Williams, who is fast becoming a Linux expert, and Martin Pain - who, similarly is becoming Oracle and SQL ex if not expert), to update our various course setup documents. The fix for &lt;span style="font-weight: bold;"&gt;gdmsetup &lt;/span&gt;needed to be scripted. A simple trick allowed me to identify the configuration line that needed to be changed:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;First save the current setting in a different file:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;cp /etc/X11/gdm/gdm.conf /tmp/x.$$&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Then change the setting; run:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;gdmsetup &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Select Security tab, and modify the setting for the "Always disallow TCP connections...".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Once done, just compare the two files:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;diff /etc/X11/gdm/gdm.conf  /tmp/x.$$&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;191c191&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt; disallowtcp="true&lt;/span"&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&gt; DisallowTCP=false&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Bobs your uncle. A single line (or two):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sed '/DisallowTCP/s/false/true/'  /etc/X11/gdm/gdm.conf &gt; /tmp/x$$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mv /tmp/x$$ /etc/X11/gdm/gdm.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;placed in an appropriate script, and X applications will now be accepted.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-113890816674469328?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/113890816674469328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=113890816674469328' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113890816674469328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113890816674469328'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/02/allowing-remote-x-sessions.html' title='Allowing remote X sessions'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-113890505887743410</id><published>2006-02-02T17:47:00.000Z</published><updated>2006-11-15T23:11:05.980Z</updated><title type='text'>RPM package verification</title><content type='html'>&lt;span style="font-family:arial;"&gt;This post doesn't solve any problems, but is more of a record of the investigation to solve one.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;I'm having problems with Fedora Core 4 GUI. Rather unpredictible X behaviour, with not being able to restart it,  inability to start just some of the applications, such as xterm or firefox... &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Handling X has always been my achilles heal. I resisted windows, of any description ;-), for as long as I could, initially regarding it first as pure waste, then unnecessary nicety. It's only relatively recently that I kind of resigned to the fact that resources are now robust enough to cope, and there exist applications that could not live without GUI. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Anyway, still don't really know what the problem is, but done some googling, and can see that I'm not the only one struggling with this strange GUI behaviour. Somebody suggested verifying X server packages - good idea.  Run the &lt;span style="font-weight: bold;"&gt;rpm --verify&lt;/span&gt; on all packages to do with &lt;span style="font-weight: bold;"&gt;xorg&lt;/span&gt;, and got some result:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;span style="font-weight: bold;"&gt;rpm -V $(rpm -qa | grep xorg)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;. . ? . . . . .    c  /etc/security/console.apps/xserver&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;S . 5 . . . . T         /usr/X11R6/lib/modules/libvgahw.a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;So why post this? Well, mostly to document the result, and to make a record of the file attribute characters. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The eight characters mean differences in:     &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;S - size&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;M - file type or permissions (mode)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;5 - MD5 checksum&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;D - major/minor device number&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;L - access path (read-link)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;U - user (owner)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;G - group&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;T - mtime stamp (modification time)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Between attribute characters and the file name, the file's type (as in "purpose") may be listed. In my output I got 'c' - a configuration file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All I know now, that the checksum on the &lt;span style="font-weight: bold;"&gt;xserver &lt;/span&gt;file  cannot be verified  and that  the module archive file has  a different size, mtime and checksum (considering what type of file it is - hardly surprising).&lt;br /&gt;&lt;br /&gt;So, have I learned anything - not really, but it gave me a chance to experiment with verifying packages ;-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-113890505887743410?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/113890505887743410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=113890505887743410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113890505887743410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113890505887743410'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/02/rpm-package-verification.html' title='RPM package verification'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-113740807356575323</id><published>2006-01-16T10:04:00.000Z</published><updated>2006-11-15T23:11:05.900Z</updated><title type='text'>Working with UNIX 'epoch'</title><content type='html'>&lt;span style="font-family:arial;"&gt;An administrator friend was trying to find out on which date the last change of a password occured. He knew that this information was stored in the &lt;strong&gt;/etc/shadow&lt;/strong&gt; file.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Well, the third field of the shadow file contains a number, which is equivalent to number of days from the epoch, which for UNIX was agreed to be January 1, 1970, at midnight, UTC.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;So, let's see how we can convert this information into a meaningful date. For example, on my test machine I have:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;grep root /etc/shadow&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;root:$1$.LbW0Bv2$keqd6WlAumjwvqRl2tu6U1:13117:0:120:7:::&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The conversion is simpler that you may think - no complicated calculations, just yet another useful option of the &lt;strong&gt;date&lt;/strong&gt; command:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date -d "1970-01-01 utc + 13117 days"&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Wed Nov 30 00:00:00 GMT 2005&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The above command means: show the date based on the given "string". The string used here says: use the epoch as the base date, and add to it the value of the 3rd field (for the user of interest) from the &lt;strong&gt;/etc/shadow&lt;/strong&gt; file . &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The unit at the end of the string is important! For example, consider the following:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date +%s&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;1137404710&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date -d "1970/01/01 utc + 1137404710 sec"&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;Mon Jan 16 09:46:11 GMT 2006&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;In the above example we first convert the current date into the 'epoch' value, but expressed in seconds (notice that the &lt;strong&gt;+%s&lt;/strong&gt; formatting is only available on the GNU-enhanced versions of &lt;strong&gt;date&lt;/strong&gt;). We then used the &lt;strong&gt;date&lt;/strong&gt; command to convert this number back into a proper date format.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;You could use the output of the &lt;strong&gt;date&lt;/strong&gt; command as part of the string used in the calculations. The following is for illustration purposes only, really. It's a long-winded way of finding the 'now' date.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date -d "1970-01-01 utc + $(date +%s) sec"&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;Mon Jan 16 10:02:54 GMT 2006&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-family:arial;"&gt;Finally, the same &lt;strong&gt;-d&lt;/strong&gt; option can be used for creating any date stamp, for example:&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;Mon Jan 16 10:26:21 GMT 2006&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date -d "+ 30 min"&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;Mon Jan 16 10:56:42 GMT 2006&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date -d "+ 2 days"&lt;br /&gt;&lt;/strong&gt;Mon Jan 18 10:58:03 GMT 2006&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-113740807356575323?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/113740807356575323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=113740807356575323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113740807356575323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113740807356575323'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2006/01/working-with-unix-epoch.html' title='Working with UNIX &apos;epoch&apos;'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-113469090075761686</id><published>2005-12-15T23:36:00.000Z</published><updated>2006-11-15T23:11:05.839Z</updated><title type='text'>xhost in RHEL4</title><content type='html'>&lt;span style="font-family:arial;"&gt;I needed to illustrate how an operator could send an X application from a server to a workstation in his office (I'm talking here RHEL4 boxes).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Simple, done it loads of times - on the workstation do:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;xhost +server-name&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;On the server run the application from the command line and direct the output to the display on the workstation:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;xapplication -display workstation-name:0.0&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;WRONG&lt;/strong&gt;! It's not that simple on RHEL4! Here, you need to enable TCP first, which is done as part of &lt;strong&gt;gdm&lt;/strong&gt; (graghical desktop manager) configuration.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Run:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;gdmsetup&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Select &lt;strong&gt;Security&lt;/strong&gt; tab and notice that the following setting is "checked":&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;"Always disallow TCP connections to X server (disables all remote connections)"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Take the 'tick' off, restart the GUI (CTRL-ALT-Backspace), and all is well - the method shown above will now work.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-113469090075761686?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/113469090075761686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=113469090075761686' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113469090075761686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113469090075761686'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/12/xhost-in-rhel4.html' title='xhost in RHEL4'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-113468030563977599</id><published>2005-12-15T20:49:00.000Z</published><updated>2006-11-15T23:11:05.773Z</updated><title type='text'>I'm still about...</title><content type='html'>&lt;span style="font-family:arial;"&gt;Anybody looking at this blog would be forgiven for thinking that I've given up...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;No such luck. I'm still here, except that the project I've been involved in took me into a customer's environment where access to Internet is not easy. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;How ironic is that! Internet has clearly become a victim of its own success. I still find it incomprehesible that one might be expected to work without access to e-mail and the web, yet most of large organisations don't seem to provide these facilities to visitor even or even contractors. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Time for 3G or similar?&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-113468030563977599?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/113468030563977599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=113468030563977599' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113468030563977599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113468030563977599'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/12/im-still-about.html' title='I&apos;m still about...'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-113105454367693065</id><published>2005-11-03T20:45:00.000Z</published><updated>2006-11-15T23:11:05.709Z</updated><title type='text'>Polish your Ingres in Polish</title><content type='html'>&lt;span style="font-family:arial;"&gt;Been looking for a book on Ingres, hoping to find something on r3.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Funily enough, couldn't (and din't) find anything on amazon, etc. There are some excellent HOWTOs, notably at &lt;a href="http://www.tldp.org"&gt;www.tldp.org&lt;/a&gt;, but nothing recent - most of the documents are several years old. &lt;/span&gt;&lt;span style="font-family:Arial;"&gt;Something more contemporary could prove quite useful. Now, there is a thought ;-)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;However, found a book in a Polish on-line technical bookshop! &lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.ksiegarnia-techniczna.com.pl/modules.php?name=Sklep&amp;plik=lista&amp;amp;nazwa=opis&amp;kod=837101144X"&gt;&lt;span style="font-family:arial;"&gt;http://www.ksiegarnia-techniczna.com.pl/modules.php?name=Sklep&amp;amp;plik=lista&amp;nazwa=opis&amp;amp;kod=837101144X&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;OK, it isn't exactly up-to-date, as was published in 1994, but I still found it amusing that one exists! And at all of 6.50 zl (about £1.00), I decided to order it! &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-113105454367693065?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/113105454367693065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=113105454367693065' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113105454367693065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113105454367693065'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/11/polish-your-ingres-in-polish.html' title='Polish your Ingres in Polish'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-113050906587452641</id><published>2005-10-28T14:26:00.000+01:00</published><updated>2006-11-15T23:11:05.516Z</updated><title type='text'>Ingres 3 - part 2</title><content type='html'>&lt;span style="font-family: arial;"&gt;Well, now that the software appears fully installed and configured, the daemons all hovering in the background waiting to spring to life, time to put some data in, and see if one can ever see it again ;-)&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span style="font-family: arial;"&gt;Logged in as user &lt;span style="font-weight: bold;"&gt;ingres&lt;/span&gt;, and off we go:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[ingres@fedora4 ~]$ &lt;span style="font-weight: bold;"&gt;createdb newone&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;Creating database 'newone' . . .&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;    Creating DBMS System Catalogs . . .&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;    Modifying DBMS System Catalogs . . .&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;    Creating Standard Catalog Interface . . .&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;    Creating Front-end System Catalogs . . .&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;Creation of database 'newone' completed successfully.&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;So far so good, now have a go at creating then selecting some data:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[ingres@fedora4 ~]$ &lt;span style="font-weight: bold;"&gt;sql newone&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;INGRES TERMINAL MONITOR Copyright 2005 Computer Associates Intl, Inc.&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;Ingres Linux Version II 3.0.2 (int.lnx/105) login&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;Fri Oct 21 09:49:07 2005&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;continue&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;* &lt;span style="font-weight: bold;"&gt;create table t1 (col1 char(20));&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;* &lt;span style="font-weight: bold;"&gt;insert into t1 values ('hello world');&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;* &lt;span style="font-weight: bold;"&gt;select * from t1&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;* &lt;span style="font-weight: bold;"&gt;\g&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;Executing . . .&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;(1 row)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;┌────────────────────┐&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;│col1                │&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;├────────────────────┤&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;│hello world         │&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;└────────────────────┘&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;(1 row)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;continue&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;* &lt;span style="font-weight: bold;"&gt;\q&lt;/span&gt;&lt;br /&gt; &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;Your SQL statement(s) have been committed.&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: courier new;"&gt;Ingres Version II 3.0.2 (int.lnx/105) logout&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-size:85%;"&gt;Fri Oct 21 09:52:46 2005&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;So, what's the conclusion? Well, I'm very impressed.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt; &lt;span style="font-family: arial;"&gt;I suppose I will encounter some problems with the very installation I have just completed, as there are specific environmental settings, as well as  kernel parameters that I did not investigate and adjust.&lt;br /&gt;&lt;br /&gt;Another important issue a chose to totally ignore is that of user identity when performing the download and installation. This should also have been identified and used correctly. However, what the above exercise proved, is that Ingres for Linux is fine, and can be used 'out of box'.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Basic installation and configuration is simple - if the defaults are fine for you, that is!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-113050906587452641?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/113050906587452641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=113050906587452641' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113050906587452641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/113050906587452641'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/10/ingres-3-part-2.html' title='Ingres 3 - part 2'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112990700319367331</id><published>2005-10-21T14:32:00.000+01:00</published><updated>2006-11-15T23:11:05.447Z</updated><title type='text'>Ingres 3 - part 1</title><content type='html'>&lt;span style="font-family:arial;"&gt;A customer of ours is planning an upgrade to &lt;strong&gt;Ingres3&lt;/strong&gt;, whilst changing from Dynix to Linux at the same time. So I thought that I'd refresh my acquaintance with Ingres, since I haven't seen this version yet. I have had some experience of looking after a Linux system running &lt;strong&gt;Ingres&lt;/strong&gt;, but this is the first time I'll be installing r3 myself. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;At this stage I'm not even sure that what I'm doing will work. This is going to be what I call a dry run - I'm going to play it by ear, following the installation steps intuitively, rather than following any particular set of instructions - so, the following steps should be taken more as a log of events, rather than a tutorial. I had a look at &lt;a href="http://www.tldp.net/"&gt;www.tldp.net&lt;/a&gt; , which does have an ingres HOWTO, but it is a really old one, and although most of the document might be OK, I decided not to risk it ;-). At least this way I will have to use some brain cells.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;You've been warned! To emphasize the point, here is a quote from the "Ingres r3 Getting Started" document (part of the downloaded documentation package):&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;"Note: Make sure you thoroughly understand the issues regarding system resources, storage locations, and other configuration parameters before installing Ingres. If you are not sure, have someone more knowledgeable in these areas perform the following tasks."&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;I have not even checked or tested that system requirements are good enough - here is the briefest of specs: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;I'm using Compaq nc6120, with 2G RAM, inside a VMWare virtual machine with Fedora Core 4.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;So, to the installation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Step 1 ================================================================&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Download the following files from CA site: &lt;a href="http://opensource.ca.com/projects/ingres/"&gt;http://opensource.ca.com/projects/ingres/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;ingres-3.0.2-105-pc-linux-i386.tgz &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;ingresr3documentation.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;You will need to register with CA first.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Step 2 ================================================================&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Prepare for the installation: create 'infrastructure' and unpack the tarballs.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;mkdir -p ingres/documentation&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;U&lt;/span&gt;&lt;span style="font-family:arial;"&gt;npack the documentation. I chose to separate the documentation (PDF files) from the installation software. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family:courier new;"&gt;#&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;cp ./ingresr3documentation.tar.gz ingres/documentation&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;(cd ingres/documentation; tar xzvf ingresr3documentation.tar.gz)&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Unpack the Ingres 3 software&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;cd ingres&lt;/strong&gt;; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;tar xzvf ingres-3.0.2-105-pc-linux-i386.tgz&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;cd ingres-3.0.2-105-pc-linux-i386&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Step 3 ================================================================&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Perform the installation&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Need to run the Licence scripts first, to accept the conditions. The main database installation script won't work until you do this one first. Trust me, I know this from experience ;-)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;./ingres-CATOSL&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Can now run the main &lt;strong&gt;Ingres 3&lt;/strong&gt; installation script.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;./*install&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Invoking RPM...&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Preparing... ################################ [100%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: System user ingres has been created but no password has been set.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Please set the password to enable login for this user.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 1:ca-ingres ################################ [ 6%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: II_INSTALLATION configured as II.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 2:ca-ingres-dbms ################################ [ 12%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Setting up Ingres Intelligent DBMS, this may take some time...&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: See /opt/CA/IngresII/ingres/files/install.log for more info.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 3:ca-ingres-net ################################ [ 18%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Building the password validation program 'ingvalidpw'.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Could not compile ingvalidpw: Using executable from the distribution instead.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Executable successfully installed.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 4:ca-ingres-qr_run ################################ [ 24%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 5:ca-ingres-abf ################################ [ 29%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 6:ca-ingres-c2audit ################################ [ 35%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 7:ca-ingres-das ################################ [ 41%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 8:ca-ingres-esql ################################ [ 47%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: 9:ca-ingres-ice ################################ [ 53%]&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Setting up Ingres Web Deployment Option, this may take some time..&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: See /opt/CA/IngresII/ingres/files/install.log for more info&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: ngres release 3 has installed successfully.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: The instance will now be started...&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: &lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;INSTALL OUTPUT: Starting Ingres, instance &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;So, the following &lt;strong&gt;Ingres&lt;/strong&gt; packages have been installed:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;rpm -qa | grep ingres&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-net-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-das-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-odbc-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-tuxedo-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-CATOSL-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-dbms-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-qr_run-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-c2audit-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-esql-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-jdbc-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-ome-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-star-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-vision-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-abf-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-ice-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-rep-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ca-ingres-documentation-3.0.2-105&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Service 'rc' file has been installed:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;ls -l /etc/init.d/ingres*&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;-rwxr-xr-x 1 root root 7187 Oct 20 19:27 /etc/init.d/ingresII&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Indeed: the service list in the runlevel 5 lists the following:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;Ingres II name server (iigcn) - running &lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;Ingres II recovery server (dmfrcp) - running &lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;Ingres II DBMS server (iidbms) - 1 running &lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;Ingres II Star server (iistar) - 1 running &lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;Ingres II Net server (iigcc) - 1 running &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-family:courier new;"&gt;I&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;ngres II Data Access server (iigcd) - 1 running &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;Ingres II JDBC server (iijdbc) - not active &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-size:0;"&gt;I&lt;/span&gt;&lt;span style="font-size:0;"&gt;ngres II RMCMD process (rmcmd) - running &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;Ingres II archiver process (dmfacp) - running&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;And, sure enough, loads of &lt;strong&gt;Ingres&lt;/strong&gt; processes are running:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;ps -ef | grep ingres&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 25691 1 0 19:34 pts/1 00:00:00 /opt/CA/IngresII/ingres/bin/iigcn II&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 25805 1 0 19:34 pts/1 00:00:02 /opt/CA/IngresII/ingres/bin/iidbms recovery (dmfrcp) II&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 25925 1 0 19:34 pts/1 00:00:01 /opt/CA/IngresII/ingres/bin/dmfacp II&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 25935 1 0 19:34 pts/1 00:00:19 /opt/CA/IngresII/ingres/bin/iidbms dbms (default) II&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 26079 1 0 19:34 pts/1 00:00:00 /opt/CA/IngresII/ingres/bin/iigcc II gcc&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 26135 1 0 19:34 pts/1 00:00:00 /opt/CA/IngresII/ingres/bin/iigcd II gcd&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 26189 1 0 19:34 pts/1 00:00:02 /opt/CA/IngresII/ingres/bin/iistar star (default) II&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;ingres 26270 1 0 19:34 pts/1 00:00:02 /opt/CA/IngresII/ingres/bin/rmcmd II&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;That's all for this posting - next time, I'll see if my common sense approach worked. Chances are that many settings, variables, locations (possibly even additional libraries, etc) will have to be tweaked, adjusted, added... &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;Why am I so pessimistic? Well, it's just that it's been going too well so far! ;-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112990700319367331?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112990700319367331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112990700319367331' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112990700319367331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112990700319367331'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/10/ingres-3-part-1.html' title='Ingres 3 - part 1'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-112988489978921278</id><published>2005-10-21T09:19:00.000+01:00</published><updated>2006-11-15T23:11:05.381Z</updated><title type='text'>Commenting out a block of lines in a script</title><content type='html'>Everybody knows of the '#' character as the character allowing to comment out lines that are not meant to be interpreted by the shell in a shell script.&lt;br /&gt;&lt;br /&gt;Well, how cumbersome and untidy it ends up sometimes! Imagine you have a block of code, perhaps a big &lt;strong&gt;for-do-done&lt;/strong&gt; loop, or a complex &lt;strong&gt;if-elif-else-fi&lt;/strong&gt; statement and you need to, &lt;em&gt;temporarily&lt;/em&gt;, take it out of the script for some reason. Inserting hash in front of each line, and then removing it again when done with whatever test you wanted to conduct is just plain messy.&lt;br /&gt;&lt;br /&gt;Ok, you could argue that this can be done nicely in &lt;strong&gt;vi&lt;/strong&gt; :&lt;br /&gt;&lt;br /&gt;First, identify line numbers with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;:set nu&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;:10,30s/^/# /&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;will insert the hash at the begining of line, on lines 10 through 30, but even this is long-winded, and if you are using another editor, then the method may not be available at all.&lt;br /&gt;&lt;br /&gt;The alternative is to use a combination of the 'do nothing' command: the colon command, and the 'here document'. Imagine the following construct:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;:  &lt;&lt;&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;   ....&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;   ....&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;   ....&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;BLOCK-OF-LINES-COMMENTED-OUT&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;You can easily move the two lines up and down the script, and isolate the blok of line you don't want to 'participate' at run time.&lt;br /&gt;&lt;br /&gt;How does it work? The colon command means 'do nothing', but generate exit status&lt;strong&gt; 0&lt;/strong&gt;, success. The way we are using it here is: 'do nothing, and whilst doing this ;-) use stream of data provided as 'here document'. This embedded data is not not interpreted by the shell at run time, so it hides our code!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112988489978921278?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112988489978921278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112988489978921278' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112988489978921278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112988489978921278'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/10/commenting-out-block-of-lines-in.html' title='Commenting out a block of lines in a script'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112955765403068783</id><published>2005-10-17T11:14:00.000+01:00</published><updated>2006-11-15T23:11:05.276Z</updated><title type='text'>The case in date</title><content type='html'>Tha date command, one of the eldest tools in Unix has got one quirk that escaped me all those years. As usual with these things, it was a delegate who pointed this out to me, with a wry smile.&lt;br /&gt;&lt;br /&gt;A bit of background first. If you need to extract hour and minutes from the date command, you'd probably use:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date +%H:%M&lt;/strong&gt;&lt;br /&gt;14:48&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The little 'inverted polish logic' (is that why they keep telling me these things? ;-) ) is if you try to use the AM/PM indicator, achieved with the 'p' options.&lt;br /&gt;&lt;br /&gt;Try the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date +%H:%M\ %p&lt;/strong&gt;&lt;br /&gt;14:49 PM&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Then try:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;date +%H:%M\ %P&lt;/strong&gt;&lt;br /&gt;14:49 pm&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Don't know the background to this, but it does appear a deliberate tease ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112955765403068783?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112955765403068783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112955765403068783' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112955765403068783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112955765403068783'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/10/case-in-date.html' title='The case in date'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-112941123969008420</id><published>2005-10-15T22:17:00.000+01:00</published><updated>2006-11-15T23:11:05.165Z</updated><title type='text'>Pleasures of a tight-fit hangar</title><content type='html'>&lt;a href="http://photos1.blogger.com/blogger/5409/975/640/DSC00712.jpg"&gt;&lt;img style="CLEAR: all; FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger/5409/975/320/DSC00712.jpg" border="0" /&gt;&lt;/a&gt;  A Pup (150) embracing a Robin (400)&amp;nbsp;&lt;a href='http://picasa.google.com/' target='ext'&gt;&lt;img src='http://photos1.blogger.com/pbp.gif' alt='Posted by Picasa' style='border: 0px none ; padding: 0px; background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;' align='middle' border='0' /&gt;&lt;/a&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112941123969008420?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112941123969008420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112941123969008420' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112941123969008420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112941123969008420'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/10/pleasures-of-tight-fit-hangar.html' title='Pleasures of a tight-fit hangar'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112887238229338055</id><published>2005-10-09T16:31:00.000+01:00</published><updated>2006-11-15T23:11:05.097Z</updated><title type='text'>Still the best kept secret?</title><content type='html'>I'm amazed how many people are still not aware of what Linux is! And I don't mean any Fred (sorry to all Freds out there!) off the street. I mean IT professionals, who come and join our UNIX classes. OK, so it was a Unix Fundamentals I'm referring to in particular; but even then, I would expect a bit more appreciation of the players in the industry.&lt;br /&gt;&lt;br /&gt;We give away a Knoppix disk on our UNIX/Linux courses. Frequently people ask - "what's that?". In itself, this is not an unexpected question, after all Knoppix is not a distribution talked about in board rooms. But when I answer: "it's a distribution of Linux, which...." and I still get a follow up "what's that?", then I do despair!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112887238229338055?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112887238229338055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112887238229338055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112887238229338055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112887238229338055'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/10/still-best-kept-secret.html' title='Still the best kept secret?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112799991802077717</id><published>2005-09-29T11:21:00.000+01:00</published><updated>2006-11-15T23:11:04.981Z</updated><title type='text'>Playing with pdksh redirection</title><content type='html'>We often test the understanding of the command line scan by asking if the following will work:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$&lt;strong&gt; &gt; /tmp/file1 2&gt; /tmp/file2           &lt;/span&gt;&lt;/strong&gt;(*)&lt;br /&gt;&lt;br /&gt;This week, been faced with questions exploring this further. For example, notice that:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$&lt;strong&gt; &gt;log ( ps; who; df )&lt;/strong&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;will work, so will&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;&gt; log10 &lt; /etc/hosts (while read -r line; do print $line; done )&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(*) It will (as long as file exists). The shell opens all three files during the scan, and &lt;strong&gt;cat&lt;/strong&gt; will be the only word remaining on the command line. In simple terms. the shell will look after the 'connectivity' between &lt;strong&gt;cat&lt;/strong&gt;'s I/O streams and the files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112799991802077717?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112799991802077717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112799991802077717' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112799991802077717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112799991802077717'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/09/playing-with-pdksh-redirection.html' title='Playing with pdksh redirection'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-11830016.post-112728988379893764</id><published>2005-09-21T08:45:00.000+01:00</published><updated>2006-11-15T23:11:04.908Z</updated><title type='text'>SCO is fighing back ?</title><content type='html'>I hear that SCO are teaming up with MySQL! Must check it out - should we await MySQL license requirement soon ?  ;-))&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;Daily Hintlet&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The ps command is one of the most underused tools! Experiment with &lt;strong&gt;-o&lt;/strong&gt;, which allows you to format the output. For example, try the following:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;ps -C ksirtet -o pid=&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Obviously, if you are not currently playing &lt;em&gt;tetris&lt;/em&gt;, substitute &lt;strong&gt;ksirtet&lt;/strong&gt; for another active process ;-)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112728988379893764?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112728988379893764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112728988379893764' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112728988379893764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112728988379893764'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/09/sco-is-fighing-back.html' title='SCO is fighing back ?'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112685670529917916</id><published>2005-09-16T07:52:00.000+01:00</published><updated>2006-11-15T23:11:04.819Z</updated><title type='text'>Terminal capabilities</title><content type='html'>I remember going back years and years, having to use an application which was meant to be displayed on a &lt;strong&gt;Prestel&lt;/strong&gt; terminal. &lt;strong&gt;Prestel&lt;/strong&gt; is a simple screen protocol, of 40 columns x 24 rows, still used in some places (mostly in Europe). It's got some interesting features, such as fixed colours for certain facilities. Can't remember much of the detail anymore, but I'm sure that, for example, the background colour is like choosing an old Ford - any colour you want, as long as it is black. Quite peculiar.&lt;br /&gt;&lt;br /&gt;This was the project, however, that tought me a lot about &lt;strong&gt;terminfo&lt;/strong&gt; database and tools associated with creating and manipulating the terminal capability files. The &lt;strong&gt;terminfo&lt;/strong&gt; database is in fact a collection of hundreds of individual files, each containing a description of one terminal type. These are data files, you can't 'touch' them with &lt;strong&gt;cat&lt;/strong&gt; or &lt;strong&gt;more&lt;/strong&gt;, but feel free (as root) to convert it into text with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# &lt;strong&gt;infocmp /usr/share/terminfo/v/vt100 &gt; /tmp/vt100.txt&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you needed to create a new terminal file, you'd pick up the most suitable (similar) existing one, modify it (using data from the hardware manual provided with your new terminal) and submit it into the &lt;strong&gt;terminfo&lt;/strong&gt; system with the &lt;strong&gt;tic&lt;/strong&gt; command (&lt;strong&gt;t&lt;/strong&gt;erm&lt;strong&gt;i&lt;/strong&gt;nfo &lt;strong&gt;c&lt;/strong&gt;ompiler).&lt;br /&gt;&lt;br /&gt;These days one gets 'drivers' for every screen one can think of (and few more), but understanding of the terminfo still helps - as you can then implement scripts, menus, etc, using some of the more advanced screen control techniques.&lt;br /&gt;&lt;br /&gt;For example, many people know of the &lt;strong&gt;tput&lt;/strong&gt; command, that allows to manipulate the screen on an ad hoc bases. This command uses the capabilities file indicated by your &lt;strong&gt;TERM&lt;/strong&gt; variable.  To check, type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;echo $TERM&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you are looged into Linux, that is very likely &lt;strong&gt;xterm&lt;/strong&gt;, and the file used is &lt;strong&gt;/usr/share/terminfo/x/xterm&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt;If you've never seen &lt;strong&gt;tput&lt;/strong&gt; in action, log onto any Unix or Linux box, open any terminal session and type:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;tput bold; echo hello world; tput rev; echo and again; tput rsg0&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The fun starts when you begin to utilise some of the more obscure features, such a colour or placement control. Try the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;red=$(tput setf 4)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;echo "${red}$(tput cup 10 20)hello world"&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;setf&lt;/strong&gt; argument allows to control the character colour, whereas &lt;strong&gt;cup x y&lt;/strong&gt; will send the cursor to column x row y of your screen.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;DailyHintlet&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;To find out more about the screen capabiliites and arguments to &lt;strong&gt;tput&lt;/strong&gt; look at the manual pages for &lt;strong&gt;terminfo&lt;/strong&gt;, as well as &lt;strong&gt;tput&lt;/strong&gt;. There is a lot more useful stuff there, for example there is an explanation of why &lt;strong&gt;setf 4&lt;/strong&gt; might mean red on one ocassion but green on another!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112685670529917916?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112685670529917916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112685670529917916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112685670529917916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112685670529917916'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/09/terminal-capabilities.html' title='Terminal capabilities'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112676897495218276</id><published>2005-09-15T08:07:00.000+01:00</published><updated>2006-11-15T23:11:04.752Z</updated><title type='text'>DailyHintlets</title><content type='html'>&lt;div align="justify"&gt;I found that doing a decent write-up on any particular thought or a 'discovery', etc takes time, and for that reason I often delay posting, to the point that the thought is gone, and opportunity for recording it missed.&lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt;So, from now on, in addition to sometimes longer ellaborations, I will now have a snappy entry, called "DailyHintlet". They will usually be one-liner solutions, examples, thoughts, etc. Often they will be bits of information I've learned from the delegates! &lt;/div&gt;&lt;div align="justify"&gt; &lt;/div&gt;&lt;div align="justify"&gt;Despite the name, I don't really expect them to be posted daily, just liked the title ;-)&lt;/div&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:arial;color:#330099;"&gt;DailyHintlet&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;color:#330099;"&gt;In &lt;strong&gt;GRUB&lt;/strong&gt; configuration, the scope of the &lt;strong&gt;password&lt;/strong&gt; directive changes, depending on where it is applied. If applied in the general definitions section, it controls ability to edit the configuration file. If applied within a stanza paragraph, it controls the access to (ability to boot) that kernel. &lt;/span&gt;&lt;/div&gt;&lt;div align="right"&gt;&lt;span style="font-family:times new roman;font-size:78%;color:#330099;"&gt;(Ghanny from CompuCentre - thank you for correcting my lab solutions)&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:Arial;color:#330099;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112676897495218276?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112676897495218276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112676897495218276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112676897495218276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112676897495218276'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/09/dailyhintlets.html' title='DailyHintlets'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112600295057752531</id><published>2005-09-06T11:05:00.000+01:00</published><updated>2006-11-15T23:11:04.686Z</updated><title type='text'>grep with -E option</title><content type='html'>One of the most confusing things newbies face when learning Unix is having to grasp regular expressions. Having gone through the pains of learning the globbing (wildcards) and other shell specials, only a couple of days later we throw them all into air (characters, that is - not the delegates) and try to catch them again!&lt;br /&gt;&lt;br /&gt;It's interesting to watch the delegates try to rationalise it all... What usually finishes them off, is the use of the counting mechanism, whereby one can specify how many instances of a character or a pattern is expected.&lt;br /&gt;&lt;br /&gt;For example: to locate lines (in &lt;em&gt;datafile&lt;/em&gt;) with at least 4 characters using &lt;strong&gt;grep &lt;/strong&gt;could be done simply with (remember, in regular expressions dot means any one character):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;grep '....' datafile&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But if you want to locate lines containing &lt;em&gt;exactly&lt;/em&gt; four characters, &lt;strong&gt;grep&lt;/strong&gt; is taking on a bit more complex detail. The counting mechanism used needs to be 'switched on' with the use of the backslash.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;grep '^.\{4\}$' datafile&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The delegates are by this stage happy (ish) with the 'anchoring' characters (&lt;strong&gt;^&lt;/strong&gt; and &lt;strong&gt;$&lt;/strong&gt;) and know that this means tying the pattern to the beginning and end of line, respectively. What freaks them out is that &lt;strong&gt;\{  \}&lt;/strong&gt; notation.&lt;br /&gt;&lt;br /&gt;I like using it, because it allows me to complete the explanation of the backslash usage in Unix - you use it to toggle a special-meaning of a character. We normally use it to turn the special meaning of a character off. In the counting notation of &lt;strong&gt;grep&lt;/strong&gt;, we use it for the exactly opposite purpose. Here, it means turn the special meaning of the curly brackets &lt;em&gt;&lt;strong&gt;on &lt;/strong&gt;&lt;/em&gt;(and make it count the character specified in front of it).&lt;br /&gt;&lt;br /&gt;But, I will have to find a different example to illustrate the use of the backslash; I just can't justify for much longer keeping quiet about the &lt;strong&gt;-E&lt;/strong&gt; option one can use with &lt;strong&gt;grep&lt;/strong&gt;. This allows the use of the set of extended regular expressions, in which counting is part of the default, and the &lt;strong&gt;{  }&lt;/strong&gt; notation is taken to mean counting without any additional measures...&lt;br /&gt;&lt;br /&gt;Therefore, the last example could be re-written with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ &lt;strong&gt;grep -E '^.{4}' datafile&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Much simpler, and less confusing...&lt;br /&gt;&lt;br /&gt;Why sudden change of heart? Had an e-mail from a delegate along the lines of: "Alina, did you know that..."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112600295057752531?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112600295057752531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112600295057752531' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112600295057752531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112600295057752531'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/09/grep-with-e-option.html' title='grep with -E option'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112559477562354503</id><published>2005-09-01T18:05:00.000+01:00</published><updated>2006-11-15T23:11:04.614Z</updated><title type='text'>Memory stick Duo and HP 6120...</title><content type='html'>...do not work together!&lt;br /&gt;&lt;br /&gt;HP 6120 comes with a fancy digital card reader port. It takes every card. Apparently. What was not documented very well, is that the new format memory sticks, such as the Magic Gate ones, do not (and will not) work. Indeed, some of the sites on the web warn you against using them, as you can corrupt the card.&lt;br /&gt;&lt;br /&gt;So, I thought I'd get a PCMCIA card, with the memory stick adapter. Guess what! I have found a way of predicatably generating a blue screen of death on XP!&lt;br /&gt;&lt;br /&gt;And that's after being convinced by many that this is now in the past. It actually is blue, even if it doesn't last long, not even long enough for me to read the info (not that I would really want to).&lt;br /&gt;&lt;br /&gt;So, off to Jessops again, to get a USB external reader. More bits to carry. &lt;br /&gt;&lt;br /&gt;Lack of standards is getting at me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112559477562354503?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112559477562354503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112559477562354503' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112559477562354503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112559477562354503'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/09/memory-stick-duo-and-hp-6120.html' title='Memory stick Duo and HP 6120...'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112359222719758649</id><published>2005-08-09T13:48:00.000+01:00</published><updated>2006-11-15T23:11:04.544Z</updated><title type='text'>I'm back</title><content type='html'>A gap, mostly down to my swapping the hardware, and spending ages on installing, re-installing and configuring machines.&lt;br /&gt;&lt;br /&gt;I now have a brand new (QA's, I must add) HP6120, with all the spec necessary to run VMWare workstation 5, with RHEL4, Fedora 4, Solaris 10 and SuSE 9.3 running withing it.&lt;br /&gt;&lt;br /&gt;Quite impressive! Of those listed above, Solaris 10 is having the greatest problems. Mostly because there isn't yet vmware-tools program for Solaris, which means that things like screen resolution, cut and paste and sharing directories with other virtual machines is at best limited, at worst non-existent.&lt;br /&gt;&lt;br /&gt;But very impressive otherwise. The 2Gig RAM is a must for this kind of configuration, and with it you can have all guests open and running. &lt;br /&gt;&lt;br /&gt;Good stuff!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112359222719758649?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112359222719758649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112359222719758649' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112359222719758649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112359222719758649'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/08/im-back.html' title='I&apos;m back'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112194114194840528</id><published>2005-07-21T10:58:00.000+01:00</published><updated>2006-11-15T23:11:04.469Z</updated><title type='text'>Counting patterns in KSH</title><content type='html'>I was explaining the pattern matching in the shell earlier today, and used a very unfortunate example for explaining the "exactly one" pattern:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;if [[ $var == @([0-9])% ]]; then...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have (correctly) explained the above pattern as exactly one digit followed by a percent sign. One of the delegates asked me: why use the fancy characters? Wouldn't the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;if [[ $var == [0-9]% ]]; then...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;be the same? And if so, what's the point of the additional characters! Got me going for a moment! The answer is in the poorly chosen example. Although it works, one would never use the 'exact one' counting in relation to a single pattern specification.&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-family: courier new;"&gt;@(...) &lt;/span&gt;notation is used when you need to 'count' alternative patterns, as in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;if [[ $var == @(+|-)[0-9] ]]; then...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Without the @ character, the brackets needed for enveloping the alternative patterns would not work:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;if [[ $var == (+|-)[0-9] ]]; then...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ksh: syntax error: '==' missing second argument&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And without the brackets altogether:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;if [[ $var == +|-[0-9] ]]; then...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;gives:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ksh: syntax error: '|' unexpected operator/operand&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112194114194840528?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112194114194840528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112194114194840528' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112194114194840528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112194114194840528'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/07/counting-patterns-in-ksh.html' title='Counting patterns in KSH'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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-11830016.post-112187649037034193</id><published>2005-07-20T17:09:00.000+01:00</published><updated>2006-11-15T23:11:04.404Z</updated><title type='text'>Bootable Knoppix</title><content type='html'>I'm teaching the shell scripting course, and as usual I'm being asked if we have access to the Internet. &lt;br /&gt;&lt;br /&gt;We normally don't allow the Internet in the classroom (unless it is needed for the course, of course). We just need to take away a temptation of browsing the net in the middle of a session, as we (the lecturers) are a vain lot, and can take such behaviour personally ;-)&lt;br /&gt;&lt;br /&gt;Now, however, my approach has changed! This week, having asked Del to connect the class to the net, instead sending the deles to our Internet cafe's, I told them to reboot their boxes from the Knoppix CD, and use it for e-mail at breaks or lunch. The process of rebooting the machines is short enough to make it viable, but long enough to stop them from abusing it.  &lt;br /&gt;&lt;br /&gt;That means the best of both worlds! No interruption during lectures, yet they can access their e-mail. Will be recommending this method to our MS-Windows lecturers ;-))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11830016-112187649037034193?l=flyingunix.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flyingunix.blogspot.com/feeds/112187649037034193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=11830016&amp;postID=112187649037034193' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112187649037034193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11830016/posts/default/112187649037034193'/><link rel='alternate' type='text/html' href='http://flyingunix.blogspot.com/2005/07/bootable-knoppix.html' title='Bootable Knoppix'/><author><name>Alina</name><uri>http://www.blogger.com/profile/02782922920969500544</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></feed>
