vi /etc/ssh/sshd_config
--
..
PermitRootLogin no
..
2. disable root login in phpmyadmin
vi config.inc.php
--
..
$cfg['Servers'][$i]['AllowRoot'] = FALSE;
..
vi /etc/ssh/sshd_config
--
..
PermitRootLogin no
..
vi config.inc.php
--
..
$cfg['Servers'][$i]['AllowRoot'] = FALSE;
..
mysqldump -u username -p db_name > backup.sql
mysqldump db_name table > backup.sql
mysqldump --databse db_name1 db_name2 .. > databases.sql
mysqldump --all-databases > all_databases.sql
mysql> create database db_name;
mysql -u username -p < backup.sql
rmmod rtl8187
wget http://dl.aircrack-ng.org/drivers/rtl8187_linux_26.1010.zip
7z x rtl8187_linux_26.1010.zip
cd rtl8187_linux_26.1010.0622.2006
wget http://patches.aircrack-ng.org/rtl8187_2.6.27.patch
tar xzf drv.tar.gz
tar xzf stack.tar.g
patch -Np1 -i rtl8187_2.6.27.patch
vi beta-8187/r8187.h
--
change
#include <asm/semaphore.h>
to
#include <linux/semaphore.h>
make && make install
vi /etc/rc.local
--
iwconfig wlan0 essid <ESSID> mode Ad-Hoc key 1234567890
ifconfig wlan0 up <IP> netmask <MASK>
vi /etc/rc.conf
--
..
MODULES=(r8187 !rtl8187)
..
pacman -Sy subversion
mkdir /srv/svn
svnadmin create /srv/svn/myproject
vi /srv/svn/myproject/conf/svnserve.conf
--
[general]
anon-access = none
auth-access = write
password-db = passwd
username = password
svnserve -d -r /srv/svn
svnserve --help
kernel: wmaster0 (rt73usb): not using net_device_ops yet
kernel: wlan0 (rt73usb): not using net_device_ops yet
kernel: Registered led device: rt73usb-phy0:radio
kernel: Registered led device: rt73usb-phy0:assoc
kernel: Registered led device: rt73usb-phy0:quality
kernel: usbcore: registered new interface driver rt73usb
kernel: usbcore: registered new interface driver rt2500usb
ifconfig wlan0 up
--
SIOCSIFFLAGS: No such file or directory
kernel: rt73usb 1-4:1.0: firmware: requesting rt73.bin
firmware.sh[19027]: Cannot find firmware file 'rt73
pacman -S rt2x00-rt71w-fw ( or rt2x00-rt61-fw )
[archlinux.pl]
Server = ftp://repo.arch-linux.pl/i686
pacman -Sy rt73-k2wrlz
--
Drivers installed, but not loaded. To enable it: 'rmmod rt73usb && modprobe rt73
vi /etc/modprobe.d/blacklist
--
blacklist rt2500usb
blacklist rt73usb
blacklist rt2x00usb
blacklist rt2x00lib
rausb0 RT73 WLAN ESSID:""
Mode:Ad-Hoc Frequency=2.412 GHz Cell: XX:XX:XX:XX:XX:XX
Bit Rate=11 Mb/s
RTS thr:off Fragment thr:off
Link Quality=65/100 Signal level:-54 dBm Noise level:-143 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
iwlist rausb0 scan
iwconfig rausb0 essid "SSID" key 1234567890
iwconfig rausb0 essid "SSID" key s:asciikey
vi /etc/rc.conf
--
..
wlan_rausb0="rausb0 essid SSID mode Ad-Hoc key 1234567890"
rausb0="rausb0 XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.XXX"
INTERFACES=(eth0 rausb0)
..