nfs on enterprice linux - to be continued

This is just a resume from the things I read in some articles and things I experience while applying them.

0. Point Zero
Some considerations are in place.
NFS stands for Network File System, or ... you need a network and you need a filesystem to be shared. This latter is in a certain way a big limitation of the possibilities of NFS. it is not possible to share a subdirectory of a filesystem.

a. Use an nfs share

a.1. verify the portmapper is running
To do this run
rpcinfo -p
The portmapper should be in the list that is returned.

a.2. Mount the share
Just use the mount command telling the type of drive is nfs and the location where to find the share and how the share is called.
$> mount -t nfs :
example:
mount -t nfs mynfsserver:software /remoteshares/software
The location must exist upfront.

To unmount
$> umount

b. Create an nfs share

b.1. define the shares that may be exported
The shares are defined in the /etc/exports file.
Look to this location for information on the possible options.
A very simple example of the file
/Software *.hellings.be(ro)
/Share *.hellings.be(rw,all_squash,anonuid=100,anongid=100)

use exportfs to update the mountd tables.
$> exportfs -rav

b.2. (re)start the nfs server
This depends on how nfs has been installed.
If installed as a service use
service nfs restart

c. Mounting nfs shares at boot time

A line should be added to the fstab file in /etc.
Look in the referenced articles for further details.
It should look something like
: nfs rw 0 0
nfs is the type of filesystem
rw can be elaborated with a lot of other options
0 (this is the number zero) is the dump indicator
0 (again ... zero) is the fsckorder flag.

d. What about permissions on nfs share drives?

Not investigated yet .... sorry ...
The only thing is that you can set a 'replacement' user and group on the level of the nfs-share definition in the /etc/exports file, using the anonuid and anongid options. this in combination with all_in_squash option.

e. References
This is the original article

NFS reference pages
...

vncserver on enterprise linux

In order to have a vnc graphical desktop to your server do the following:

Check if vncserver exists.
If not ... install the package (see other forums)
If installed:

Connect to the unix box as the user that needs to be connected to the linux box via the vncserver.

Step1: init vncfiles for user
Launch the command vncserver.
This will create the required files and config settings in the users home directory.
You will notice the reference of a desktop id, something like :1
Use this referenct to stop the vncserver again by issueing the following command:
vncserver -kill :1

Step2: Enable X for the users remote desktop
Go to the home directory ( simply cd )
Go to the .vnc directory
Edit the file xstartup by uncommenting two lines:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
so that you get
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
Save the file.

Step3: Initialise the vnc password
Launch the command vncpasswd.
Enter two times the password.
This will initialise the password for the user via which you will be connecting

Step 4: Start vncserver again
This step is only required if you want to run vnc not as a service but for restricted time periods.
Issue the command vncserver
Look at the reference the vncserver indicates, eg :1 or something like it.
Make a connection by a vncviewer using the host:reference

Step5: configure the service
Connect as root user
Go to the directory /etc/sysconfig
Modify the file vncserver as root user.
Look at the bottom of the file and duplicate the two lines.
In the pasted lines:
  • uncomment them (remove the # character)
  • in the line VNCSERVERS change the myusername by the user under which you created in steps 1 to 3 the config files
  • In the line VNCSERVERARGS remove the option -localhost
    This would prevent you from connecting from an other host.
(Step 6: What if you need different vnc servers with different users)
This step is optional.
Basically this is very easy.
Just perfom Steps 1 to 3 for each unix user you want to make available via vnc.
So
  • connect as the unix user on the box
  • start vncserver, defaulting the vnc-password of that user
  • stop the vncserver
  • go to directory ~/.vnc
  • uncomment the two lines in the xstartup file
The tricky bit is located in the startup script for the vncserver service. (step 5)
The first line should contain a list of the different displays with the corresponding unix users.
The second line should be repeated for every display that you entered in the list of displays in the first line. For each of the displays specific settings can be done.
The next is an example of two displays with two users:

VNCSERVERS="1:oracle 2:defaultuser"
VNCSERVERARGS[1]="-geometry 1200x1024 -nolisten tcp -nohttpd"
VNCSERVERARGS[2]="-geometry 1200x1024 -nolisten tcp -nohttpd"

Step 7: enable automatic startup of vncserver

Vncserver should be started at the multiuser runlevel, ie runlevel 5.

To enable this perform the following command as root user:
    chkconfig --level 5 vncserver on

To verify the setting in the runleve the following command can be used:
         chkconfig --list | grep vnc

Hope this helps
Yours

Samba Via Vista

If you're running a version of Vista that cannot use secpol.msc, you can edit the registry instead. Just change the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\LMCompatibilityLevel from a 3 to 1
--> This seems a valid solution in Win7
--> See MS helpsite

Attest van de RVA voor aanvraag tijdskrediet

Voor het aanvragen van tijdskrediet ben je verplicht een document aan de werkgever voor te leggen waaruit blijkt dat je nog recht hebt op het gevraagde tijdskrediet.
De instantie die in Belgiƫ dit document aanlevert heeft een portaalsite via dewelke je dit document kan bekomen.
Hierna volgt de procedure zoals die in september 2009 was.
Via de volgende URL kan u direct naar de meest adequate pagina springen. De procedure hierna dient u dan echter maar te volgen vanaf de stap die aangegeven staat met (*) Gezien onze overheid niet meer zo statisch is zou de snelle link wel kunnen veranderen. Daarom toch hoe dat je aan de effectieve pagina geraakt.
  • Ga naar de volgende website: https://www.socialsecurity.be
  • Klik op de taal nederlands, of op deze link;
  • Selecteer aan de linkerzijde "Naar de startpagina van de burger" of klik hier
  • Selecteer onder "profesioneel leven" de link "Loopbaanonderbreking en Tijdskrediet" of gebruik deze link
  • Selecteer hier in de pagina onderaan Algemeen stelsel.
  • Aan de rechterzijde zal u nu een aantal links zien verschijnen. In het midden ziet u bij "Online diensten" een link staan naar "Dossier Loopbaanonderbreking en tijdskrediet" Selecteer deze link
  • Tegen deze tij moet u zich aanmelden. Klik daartoe op de link bovenaan de pagina "aanmelden".
  • In het daaropvolgende scherm selecteert u de methode via dewelke u zich wil aanmelden.
    In het geval u een electronsche identiteitskaart heeft ... gaat dit simpel. Indien u een token wenst te gebruiken... wel hier kan ik u niet verder helpen, sorry.
  • (*) Aan de rechterzijde is er een knop "het dossier consulteren". Druk daarop. Indien u nu nog niet aangemeld was, zal u dat nu moeten doen.
  • De pagina die dan volgt is uw persoonlijke pagina.
  • Selecteer bovenaan de optie "attesten"
  • In het scherm dat u dan krijgt selecteert u onderaan de link in het vakje "attest tijdskrediet"
  • Dan nog een keer een scherm. selecteer hier weer "attest tijdskrediet" onderaan.
  • En voila ... u heeft uw attest.
Zo.

Special keys to be used in XP on an azerty MacBook OSX

Having a MacBook Pro with an AZERTY keyboard and running VMWare you may encounter the problem that certain keys are not available.
This is only an impression. Apple seems to have left out the traditional key indicators for alt-gr combinations.

So .. it is not because you do not see them, that they are not present.
People who know the layout of the standard Azerty keyboard by heart simply have to press the same keys as they do on a traditional keyboard.
For completeness, an overview:

Alt-gr --> the right alt key (second right of the space bar)
Alt-gr is also the same as pressing the alt and ctrl key (just like on a traditional keyboard)

The next is a table of the signs and the keys that have to be pressed in combination with the alt-gr key.

| : 1
@ : 2
# : 3
{
}

under construction

ULN - Enterprise Linux oracle internal resources

This doc is only intended for Oracle Employees or people having links to the intranet.

Clients should have the correct licensing and/or support contracts through which they can have access to the client update sides. Being an Oracle employee I do not know if the procedure is the same for clients.
But I guess the files to be used and the way of working should be pretty much the same.

In order to update your server to the latest patchsets you should go internally to http://linux.us.oracle.com

A set of rpm's exist that will install the required settings and definitions to update the system.
It is rather simple: download and install the rpm. Via firefox just execute the rpm.
Then you should look into /etc/sysconfig/rhn.
You will find a file called 'sources' which contains different locations for update packages all depending on the version of OEL you are running.
Uncomment the correct yum line by removing the # sign.
Save the file and quit the editor.

Once this has been done, just go to Applications > System Tools > Software Update.
A list will be shown of available updates.
Press the "apply updates" button and wait ...wait ... wait ...

VirtualBox: Switchen between host and vm

Under in the screen an indication is shown that you need to press "ctrl droite" to go back to the host environment.
Do not interprete this wrong: it is not the purpose to prest ctrl + right_arrow. You simply have to press the right control key.
Some may search long for the answer on the internet.
Some ask to a person next to him for the answer.
The difference: speed. the internet at 200000Km/s may be quicker than the sound which only gets up to 300m/s. The quality delivered by the realy-near-aural-network however ...
Greetings to SV.

VirtualBox Shared folders

I had some problems in using the method everybody seems to be using when wanting to share a folder between the WinXP host and the guest OS Ubuntu.

You may find everywhere that you need to execute the following command:
sudo mount -t vboxfs sharename mountpoint

This seems to give a protocol error.
On one of the fora there was an alternative that did work however:
sudo mount.vboxfs sharename mountpoint

This seems to work fine.
Thanks to entry found here.

virtualbox copy machine and disks

This are some procedures to follow if you want to copy one machine in Virtualbox into an other machine.

Method 1:

Export as a Open Virtual Machine Definition. (export appliance)
Then Import it again.
The very annoying thing is that by default the image files get copied into the personal VirtualBox directory ... which may not be nice to manage.
The files have to be released, copied, reloaded and linked again before the VM can see them.


Method 2: Physical copy of the hard disks

This method does not copy the machine definition ... which is no hard work to do anyway.
Supposing the hard disks that you want to copy are in one directory, just copy the directory and for the correct way of working, give the new disk image files a name corresponding to its use.
My personal standard is to prefix the directory containing the files with the name of the machine. (ex. UBUNTU_SOA). Each file in turn is also prefixed by this name.
Then the files need to get a UUID unique to all the files in the world (?).
This is required because VirtualBox uses this UUID in the registry of Virtual Media.
I found this info on this link.
The basic command when the file is already copied is:
VBoxManage internalcommands setvdiuuid "The name of the file to rename
If the files are not copied from their original location:
VBoxManage clonehd “the old name of the file” “the new name of the file

After this the disks can be defined as new virtual media names ... and since you followed the convetions ... the name and purpose of the files will be clear.


The command VBoxManage can be found in the installation directory of VirtualBox




Tax-On-Web op Ubuntu

Hieronder gecopieerde informatie over hoe op Ubuntu Linux naar taxonweb te kunnen gaan.

Onderaan volgt de link naar het originele artikel.

Eid / Taxonweb : Linux 1 - Windows 0

Tax-on-web op Ubuntu in 30 seconden:

$ sudo apt-get install libacr38u libacr38ucontrol-dev pcscd
$ sudo apt-get install beid*

Open /usr/share/beid/beid-pkcs11-register.html in Firefox, wacht even en klik op "Install". Er verschijnt "The "Belgium Identity Card PKCS#11" module is now registered."

Cardrreader verbinden, kaart insteken, surf naar http://www.taxonweb.be/ en je kan je belastingaangifte invullen. Op die tijd heb je met Windows net de driver voor je cardreader gevonden. ;-)
Als er nu nog iemand een oplossing kon vinden voor de x86-64'ers onder ons...

De link naar het origineel artikel:

Met de nodige groeten