Size: 987
Comment:
|
Size: 5897
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
* Memory 4GB | |
Line 9: | Line 10: |
* Video memory 64 MB | * Video memory 128 MB * Settings * System * Processor * Enable PAE/NX:true * Nr Processors: 2 * Acceleration * Enable VT-x/AMD-V: true * Enable nested paging: true |
Line 40: | Line 49: |
* Reboot * In Virtualbox export the virtual machine as a OVA file == Portuguese console keyboard == Create the file /etc/rc.d/rc.keymap: {{{ #!/bin/sh # Load the keyboard map. More maps are in /usr/share/kbd/keymaps. if [ -x /usr/bin/loadkeys ]; then /usr/bin/loadkeys pt-latin1.map fi }}} == Enable login by KDM == Edit the file /etc/inittab and change the initlevel from 3 to 4 {{{ id:4:initdefault }}} Edit the file /etc/kde/kdm/Xsetup and add the line {{{ setxkbmap pt }}} == Change VESA frame buffer resolution to 1280x960 == Edit the file /etc/lilo.conf {{{ vga = 844 }}} Run lilo -C /etc/lilo.conf to update LILO config on the MBR. == xterm with Zenburn look == Create file ~/.Xresources: {{{ xterm*foreground: rgb:F6/F3/E8 xterm*background: rgb:40/40/40bash-4.2# }}} Reload the definitions with xrdb ~/.Xresources == X configuration for 1280x960 == {{{ Section "Module" Load "dbe" # Double buffer extension SubSection "extmod" Option "omit xfree86-dga" # don't initialise the DGA extension EndSubSection Load "type1" Load "freetype" Load "glx" EndSection Section "Files" FontPath "/usr/share/fonts/local/" FontPath "/usr/share/fonts/misc/" FontPath "/usr/share/fonts/OTF/" FontPath "/usr/share/fonts/TTF/" FontPath "/usr/share/fonts/Type1/" FontPath "/usr/share/fonts/CID/" FontPath "/usr/share/fonts/Speedo/" FontPath "/usr/share/fonts/75dpi/:unscaled" FontPath "/usr/share/fonts/100dpi/:unscaled" FontPath "/usr/share/fonts/75dpi/" FontPath "/usr/share/fonts/100dpi/" FontPath "/usr/share/fonts/cyrillic/" EndSection Section "ServerFlags" EndSection Section "InputDevice" Identifier "Keyboard1" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol" "PS/2" Option "Device" "/dev/mouse" EndSection Section "Monitor" Identifier "My Monitor" HorizSync 31.5 - 50.0 VertRefresh 40-90 EndSection Section "Device" Identifier "VESA Framebuffer" Driver "vesa" EndSection Section "Screen" Identifier "Screen 1" Device "VESA Framebuffer" Monitor "My Monitor" DefaultDepth 24 Subsection "Display" Depth 8 Modes "1152x864" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 16 Modes "1152x864" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 24 Modes "1280x960" "1152x864" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 32 Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubsection EndSection Section "ServerLayout" Identifier "Simple Layout" Screen "Screen 1" InputDevice "Mouse1" "CorePointer" InputDevice "Keyboard1" "CoreKeyboard" EndSection }}} == Enable network DHCP client eth0 == Edit the file /etc/rc.d/rc.inet1.conf {{{ # Config information for eth0: IPADDR[0]="" NETMASK[0]="" USE_DHCP[0]="yes" DHCP_HOSTNAME[0]="" }}} == VirtualBox port forward == * Network * NAT * Port forwarding * Rule1 * TCP * Host port 2222 * Guest port 22 == Java installation == * Get from Oracle jdk-6u39-linux-x64.bin * mv jdk-6u39-linux-x64.bin /usr/java * ./jdk-6u39-linux-x64.bin # run it * Change /etc/profile {{{#!highlight bash export JAVA_HOME="/usr/java/jdk1.6.0_39" PATH="(...):JAVA_HOME/bin" }}} == Tomcat installation == * mkdir -p /usr/local/tomcat * wget http://mirrors.fe.up.pt/pub/apache/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz * tar xvzf apache-tomcat-7.0.54.tar.gz * useradd tomcat * chown tomcat * -R * chgrp users * -R Edit /usr/local/tomcat/conf/tomcat-users.xml {{{#!highlight xml <role rolename="admin"/> <role rolename="manager"/> <role rolename="manager-gui"/> <user username="admin" password="12345678" roles="admin,manager,manager-gui"/> }}} Start and stop tomcat with user tomcat: * /usr/local/tomcat/bin/startup.sh * /usr/local/tomcat/bin/shutdown.sh == JBoss 5.1.0 == * adduser jboss # pass 12345678 * cd /usr/local/ * unzip jboss-5.1.0.GA.zip # * ln -s jboss-5.1.0.GA jboss * cp jboss_init_redhat.sh /etc/init.d * ln -s /usr/java/jdk1.6.0_39 /usr/local/jdk * chmod 755 /etc/init.d/jboss * cd /usr/local/jboss * chown jboss * -R * chgrp users * -R * /etc/init.d/jboss start # as root, JBoss should run in jboss user context |
Slackware64
64 bit version of Slackware
Installation of Slackware64 14.0 in VirtualBox
Physical machine: HP EliteBook 8470p core i5
Virtual machine:
- Memory 4GB
- Disc 64 GB
- Video memory 128 MB
- Settings
- System
- Processor
Enable PAE/NX:true
- Nr Processors: 2
- Acceleration
- Enable VT-x/AMD-V: true
- Enable nested paging: true
- Processor
- System
Steps:
- Boot from DVD ISO of Slackware64
- Choose keyboard pt-latin1
- Login with root
- cfdisk
- new, primary, size 64719
- new, primary, size 4002.97
- Set sda1 as bootable
- type sda1, 83, Linux
- type sda1, 82, Linux swap
- write, yes, quit
- setup, addswap, sda2
- check bad blocks? no
- select sda1, format quick, ext4 filesystem
- Install from CD or DVD, auto, /dev/sr0
- All packages, full
- skip USB bootstick
- Simple LILO, frame buffer 1024x768x64K
- UTF-8 console? yes
- MBR LILO destination
- Mouse imps2
- Gpm? No
- Network? no
- Services, rc.fuse, rc.inetd, rc.messagebus, rc.syslog, rc.sshd
- Custom screen fonts? no
- Hardware clock set to UTC
- Timezone: Europe/Lisbon
- xinitrc.wmaker
- Root pass? yes
- Reboot
- In Virtualbox export the virtual machine as a OVA file
Portuguese console keyboard
Create the file /etc/rc.d/rc.keymap:
# Load the keyboard map. More maps are in /usr/share/kbd/keymaps. if [ -x /usr/bin/loadkeys ]; then /usr/bin/loadkeys pt-latin1.map fi
Enable login by KDM
Edit the file /etc/inittab and change the initlevel from 3 to 4
id:4:initdefault
Edit the file /etc/kde/kdm/Xsetup and add the line
setxkbmap pt
Change VESA frame buffer resolution to 1280x960
Edit the file /etc/lilo.conf
vga = 844
Run lilo -C /etc/lilo.conf to update LILO config on the MBR.
xterm with Zenburn look
Create file ~/.Xresources:
xterm*foreground: rgb:F6/F3/E8 xterm*background: rgb:40/40/40bash-4.2#
Reload the definitions with xrdb ~/.Xresources
X configuration for 1280x960
Section "Module" Load "dbe" # Double buffer extension SubSection "extmod" Option "omit xfree86-dga" # don't initialise the DGA extension EndSubSection Load "type1" Load "freetype" Load "glx" EndSection Section "Files" FontPath "/usr/share/fonts/local/" FontPath "/usr/share/fonts/misc/" FontPath "/usr/share/fonts/OTF/" FontPath "/usr/share/fonts/TTF/" FontPath "/usr/share/fonts/Type1/" FontPath "/usr/share/fonts/CID/" FontPath "/usr/share/fonts/Speedo/" FontPath "/usr/share/fonts/75dpi/:unscaled" FontPath "/usr/share/fonts/100dpi/:unscaled" FontPath "/usr/share/fonts/75dpi/" FontPath "/usr/share/fonts/100dpi/" FontPath "/usr/share/fonts/cyrillic/" EndSection Section "ServerFlags" EndSection Section "InputDevice" Identifier "Keyboard1" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol" "PS/2" Option "Device" "/dev/mouse" EndSection Section "Monitor" Identifier "My Monitor" HorizSync 31.5 - 50.0 VertRefresh 40-90 EndSection Section "Device" Identifier "VESA Framebuffer" Driver "vesa" EndSection Section "Screen" Identifier "Screen 1" Device "VESA Framebuffer" Monitor "My Monitor" DefaultDepth 24 Subsection "Display" Depth 8 Modes "1152x864" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 16 Modes "1152x864" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 24 Modes "1280x960" "1152x864" "1024x768" "800x600" "640x480" EndSubsection Subsection "Display" Depth 32 Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480" EndSubsection EndSection Section "ServerLayout" Identifier "Simple Layout" Screen "Screen 1" InputDevice "Mouse1" "CorePointer" InputDevice "Keyboard1" "CoreKeyboard" EndSection
Enable network DHCP client eth0
Edit the file /etc/rc.d/rc.inet1.conf
# Config information for eth0: IPADDR[0]="" NETMASK[0]="" USE_DHCP[0]="yes" DHCP_HOSTNAME[0]=""
VirtualBox port forward
- Network
- NAT
- Port forwarding
- Rule1
- TCP
- Host port 2222
- Guest port 22
== Java installation ==
- Get from Oracle jdk-6u39-linux-x64.bin
- mv jdk-6u39-linux-x64.bin /usr/java
- ./jdk-6u39-linux-x64.bin # run it
- Change /etc/profile
Tomcat installation
- mkdir -p /usr/local/tomcat
wget http://mirrors.fe.up.pt/pub/apache/tomcat/tomcat-7/v7.0.54/bin/apache-tomcat-7.0.54.tar.gz
- tar xvzf apache-tomcat-7.0.54.tar.gz
- useradd tomcat
- chown tomcat * -R
- chgrp users * -R
Edit /usr/local/tomcat/conf/tomcat-users.xml
Start and stop tomcat with user tomcat:
- /usr/local/tomcat/bin/startup.sh
- /usr/local/tomcat/bin/shutdown.sh
JBoss 5.1.0
- adduser jboss # pass 12345678
- cd /usr/local/
- unzip jboss-5.1.0.GA.zip #
- ln -s jboss-5.1.0.GA jboss
- cp jboss_init_redhat.sh /etc/init.d
- ln -s /usr/java/jdk1.6.0_39 /usr/local/jdk
- chmod 755 /etc/init.d/jboss
- cd /usr/local/jboss
- chown jboss * -R
- chgrp users * -R
- /etc/init.d/jboss start # as root, JBoss should run in jboss user context