ssh

September 24, 2009
  • ssh with keys/no passwd(A->B)
    ssh-keygen -t rsa
    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

  • wake on lan (wol) wlan -> lan

    September 12, 2009

    make sure your nic is able to wake up the pc: check it with the command ethtool eth0

    broadcasting magic packets over wireless sometimes gives problems.
    I changed the ping program so it can send a long patern(the magic packet) and gave it the short name plp (ping long patern)

    how to use: plp -s 204 -p <magic packet> <ip address>
    magic packet: 6xFFfollowed by 16xthe mac address (use ether-wake -bD to see an example of the magic packet)

    todo: …. create magic packet from mac address

    download & save the plp.ppt & rename it back to plp
    plp

    make sure you have an entry in your arp cache (ip-address mac) other wise it will send an arp who-has broadcast to a non responding pc (use arp -s <ip> <mac> to add one, or arp -f /etc/ethers,….)


    disable pc speaker

    September 9, 2009

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


    suspend/hibernate fedora 11

    August 23, 2009

    Suppose you have an nvidia

    1) download latest nvidia driver from nvidia website
    2) 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)
  • 3) reboot


    vmware can’t open machine after copy

    June 29, 2009

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


    juniper on fedora 11

    June 22, 2009
  • juniper plugin on fedora11
    remove openjdk,ice… plugin
    download & install sun java jre. Test if java plugin is working: http://www.java.com/en/download/help/testvm.xml
    check links: ln -s /usr/local/jre/plugin/…. /usr/lib/mozilla/…./plugins-wrapped (also in the ~/.mozilla/plugins ???)
    install xterm

  • terminal settings

    June 3, 2009

    setterm -blength 0
    xset b off

    man xset
    man setterm


    fedora – vista dual boot: repair vista

    May 24, 2009

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

    3) edit grub.conf with possible boot partitions


    wireless broadcom bcm4306 (latitude D600)

    May 7, 2009

    wget http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
    tar -xvf broadcom-wl-4.150.10.5.tar.bz2
    b43-fwcutter -w /lib/firmware wl_apsta_mimo.o

    service restart NetworkManager,


    configure iptables

    April 30, 2009

    lokkit

    gnome-lokkit


    rpm commands

    April 22, 2009
    • 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

    vnc on fedora

    April 8, 2009

    netbeans: dead keys

    March 29, 2009

    no {},~~~\\||||###^^^^,…..
    set XMODIFIERS=”


    vista: Indexing Options

    February 10, 2009

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

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


    mac: share airport

    December 15, 2008

    -> system preferences
    -> internet sharing
    ->


    mac: connect to a network share

    November 27, 2008

    cisco 2950 uploaden config

    November 26, 2008

    - 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


    bash shortcuts

    November 18, 2008

    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


    low wireless networkspeed

    November 15, 2008

    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


    mount LVM

    November 14, 2008

    - 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