null 2.0

Slackware Linux, Oracle, Programming

Tag: linux

uninstalling vmware on slackware

i tried uninstalling with vmware-installer but nothing happened, so this is how i managed to uninstall it manually

uninstall step by step:

# locate vmware | less
# rm /usr/include/vmware-vix -r
# rm /usr/sbin/vmware-authd
# rm /usr/bin/vmware-*
# rm /usr/doc/vmware-* -r
# rm /usr/lib/vmware* -r
# rm /var/log/vmware-installer -r
# rm /etc/vmware* -r

Advertisements

VPN server (pptpd) install on Slackware 13

– download pptpd from SlackBuilds and install
– configuration files:
— /etc/pptpd.conf – here change ip addresses for clients and server name if you want, mine:
localip 192.168.158.249
remoteip 192.168.158.250-253

— /etc/ppp/options.pptpd – encription configuration, I left it as it was
— /etc/ppp/chap-secrets – add client usernames and passwords here, like:
popeye pptpd oliva * username: popeye password: oliva server pptpd (as set in pptpd.conf)

problem:
– users cannot login, this message in /var/log/syslog:
Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4
solution:
– comment out option logwtmp in /etc/pptpd.conf:
#logwtmp

Slackware 13 Privoxy proxy server installation

1.) get privoxy from SlackBuilds.org and install it

2.) take a look at privoxy configuration file /etc/privoxy/config. Here you already have line for using with tor but it’s commented out so find it and uncomment it so it says forward-socks4a / 127.0.0.1:9050 . (carefully with the dot in the end, it’s mandatory)
– privoxy has great comments in config file so you can easily understand which option does what. I changed logging level to debug levels 1, 1024, 4096 and 8192 (four separate lines in config) and made it listen on my network interface listen-address 192.168.0.1:8118
– it may be a good idea to set forwarded-connect-retries 10 cause tor network is really slow and timeouts can happen oftenly.

3.) start privoxy: /etc/rc.d/rc.privoxy start

4.) if you want to make privoxy autostart with system make rc.privoxy file executable: chmod 755 /etc/rc.d/rc.privoxy and add this to your rc.local:
# Start Privoxy proxy server
if [ -x /etc/rc.d/rc.privoxy ]; then
/etc/rc.d/rc.privoxy start
fi

next:
configuring firefox profile to use tor network and maximize anonymity

daily time update

to update system time:
# ntpdate zg1.ntp.carnet.hr

to make it update every day create file in /etc/cron.daily
# nano /etc/cron.daily/time_update

then write this in file:
#!/bin/bash
ntpdate zg1.ntp.carnet.hr

exit and save the file (ctrl+x)

and make it executable:
# chmod +x /etc/cron.daily/time_update

Linux Shortcuts and Commands

great list with description:
http://www.unixguide.net/linux/linuxshortcuts.shtml

who logged in last on computer

# last

see man pages for more

linux ftp server cnfiguration – vsftpd

http://www.linuxfocus.org/English/July2004/article341.shtml#341lfindex3

kernel version and system information

type:
uname -a

touchpad on slackware 13

to see what options are turned on or off
symclient -l

make some script to autostart with kde and put it into ~/.kde/Autostart

oracle on text-based linux

taken from ow to install Oracle on a text-mode Linux box

How to install Oracle on a text-mode Linux box

The environment:
1) Computer 1: my Fedora 7 linux. Installed in text-mode only. No X-server, no-gnome and no-kde.
Computer 1 IP: 192.168.1.9
2) Computer 2: some computer with X-server capability. In my case I used CYGWIN on a WinXP machine.
Computer 2 IP: 192.168.1.79

HowTO:
a) Setup Fedora 7 as usual:

==========================================================================================
under /home/oracle… unpack oracle 10.2.0.1
unzip 10201_database_linux32.zip
and it will create a folder called “database”
and to install oracle we run: (after all the below setup be finished)
cd database
./runInstaller &

————————————————————–

/etc/sysctl.conf file:

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144

————————————————————–

/sbin/sysctl -p

————————————————————–

/etc/security/limits.conf

*               soft    nproc   2047
*               hard    nproc   16384
*               soft    nofile  1024
*               hard    nofile  65536

————————————————————–

/etc/pam.d/login

session    required     /lib/security/pam_limits.so

————————————————————–

/etc/selinux/config

SELINUX=disabled

————————————————————–

# From Fedora 7 DVD
cd /media/dvd/Fedora
rpm -Uvh setarch-*
rpm -Uvh –force tcl-*
rpm -Uvh compat-db-*
rpm -Uvh –force libXau-devel-*
rpm -ivh gcc (install all the dependences… starting from kernel-header)

yum install libXp libaio

————————————————————–

groupadd oinstall
groupadd dba
groupadd oper

useradd -g oinstall -G dba oracle
passwd oracle

mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /u01

————————————————————–

/etc/redhat-release

redhat-4

————————————————————–

.bash_profile (oracle user)

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

if [ $USER = “oracle” ]; then
if [ $SHELL = “/bin/ksh” ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

==========================================================================================

b) On CYGWIN (X-Server box)
In my case… in WinXP… I ran:

Start -> Run -> “C:\cygwin\usr\X11R6\bin\startxwin.bat”

It will open a terminal screen:
==> you must authorize linux box (192.168.1.9) to connect onto this X-server:
==> run: xhost +192.168.1.9

mson77@192.168.1.79 ~
$ ssh oracle@192.168.1.9
The authenticity of host ‘192.168.1.9 (192.168.1.9)’ can’t be established.
RSA key fingerprint is 7a:43:73:7d:3c:a2:05:9a:4a:7f:6f:c1:23:08:f1:55.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘192.168.1.9’ (RSA) to the list of known hosts.
oracle@192.168.1.9’s password:
[oracle@f7vmware ~]$ ll
total 4
drwxr-xr-x 6 root root 4096 2005-07-02 14:09 database
[oracle@f7vmware ~]$ DISPLAY=192.168.1.79:0.0; export DISPLAY
[oracle@f7vmware ~]$ cd database/
[oracle@f7vmware database]$ ./runInstaller &
[1] 1594
[oracle@f7vmware database]$ Starting Oracle Universal Installer…

(by the way… f7vmware is 192.168.1.9… is a F7 host under VMware, in my case)

==========================================================================================

If this helps you… and you want to see my wish list.. maybe you can visit:
http://www.livrariacultura.com.br/scripts/home/wishlist/basketwish.asp?cp=DJDGID

Thank you,

mson77