TagFacts -> user kuchin / linux
2 8 10 5

notes 1 - 13 of 13:

2006-08-17

Samba


yum install samba

cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
chmod 600 /etc/samba/smbpasswd
smbpasswd username

/etc/samba/smb.conf

service smb start

smbclient //localhost/Downloads

firewall - 137:udp 138:udp 139:tcp 445:tcp

mount -t smbfs //192.168.196.1/d /mnt/win -o username=XXX -o password=xxx


tags:


2006-07-19

Ubuntu desktop


http://ubuntuguide.org/wiki/Dapper
http://www.ubuntuforums.org/forumdisplay.php?f=100
http://diveintomark.org/archives/2006/06/26/essentials-2006
http://www.ubuntuforums.org/showthread.php?t=185174
http://linuxforum.ru/index.php?showtopic=12690
http://gentoo-wiki.com/HOWTO_FTP_Mount
http://www.ubuntuforums.org/showthread.php?p=1188326
( sudo chmod +x /usr/bin/fusermount, sudo chmod o+rw /dev/fuse )

Lets install the proprietary ATI drivers, if you are in X, exit out now.
1. Install the xorg-driver-fglrx package:
sudo apt-get install xorg-driver-fglrx
2. Add fglrx to /etc/modules:
echo fglrx | sudo tee -a /etc/modules
Now the module will not be loaded automatically until we reboot, so lets load it manually:
sudo depmod -a
sudo modprobe fglrx


tags:


2006-06-26

Linux backups


rsync


tags:

comments: 1


2006-06-19

Linux install, packages


yum install ...
yum update ...
yum search ...
yum check-update

dpkg -S /bin/bash

apt-cache depends mozilla | grep x11

apt-get --purge remove libx11-6


tags:


2006-04-25

DB2 some commands


db2stop /force
db2start

db2
list applications all
force application all
stop database manager
start database manager
terminate

db2 uncatalog db db_name

db2 get database configuration for db_name | grep -i pool
db2 update db cfg for db_name using parm_name parm_value
db2 terminate
db2 force applications all

# override bufferpool size
db2set DB2_OVERRIDE_BPF=1000

# db2 : sysctl -p

#db kernel tuning
kernel.sem=250 256000 32 1024
#shmmax for a 64-bit system
kernel.shmmax=1073741824
#shmall for 90 percent of 512MB memory
kernel.shmall=150859
kernel.msgmax=65535
kernel.msgmnb=65535



# sudo apt-get install bum
# /etc/init.d/db2 (chmod a+x)

#!/bin/sh

case "$1" in
start)
su - dasusr1 -c "db2admin start"
/opt/ibm/db2/V9.1/instance/db2istrt
su - db2inst1 -c "db2 activate database dev"
;;
stop)
kill -9 `ps -efa | grep db2wdog | grep -v grep | cut -c10-15`
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
esac

exit 0


tags:


2005-10-29

Find file by context


find . -exec grep -l _pattern_ {} \;


tags:


2005-09-28

SENDMAIL


Usually at /etc/mail/ :)
sendmail.mc - comment or edit this - define(`SMART_HOST',`smtp.your.provider')


tags:


2005-09-27

IPTABLES


iptables -I INPUT -p (tcp or udp) --dport (port num) -j ACCEPT

iptables -t nat -I PREROUTING -p tcp --dport XX -j DNAT --to IP.IP.IP.IP:YY


tags:


2005-09-20

SSH


/etc/ssh/sshd_config:

Port XXX
PermitRootLogin no


tags:


2005-09-20

Autologin in Linux using Putty Pageant


make .ssh folder in your home folder, chmod 700 .ssh
add authorized_keys file, paste your public key there, chmod 600 authorized_keys


tags:


2005-09-18

DNS and hosts


Files:
/etc/hosts
/etc/resolv.conf - 'nameserver ...'

Commands:
traceroute
dig @nameserver address, dig address


tags:


2005-09-13

Server load level


uptime
top


tags:


2005-09-13

RPM commands


rpm -qa | grep mysql - find package(s)
rpm -e package - remove package(s)
rpm -i package - install package(s)


tags:


kuchin - tags

1
3
1
1
1
2
3
1
1
1
2
1
1
13
2
4
1
5
1
1
1
5
1
3
2
1
1
1
1
2
4
4
1
1
1
1
1
6
tag cloud
alphabetical

other projects

MyProgs
Reader²

send to friend

your name:
your e-mail:
friend 1 e-mail:
friend 2 e-mail:
© 2005-2006 Synergy Matters | Design: Inforedesign | HTML Coding: Glench | Powered by Synergy 1001 engine