You are here

Linux

Quoting options in bash paramenters

I have spend hours searching for the answer to this problem, so now I have found it I will post it.

Demonstrate problem

Suppose I have a program that takes an option in the form:

myprog -t "Title of Document"

To test this we will create a script: testopt.sh

#!/bin/bash
echo option: «$1», title: «$2», ignore: «$3»
Topic: 

Installing Microsoft Access on Crossover Office

Office 97

  1. Install package from CD
  2. From a previous Windows install, copy system.mdw into .cxoffice/Microsoft Office 97/drive_c/windows/system32
    3. Download SR1, SR2b and the jet upgrade to SR2
  3. Open the C/O bottle, find the run command and run each service pack in turn

Note that this crashed when I tried to open an Access form

Office XP

  • Installing into a Win98 bottle
  1. Install package from CD
  2. Download InstMsiA.exe - the Windows Installer 2.0 Redistributable for Windows 95, 98
  3. Download SP3 for office XP
  4. Open the C/O bottle, find the run command and run both in turn
  5. To install an ODBC connector, don’t use the run command, but use Applications/Install Software within CXO. Alternatively you can run the following:
/opt/cxoffice/bin/wine --bottle "Microsoft Office XP" --verbose --wl-app msiexec /i name-of-connector.msi
  • It seems to work so far

Office XP install into XP bottle

  1. Install Office XP SP3 from CD
  2. Install MDAC (latest version)
  3. Download and install MySQL connector
Topic: 

Benchmark for Linux

Here are a few CPU oriented benchmarks for Linux.

I am not sure if they are available in packages for CentOS, so I have only given the Ubuntu packages:

(Please note that you will have to enable the community repositories for these)

Topic: 

rebuilding initrd

#to unpack into a new folder
initfile=/mnt/initrd-2.6.18-194.11.1.el5.img
mkdir new; cd new
gunzip

#make changes and rebuild with:
find ./ | cpio -H newc -o > ../initrd.cpio
cd ..
gzip initrd.cpio
mv $initfile ${initfile}.old
mv initrd.cpio.gz $initfile

Topic: 

Gnome shortcut keys

General keyboard shortcuts

Ctrl+A = Select all (In Documents, Firefox, Nautilus, etc, not Terminal)
Ctrl+C = Copy (In Documents, Firefox, Nautilus, etc, not Terminal)
Ctrl+V = Paste (In Documents, Firefox, Nautilus, etc, not Terminal)

F9 = Toggle Sidebar
F2 = Rename
Ctrl+Shift+N = Create new folder

Topic: 

Installing NX Server

  • Install NX (info from this page: http://www.nomachine.com/download-package.php?Prod_Id=355 )

    CentOS 6.0 64bit

    yum install wget #must be logged on as root
    NXVER=3.5.0
    CVER=7
    NVER=9
    SVER=5
    ARCH=x86_64
    NXURL=http://64.34.173.142/download
    wget $NXURL/$NXVER/Linux/nxclient-$NXVER-$CVER.$ARCH.rpm
    wget $NXURL/$NXVER/Linux/nxnode-$NXVER-$NVER.$ARCH.rpm
    wget $NXURL/$NXVER/Linux/FE/nxserver-$NXVER-$SVER.$ARCH.rpm
    rpm -i nxclient-$NXVER-$CVER.$ARCH.rpm
    rpm -i nxnode-$NXVER-$NVER.$ARCH.rpm
    rpm -i nxserver-$NXVER-$SVER.$ARCH.rpm

yum

Documentation:

  • access.redhat.com/…tories.html
  • www.centos.org/…yum/index.html
  • from Redhat:
    To define a new repository, you can either add a [repository] section to the /etc/yum.conf file, or to a .repo file in the /etc/yum.repos.d/ directory. All files with the .repo file extension in this directory are read by yum, and it is recommended to define your repositories here instead of in /etc/yum.conf.
Topic: 

Pages

Subscribe to RSS - Linux