Linux-howto

From skinetwork

Jump to: navigation, search

Contents

[edit] qemu guest network

quick tip, research further: -redir tcp:5555:10.0.2.15:3389


[edit] Moving Linux To a new hard disk

1. Install hardisk as slave
2. Make /boot and / partitions as required on the new hardisk
    - Use fdisk 
3. Use mkfs and format the newly created partitions
    - Use mksf.reiserfs for reiserfs
4. Use a linux rescue disk; DO NOT mount old and new harddisk partitions
    - Suse linux rescue, login root
5. dd if=/dev/hda6 of=/dev/hdb1  
    - hda6 = old harddisk boot partition 
    - hdb1 = new harddisk boot partition
6. Similarly root
    dd if=/dev/hda7 of=/dev/hdb2
7. Using Rescue .. Edit /etc/mtab, /etc/fstab, /etc/grub.conf, /boot/grub/menu.lst accordingly
    - If suse, grub files might be different for other distros
8. If suse, make sure, /boot/initrd.suse and /boot/vmlinuz.suse point to appropriate initrd and vmlinuz
9. cp /boot/grub/stage1 /usr/lib/
    cp /boot/grub/stage2 /usr/lib
10. Run grub-install /dev/hda

- Enjoy.. SKI

[edit] open cms notes

do not directly place opencms.war file in tomcat and restart .. this doesnt work

start tomcat with -Djava.awt.headless=true

make sure you can not naming it as openvms rather opencms which i did, used to typing openvms

unzip war file and remove the war file from the webapps path..

rest of things should be fine

[edit] search and replace, a perl example

perl -pi -e "s/oldstring/newstring/g;" filespecs

[edit] smb mount

chmod 4755 smbmount : be as root
//bengal.missouri.edu/skpx4     /home/newton/CVS        smbfs   user,rw,uid=500,gid=500,username=skpx4,workgroup=TIGERS,password=***      0       0


[edit] export user X in root

xauth -f /home/newton/.Xauthority extract - :0 | xauth merge -
export DISPLAY=:0

[edit] xwiki installation instructions

XWiki Installation Instructions

1. Setup of the XWiki Sample Database

The sample database has been updated for XWiki 0.7/0.9 and is now a good database to start an XWiki installation and is now a SQL dump of an Mysql database.

   * MySQL4 SQL Dump: http://prdownloads.sourceforge.net/xwiki/xwiki-db-0.7.460.zip?download

2 Installation Instructions

   * Install JDK 1.4.2
   * Install Tomcat 4.1
   * Verify installation of tomcat on port 8080
   * *IMPORTANT* For versioning of international characters to work, you need to launch your tomcat
     engine with -Dfile.encoding=iso-8859-1 and add LANG=fr_FR.ISO8859-1 as an environment variable
     (Thanks to Erwan Arzur for the tip).
     The test database contains international characters so you need these settings.
   * Copy xwiki-0-9-xx.war to xwiki.war in the tomcat/webapps directory
   * Unzip xwiki-db-0.x.yyy.zip
   * Load database using mysql -u xwiki -pxwiki xwiki < xwiki-db-0.x.yyy.txt
   * Grant mysql access with the following command:
     grant all privileges on xwiki.* to xwiki@127.0.0.1 identified by 'xwiki' ;
     (if you get connections problems try localhost instead of the IP address)
   * If decide to use a different password or a different machine than the web server machine
     for you database, edit hibernate.cfg.xml to change the database configuration.
   * Copy your database driver to the tomcat/common/lib directory
   * *IMPORTANT*: in xwiki.cfg change the line xwiki.virtual=1 to xwiki.virtual=0
   * If you want to use bigger attachments than 1Mb you need to change the packet size setting in Mysql. See http://www.xwiki.org/xwiki/bin/view/Dev/BigAttachments.
   * Connect to the xwiki application at: http://127.0.0.1:8080/xwiki/bin/view/Main/WebHome

3. What you can do

   * View users at http://127.0.0.1:8080/xwiki/bin/view/XWiki/XWikiUsers
    (all users have their own name in small characters as their password.)
   * The default admin user is Admin with password admin
   * Add a user at http://127.0.0.1:8080/xwiki/bin/view/XWiki/RegisterNewUser
   * You can edit global rights at: http://127.0.0.1:8080/xwiki/bin/edit/XWiki/XWikiPreferences?xpage=editrights&global=1


4. For eXo Platform Users

This version is intended for eXoPlatform 1.0 RCOW or later.
Make sure used the xwiki-exo-0.x.yyy.war file.

For eXo 1.0RC4 or earlier, you should use xwiki v0.8.



[edit] ffmpeg - quick note on converting avi to quicktime

Use ffmpeg - it is very powerful
# ffmpeg -i IMG_20061205_0346.AVI -ab 128 -b 1200 video_2.mpg
More help here: 
http://www.linuxjournal.com/article/8517

[edit] Install Oracle 10g on Fedora 6

http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnFedora6.php

Personal tools