test

December 23, 2009

linux load average

Filed under: Uncategorized — gvdb67 @ 6:05 pm

top

us = user mode
sy = system mode
ni = low priority user mode (nice)
id = idle task
wa = I/O waiting
hi = servicing IRQs
si = servicing soft IRQs
st = steal (time given to other DomU instances)

S(tate)

D Uninterruptible sleep (usually IO)
R Running or runnable (on run queue)
S Interruptible sleep (waiting for an event to complete)
T Stopped, either by a job control signal or because it is being traced.
W paging (not valid since the 2.6.xx kernel)
X dead (should never be seen)
Z Defunct (“zombie”) process, terminated but not reaped by its parent.

https://www.andymillar.co.uk/blog/index.php/2006/12/24/geekery/linux-load-average-explained/
http://www.linuxjournal.com/article/9001

December 20, 2009

fedora tools

Filed under: fedora — gvdb67 @ 10:31 am
  • gnome-system-monitor -> applets
  • in gnome: add to panel -> system monitor

  • snmp

    http://net-snmp.sourceforge.net/
    yum install net-snmp
    yum install net-snmp-utils

  • sysstat

    http://pagesperso-orange.fr/sebastien.godard/
    * iostat(1) reports CPU statistics and input/output statistics for devices, partitions and network filesystems.
    * mpstat(1) reports individual or combined processor related statistics.
    * pidstat(1) reports statistics for Linux tasks (processes) : I/O, CPU, memory, etc.
    * sar(1) collects, reports and saves system activity information (CPU, memory, disks, interrupts, network interfaces, TTY, kernel tables,etc.)
    * sadc(8) is the system activity data collector, used as a backend for sar.
    * sa1(8) collects and stores binary data in the system activity daily data file. It is a front end to sadc designed to be run from cron.
    * sa2(8) writes a summarized daily activity report. It is a front end to sar designed to be run from cron.
    * sadf(1) displays data collected by sar in multiple formats (CSV, XML, etc.) This is useful to load performance data into a database, or import them in a spreadsheet to make graphs.

  • configure iptables
    gnome-lokkit
  • September 24, 2009

    ssh

    Filed under: fedora — gvdb67 @ 1:21 pm
  • ssh with keys/no passwd(A->B)
    https://help.ubuntu.com/community/SSH/OpenSSH/Keys

    ssh-keygen -t dsa
    create a directory ~/.ssh as user x on B
    cat .ssh/id_rsa.pub | ssh x@B 'cat >> .ssh/authorized_keys
    http://www.eng.cam.ac.uk/help/jpmg/ssh/authorized_keys_howto.html
  • install gnome-applet-sshmenu
    list installed files: rpm -ql gnome-applet-sshmenu
  • September 9, 2009

    disable pc speaker

    Filed under: fedora — gvdb67 @ 11:19 am

    add blacklist pcspkr to /etc/modprobe.d/blacklist.conf

    August 23, 2009

    suspend/hibernate fedora 11

    Filed under: fedora — gvdb67 @ 9:35 am

    Suppose you have an nvidia

  • download latest nvidia driver from nvidia website
  • disable nouveau
  • put nouveau in blacklist vi /etc/modprobe.d/blacklist-nouveau.conf
    make new initrd: mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)

  • reboot
  • June 29, 2009

    vmware can’t open machine after copy

    Filed under: vmware — gvdb67 @ 10:56 am

    rm /var/lib/vmware/“Virtual\ Servers\*{vmem,vmdk}.lck/*lck

    May 24, 2009

    fedora – vista dual boot: repair vista

    Filed under: fedora — gvdb67 @ 12:02 pm

    1) boot from dvd -> repair -> command prompt: bootrec.exe /FixBoot

    3) edit grub.conf with possible boot partitions

    April 22, 2009

    rpm commands

    Filed under: fedora — gvdb67 @ 10:31 am
    • install:  rpm -ivh, rpm -i ftp://…,  rpm -i http://…
    • uninstall: rpm -e
    • upgrade: rpm -Uvh
    • query all packages: rpm -qa
    • package information: rpm -qi
    • package file owner: rpm -qf /….
    • list files in package: rpm -qpl
    • verify package: rpm –verify
    • check signature: rpm –checksig

    April 8, 2009

    vnc on fedora

    Filed under: fedora — gvdb67 @ 11:55 am

    February 10, 2009

    vista: Indexing Options

    Filed under: vista — gvdb67 @ 12:11 pm

    start->configuration->index options
    service: windows search
    indexing outlook 2007: tools -> options -> preferences

    problems with locked files: http://ccollomb.free.fr/unlocker/

    December 15, 2008

    mac: share airport

    Filed under: mac — gvdb67 @ 12:04 pm

    -> system preferences
    -> internet sharing
    ->

    November 27, 2008

    mac: connect to a network share

    Filed under: mac — gvdb67 @ 11:31 am

    http://www.nzmac.com/features/how-to/connect-to-a-network-share.html

    November 26, 2008

    cisco 2950 uploaden config

    Filed under: cisco, Uncategorized — gvdb67 @ 3:29 pm

    - copy config van switch A -> pc met tftp
    - op switch A: copy running-config tftp -> pc
    - edit config file
    - on switch B: copy xmodem runnig-config
    - in hyperterminal: trasfer -> send file

    manueel aanpassingen doen op switch B:
    - hostname
    - int vlan xxx ip address 10.10.10.10 255.255.255.0
    - int ra fa0/1-45
    -> duplex auto
    -> speed auto

    nieuwe running-config laden via http:
    - conf t
    - copy http://a.b.c.d/new_config running-config
    - write
    - reload warm

    range commando’s
    -interface range fastethernet0/1 – 4 , fastethernet0/10 – 15

    November 20, 2008

    VI shortcuts

    Filed under: fedora — gvdb67 @ 7:32 am

    Insert

    i Inserts text to the left of the cursor.
    I Inserts text at the beginning of the line, no matter where the cursor is positioned on the current line.

    Append

    a Begins inserting after the character (append) on which the cursor is positioned.
    A Begins inserting at the end of the current line, no matter where the cursor is positioned on that line.

    Open

    o Begins inserting text on a new, empty line that is opened for you, below the current line. This is the only command that will allow you to insert text BELOW the LAST line of the file.
    O Begins inserting text on a new, empty line that is opened for you, above the current line. This is the only command that will allow you to insert text ABOVE the FIRST line of the file.

    Deleting,copying and changing

    d Delete text.
    y Copy text (yank)
    c Change text
    ! Filter text through a program.
    Shift a region of text to the right.

    move

    h Move cursor to the left one character.
    l Move cursor to the right one character.
    j Move cursor down one line.
    k Move cursor up one line.
    ^ Move cursor to the beginning of the line.
    $ Move cursor to the end of the current line.
    1G Move cursor to the first line of your document. Other numbers will move to the line specified by number (ex. 50G goes to the 50th line).
    G Move cursor to the last line of your file.
    CTRL U Move cursor up in file 12 lines. Hold down the key marked CTRL (stands for control) and type U. CTRL is like another shift key.
    CTRL D Move cursor down in file 15 lines.
    w Move cursor forward to the next word, stopping at punctuation.
    W Move cursor forward to the next word, ignoring punctuation.
    e Move cursor forward to the end of the word, stopping at punctuation.
    E Move cursor forward to the end of the word, ignores punctuation.
    b Move cursor backwards to the preous word, stopping at punctuation.
    B Move cursor backwards to the preous word, ignores punctuation.
    H Move cursor to the top line of the screen, (as opposed to the top of the document which may not be the same place).
    M Move cursor to the middle of the screen.
    L Move cursor to the last line on the screen.
    % Move cursor to the matching parenthesis, bracket or brace. Great for debugging programs.
    ( Move cursor to the beginning of the preous sentence (where a punctuation mark and two spaces define a sentence).
    ) Move cursor to the beginning of the next sentence.
    { Move cursor to the beginning of the current paragraph.
    } Move cursor to the beginning of the next paragraph.
    ; Repeat the last f or F command (see below).
    ‘ Move cursor to a preously marked location in the file. (ex. ma marks the location with the letter a, so a (apostrophe a) moves back to that location).
    f Find the character corresponding to the next keystroke typed. Move the cursor to the next occurrence of that character (on the current line only).
    F Same as f but movement is backwards.

    x Delete character(s) to the right of the cursor, starting with the one beneath it.
    r Replace the character under the cursor with the next character you type. This can be a very useful command. If you wanted to split up a line between two words, you might put the cursor on the blank space before the word you would like to go on the next line and type r . This would replace the space between the words with a carriage return and put the rest of the line onto a new line.
    J Join lines; the opposite of the line splitting operation above. This will join the current line with the next line in your file. Also very useful.
    R Replace lines; puts you in INSERT mode but types over the characters that are already on the current line.
    p Paste line(s) you deleted (or yanked) back into the file. This is an excellent command if you want to move a few lines somewhere else in your file. Just type 3dd to delete three lines, for example, and then move to where you want those lines to be and type p to paste the lines back into your file below the cursor.
    . The period . command repeats the last text modification command, whatever it may have been (insert, deletion, etc).
    :r filename RETURN Read a file into the current file being edited. The file be added gets placed below the current cursor position. Please note the colon : before the r in this command.
    CTRL L Redraw the screen. If somebody writes to you while you are in the middle of and junk appears all over your screen, dont panic, it did not hurt your file, but you will have to hold down the CTRL key and type L to clean it up (CTRL L).
    d$ Delete (including the current character), to the end of the line.
    d^ Delete (excluding the current character), to the beginning of the line.
    dw Delete a word(s), stops at punctuation.
    dW Delete a word(s), ignoring punctuation.
    de Delete to the end of next word.
    dd Delete a line(s).
    dG Delete from the current line to the end of the document. CAREFUL: Slightly dangerous.
    dH Delete from the current line to the line shown at the top of the screen.

    Search and Replace

    /the Finds the next occurence of the. This will also find their, them, another, etc.
    ?the Finds the preous occurence of the.
    n Repeats the last search command. Finds the Next occurence.
    d/the Deletes until the next occurence of the. This is to demonstrate how the delete prefix can be used with any cursor movement command.
    :g/oldword/s//newword/gc This will find all occurences of oldword and replace them with newword. The optional c at the end of the command tells that you would like to confirm each change. will want you to type in y to make the change or n to skip that replacement. Great for spelling fixes.

    ESC :wq RETURN Save and exit
    ESC :q! RETURN Exit WITHOUT sang changes

    November 18, 2008

    bash shortcuts

    Filed under: fedora — gvdb67 @ 7:22 am

    shortcuts part 1 (cu=cursor)
    1. ctrl+a=home : move your cursor to the beginning of the line
    2. ctrl+e=end : move your cursor to the end of the line
    3. ctrl+k : delete any characters from your cursor to the end of the line
    4. ctrl+u : delete any characters from your cursor to the beginning of the line
    5. ctrl+w : delete previous word
    6. ctrl+t : transpose two previous characters
    7. ctrl+y : yank/recover the last deletion
    8. ctrl+d=del : delete one character at the cursor position
    9. ctrl+h=backspace : delete one character before the cursor
    10. ctrl+f=cu-ri : move forward
    11. ctrl+b=cu-le : move backward
    12. ctrl+r : find character sequence in history (completion mode)
    13. ctrl+g : escape from completion mode
    14. ctrl+v : Literal next (LNEXT)
    15. ctrl+p=cu-up : browse history
    16. ctrl+n=cu-do : browse history
    17 ctrl+r=history reverse search

    shortcuts part 2

    1. esc+d : delete from the cursor position to the end of the word
    1. esc+backspace : delete word left from the cursor position
    2. esc+f : move forward a word
    3. esc+b : move backward a word
    4. esc+t : transpose two adjacent words
    5. esc+U : word capital letters
    6. esc+L : word small letters
    7. esc+ : repeat last word of previous input
    8. esc+n : repeat word n of previous input (nr can be pos or neg)
    9. esc :

    shortcuts part 3: VI

    November 15, 2008

    low wireless networkspeed

    Filed under: fedora, vista, windows — gvdb67 @ 12:25 am

    1) check if you use 802.11G (on router & client), look for older wireless cards that only understand 802.11b (bg = different ùmodulation)
    2) check the channel on the router , try to use only 1,6,11 (non overlapping) 802.11
    3) check for driver updates.
    4) use WPA2/AES wireless security

    November 14, 2008

    mount LVM

    Filed under: fedora — gvdb67 @ 11:39 am

    - List the Logical Volume Groups
    lvscan
    - List the Physical Volumes
    pvscan

    - Rename the Logical Volume Group if nessecary
    Rename the logical volume group of the external drive from VolGroupxx to VolGroupyy (or other unique name):
    vgchange -ay VolGroup01

    - Mount the Drive

    Next, mount the data partition of the external drive:
    mount (-t ext3) /dev/VolGroup01/LogVol01 /mnt/external

    October 29, 2008

    configure gnome parts

    Filed under: fedora — gvdb67 @ 6:40 pm

    - gnome-session-properties
    - gnome keyring: seahorse

    October 22, 2008

    mac

    Filed under: mac — gvdb67 @ 8:31 am

    boot keys

    October 17, 2008

    gwt4nb

    Filed under: netbeans — gvdb67 @ 11:17 pm

    WARNING: ‘com.google.gwt.dev.GWTCompiler’ is deprecated and will be removed in a future release.
    Use ‘com.google.gwt.dev.Compiler’ instead.

    # GWT 1.6 is required for compiling custom widgets (optional)

    * You need to upgrade GWT
    * The GWT Compiler class name has changed:
    o Replace com.google.gwt.dev.GWTCompiler → com.google.gwt.dev.Compiler in your widget set build script (Ant) or launch configuration (Eclipse).
    o Replace the output directory argument for the compiler with the new WAR output argument: -out → -war. The directory parameter for the argument remains unchanged.
    * Possible problems when building widgetset using Windows and JDK 1.5. See Known Problems #2891 below.

    http://dev.itmill.com/wiki/Articles/GettingStartedOnNetbeans
    http://vaadin.com/home

    October 4, 2008

    fedora latest builds

    Filed under: fedora — gvdb67 @ 8:55 am

    http://koji.fedoraproject.org/koji/index
    http://fedoraproject.org/wiki/Koji
    yum –nogpgcheck localinstall kernel-xxx.rpm

    August 25, 2008

    vista: no auto reboot after automatic update

    Filed under: vista — gvdb67 @ 2:41 pm

    start gpedit.msc
    -> Computer Configuration\Administrative Templates\Windows Components\Windows Update
    enable “No auto-restart for scheduled Automatic Updates installation”

    August 24, 2008

    vmware: run mac osX

    Filed under: vmware — gvdb67 @ 7:22 pm

    http://wiki.osx86project.org/wiki/index.php/Vmware_how_to

    August 20, 2008

    mac on windows domain

    Filed under: mac, windows — gvdb67 @ 2:13 pm

    suppose we run OS X
    1) -> Directory utility (utilities)-> Services -> Active Directory: Configure -> fill in fields & bind to domain
    1.2) -> Directory utility (utilities)-> Services -> advanced options -> administrative: disable allow authentcation from any domain in the forest
    1.3) -> Directory utility (utilities)-> Search policy -> remove available directory domais & add you domain

    2) -> Directory utility (utilities)-> search policy ->
    3)  -> Directory Access-> Services-> Services-> LDAPv3: Configure -> select “Use DHCP-supplied LDAP server”.
    4)  -> System Preferences -> accounts remove auto-logon.
    5) -> System Preferences -> set date-time server to valid time server for your domain
    6) disable ldap,bonjour, etc…
    7) connect to share
    see also Integrating Macs and Active Directory

    short cuts:
    \ = option + shift + /
    [ = option + shift + 5
    ] = option + shift + 0
    { = option + 5
    } = option + 0
    | = option + shift + L

    July 30, 2008

    fedora: audio – video support

    Filed under: fedora — gvdb67 @ 10:00 pm

    play mp3,mpeg,…

    rpmfusion.org
    rpmfusion FAQ
    rpmfusion configuration
    install the repo’s
    rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
    install plugin’s
    yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg
    yum install xine-lib-extras-freeworld
    yum install vlc xine xine xine-lib-extras-nonfree libdvdcss (mpeg,wmv,dvd,…:)

    id3tagger

    yum install easytag

    access your mp3 player:

    download & install mtpfs
    -> compile errors
    No package ‘fuse’ found
    No package ‘mad’ found
    No package ‘id3tag’ found
    -> install missing lib’s
    yum install libfuse-devel, libmad-devel,libid3tag-devel
    yum install libmtp libmtp-devel libmtp-examples(mtp-tools)libnjb libnjb-devel

    udev rules: cp 60-libnjb.rules 45-libmtp.rules, vi -c %s/libnjb/libmtp/g 45-libmtp.rules (???)
    restart udev

    mount: mtpfs /media/zen (as root?)
    unmount: fusermount -u /media/zen (as root)

    http://www.faqs.org/docs/Linux-HOWTO/MP3-HOWTO.html#ss12.3
    mimms

    boost the ouput volume:

    alsamixer -c 0 (yum install alsa-utils)

    video convertor:

    ffmpeg, http://en.wikipedia.org/wiki/FFmpeg (more…)

    July 29, 2008

    vmware: vmware server on fedora

    Filed under: vmware — gvdb67 @ 10:02 pm

    vmware server 2 on kernel 2.6.29

    wget http://www.saarlinux.de/blog/wp-content/uploads/2009/03/vmware-server-modules-2629tar.gz
    cd /usr/lib/vmware/modules/source
    mkdir oldsources
    mv *.tar oldsources/

    tar xzf ../../vmware-server-modules-2629tar.gz
    vmware-config.pl

    http://www.saarlinux.de/blog/?p=5

    stop en restart vmware via rc5.d/S28vmware

    fedora 9:
    1) download  VMware & install RPM
    2) yum install gcc gcc-c++ kernel-devel xinetd perl-devel perl-ExtUtils-Embed
    (for PAE kernel install kernel-PAE-devel)
    3) run /usr/bin/vmware-config.pl
    4) start vmware & create virtual machine
    5) Install VMware Tools in the Windows Guest Operating System
    -> Power on the virtual machine.

    -> When the guest operating system starts, select VM > Install

    alt-gr=ctrl+alt

    solve problem of keyboard mapping:
    vi /etc/vmware/config
    add following lines
    xkeymap.keycode.108 = 0×138 # Alt_R
    xkeymap.keycode.106 = 0×135 # KP_Divide
    xkeymap.keycode.104 = 0x11c # KP_Enter
    xkeymap.keycode.111 = 0×148 # Up
    xkeymap.keycode.116 = 0×150 # Down
    xkeymap.keycode.113 = 0x14b # Left
    xkeymap.keycode.114 = 0x14d # Right
    xkeymap.keycode.105 = 0x11d # Control_R
    xkeymap.keycode.118 = 0×152 # Insert
    xkeymap.keycode.119 = 0×153 # Delete
    xkeymap.keycode.110 = 0×147 # Home
    xkeymap.keycode.115 = 0x14f # End
    xkeymap.keycode.112 = 0×149 # Prior
    xkeymap.keycode.117 = 0×151 # Next
    xkeymap.keycode.78 = 0×46 # Scroll_Lock
    xkeymap.keycode.127 = 0×100 # Pause
    xkeymap.keycode.133 = 0x15b # Meta_L
    xkeymap.keycode.134 = 0x15c # Meta_R
    xkeymap.keycode.135 = 0x15d # Menu
    xkeymap.noKeycodeMap = “TRUE”

    remove: xkeymap.useKeycodeMap(????) = “TRUE”

    June 22, 2008

    vista: User Account Control (UAC)

    Filed under: windows — gvdb67 @ 1:55 pm

    uac explained
    disable uac

    Vista: elevate an application to run it with Administrator rights

    Filed under: vista — gvdb67 @ 9:28 am

    1) right click: run as administrator
    2) type in the name of the program and instead of pressing enter press shift+ctrl + enter and the uac will popup
    3) start programs from elavated command prompt or taskmgr.
    4) take the properties of the exe: -> compatibility -> check run as administrator
    5) use task shedular to run elevated task (  http://huddledmasses.org/vista-setuid-how-to-elevate-without-prompting )

    Vista: stop / remove windows defender

    Filed under: vista — gvdb67 @ 9:11 am

    1) start windows defender -> tools -> options -> scroll down to: administrator options ->uncheck use windows defender.

    2) disable windows defender service from starting, start msconfig -> startup -> uncheck windows defender

    Theme: Silver is the New Black. Blog at WordPress.com.

    Follow

    Get every new post delivered to your Inbox.