Slackware64

64 bit version of Slackware

Installation of Slackware64 14.0 in VirtualBox

Physical machine: HP EliteBook 8470p core i5

Virtual machine:

Steps:

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 and font size 14

Create file ~/.Xresources:

xterm*foreground: rgb:F6/F3/E8
xterm*background: rgb:40/40/40
xterm*font: *-fixed-*-*-*-14-*

Reload the definitions with xrdb ~/.Xresources

X configuration for 1280x960

DontZap as true disables the Ctrl+Alt+Backspace (Hard reset X).

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

Section "ServerFlags"
    Option "DontZap" "true"
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

Java installation

   1 export JAVA_HOME="/usr/java/jdk1.6.0_39" 
   2 PATH="(...):JAVA_HOME/bin"

Get also http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.tar.gz

Tomcat installation

Edit /usr/local/tomcat/conf/tomcat-users.xml

   1   <role rolename="admin"/>
   2   <role rolename="manager"/>
   3   <role rolename="manager-gui"/>
   4   <user username="admin" password="12345678" roles="admin,manager,manager-gui"/>

Start and stop tomcat with user tomcat:

JBoss 5.1.0

Default runlevels (2 3 4 5):

In the file /etc/init.d/jboss change JBOSS_CONF from default to all

Glassfish 4.0

   1 AS_INSTALL=`dirname "$0"`/../glassfish
   2 AS_INSTALL_LIB="$AS_INSTALL/lib"
   3 . "${AS_INSTALL}/config/asenv.conf"
   4 AS_JAVA=/usr/java/jdk1.7.0_60
   5 JAVA_HOME==/usr/java/jdk1.7.0_60
   6 #Depends upon Java from ../config/asenv.conf
   7 if [ ${AS_JAVA} ]; then
   8     JAVA=${AS_JAVA}/bin/java
   9 fi
  10 
  11 exec "$JAVA" -jar "$AS_INSTALL_LIB/client/appserver-cli.jar" "$@"

Mysql

Bash settings

File ~/.bashrc

   1 alias ls='ls --color'
   2 #PS1="\D{%Y-%m-%d}T\A \u@\H:\w \r\n\$"
   3 #PS1="\e[0;33m\]\D{%Y-%m-%d}T\A\[\e[m\]\r\n\e[0;32m\]\u@\H:\w\$\[\e[m\] "
   4 PS1="\e[0;33m\]\D{%Y-%m-%d}T\A\[\e[m\] \e[0;32m\]\u@\H:\w\r\n\$\[\e[m\] "
   5 
   6 export PATH="/home/vitor/narwhal/bin:$PATH"

VirtualBox guest additions

Avoids mouse jumping around on X.

Also when using the guest VM, press Ctrl+I to disable mouse integration, to avoid mouse jumping around.

Apache Maven installation

Change display to 1600x900x32

Run VBoxManage in the host

Change /etc/lilo.conf

Change /etc/X11/xorg.org to have "1600x900" in the several modes.

Netbeans 7.4

Netbeans

Squirrel

Squirrel

Thunderbird

Move the local folder to ~/ThunderbirdMail.

vi

vim Zenburn

Emacs

Emacs Zenburn

Multilib 32-bit

http://www.slackware.com/~alien/multilib/

As root:

Reboot

Skype installation

Apply portuguese keyboard on connecting a keyboard

Sometimes a USB keyboard can disconnect and connect on it's own, and loose the settings. Check the file to see if the settings are applied /var/log/Xorg.0.log

/etc/X11/xorg.conf.d/keyboard.conf

Section "InputClass"
    Identifier         "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    #MatchProduct       "keyboard"
    Option  "XkbLayout"  "pt"
EndSection

Install the VM in a Lenovo Thinkpad L440 Core i5

Init with runlevel 1

Linux init=/bin/bash root=/dev/sda1 rw

Changes in display

Run VBoxManage in the host

/etc/X11/xorg.conf

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 "InputClass"
    Identifier "Mouse1"
    MatchIsPointer "on"
    Option "Emulate3Buttons" "on"
EndSection

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 50.0
    VertRefresh 40-90
EndSection

Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "vboxvideo"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor     "My Monitor"

   DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes  "1366x768" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes  "1366x768" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes  "1366x768"  "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes  "1366x768"  "1024x768" "800x600" "640x480"
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection
Section "ServerFlags"
    Option "DontZap" "true"
EndSection

Pidgin-sipe build

Local DNS

domain bitarus.allowed.org
nameserver 127.0.0.1

Named/bind configuration in /etc/named.conf

options {
 directory "/var/named";
 // Google DNS servers
 forwarders{8.8.8.8;8.8.4.4;}; 
};

// a caching only nameserver config
zone "." IN {
 type hint;
 file "caching-example/named.root";
};

zone "localhost" IN {
 type master;
 file "caching-example/localhost.zone";
 allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
 type master;
 file "caching-example/named.local";
 allow-update { none; };
};

logging {
  channel my_named_channel {
  file "/tmp/named.log";
  // syslog info;
  // Set the severity to dynamic to see all the debug messages.
  severity dynamic;
  print-time yes;
  print-severity yes;
  print-category yes;
 };
 category queries {   my_named_channel; };
 category client {   my_named_channel; };
 category default { default_syslog; };
};

Start/stop with /etc/rc.d/rc.bind start /etc/rc.d/rc.bind stop

Slackware/Slackware64 (last edited 2015-03-06 17:20:49 by static-wan-bl2-240-198-rev)