recompilare kernel:
Code: Select all
cd /usr/src/linux
make menuconfig
Code: Select all
[*] MTRR (Memory Type Range Register) support
Code: Select all
[*]VGA text console
[*] Video mode selection support
< > MDA text console (dual-headed) (EXPERIMENATL)
Frame-buffer support --->
Code: Select all
[*] Support for frame buffer devices (EXPERIMENATL)
[*] VESA VGA graphics console
salvati kernelul
Code: Select all
make dep && make bzImage modules modules_install
mount /boot
cp arch/i386/boot/bzImage /boot/bzImage_vga
Code: Select all
cd /boot/grub/
vim grub.conf
--------------------------------
default 0
timeout 10
splashimage=(hd0,0) /boot/grub/splash.xpm.gz
title Linux
root (hd0,0)
kernel /boot/bzImage_vga ro root=/dev/hda2 vga=788 video=vesa:ywrap,mtrr
----------------------------------------
Code: Select all
640x480 800x600 1024x768 adancimea culorii
769 771 773 256 | 8 biti
784 787 790 32k | 15 biti
785 788 791 65k | 16 biti
786 789 792 16mil | 24 biti
recompilam kernelul
cd /usr/src/linuc
make menuconfig
//recomand inserarea ca module(unde se poate)
-->IDE Options
- Include IDE/ATAPI CD-ROM support
SCSI emulation support
- SCSI support
SCSI CD-ROM support
Enable Vendor Specific Extensions(aici direct in kernel..nu merge ca modul)
SCSI Generic support
hdd=ide-scsi (inlocuiti hdd dupa caz)
apoi dupa ce inserati modulele(un modprobe ide-scsi cred ca ar fi de ajuns)
Code: Select all
cdrecord -scanbus
]3.cum setati un wallpaper si un terminal transparent
Code: Select all
Esetroot /path/to/wallpaper
Eterm -O --shade 65
creeati fisierul /etc/init.d/fairwall ->
Code: Select all
#!/bin/sh #/bin/bash #/sbin/whatevar :P
IPTABLES=/sbin/iptables
#default rulz...modificati pe riscu vostru ;) (edit) in fond ce ma intereseaza ce forwardez nu?? accept frate ;)
$IPTABLES -P FORWARD ACCEPT
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT ACCEPT
#lantu'(nu Iantu :P) conexiunilor permise
$IPTABLES -N allowed-connection
$IPTABLES -F allowed-connection
$IPTABLES -A allowed-connection -m state --state STABLISHED,RELATED -j ACCEPT
$IPTABLES -A allowed-connection -j DROP
$IPTABLES -N allow-traffic-in
$IPTABLES -F allow-traffic-in
$IPTABLES -A allow-traffic-in -m limit --limit 1/second -p tcp --tcp-flags ALL RST --dport <port> -j ACCEPT
$IPTABLES -A allow-traffic-in -m limit --limit 1/second -p tcp --tcp-flags ALL FIN --dport <port> -j ACCEPT
$IPTABLES -A allow-traffic-in -m limit --limit 1/second -p tcp --tcp-flags ALL SYN --dport <port> -j ACCEPT
$IPTABLES -A allow-traffic-in -p tcp --dport <port> -j ACCEPT
#outgoing trafic ...accept..nu ne intereseaza ce iese..doar ce intra ne #priveste ;)
$IPTABLES -N outraf
$IPTABLES -F outraf
$IPTABLES -A outraf -p tcp -j ACCEPT
$IPTABLES -A outraf -p udp -j ACCEPT
$IPTABLES -A INPUT -m state --state INVALID -j DROP
$IPTABLES -A INPUT -i lo -j ACCEPT
$IPTABLES -A INPUT -j allowed-connection
$IPTABLES -A INPUT -j allow-traffic-in
$IPTABLES -A FORWARD -m state --state INVALID -j DROP
$IPTABLES -A FORWARD -o lo -j ACCEPT
$IPTABLES -A FORWARD -j allowed-connection
$IPTABLES -A OUTPUT -o lo -j ACCEPT
$IPTABLES -A OUTPUT -j outraf
#NAT thingie
echo 1 > /proc/sys/net/ipv4/ip_forward
$IPTABLES -t nat -A POSTROUTING -o $IINTERFACE -j MASQUERADE
##loc pt imbunatari exista....mdeh mai RTFM si singuri
Code: Select all
ifconfig eth1 10.0.0.1 (sau ce vreti voi) broadcast 10.0.0.255 netmask 255.0.0.0
Code: Select all
#tune2fs -m 1 /dev/hdXY