Sunteți pe pagina 1din 17

######

DEBIAN
######

Pakiety potrzebne do kompilacji jądra (i truecrypt)


---------------------------------------------------
# apt-get install kernel-package ncurses-dev fakeroot wget bzip2

Instalacja ze źródeł i kompilacja modułów (potrzebne pakiety)


---------------------------------------------------------------
# apt-get install debhelper html2text module-assistant po-debconf libcompress-zlib-perl
\
linux-headers-'uname -r' build-essential
lub/i też:
# apt-get install cpp-4.1 gcc-4.1 gcc-4.1-base libmudflap0 libmudflap0-dev \
linux-headers-2.6.24-1-686 linux-headers-2.6.24-1-common linux-kbuild-
2.6.24

Wyłączenie tunelowania ipv6, kernel 2.6


---------------------------------------
1. In /etc/modprobe.d/aliases, change the line
.. "alias net-pf-10 ipv6" to
"alias net-pf-10 off"
"alias ipv6 off" ...
2. In /etc/modprobe.d/blacklist, add a line
... "blacklist ipv6"

Ustawienie interfejsów sieciowych


---------------------------------
1. In /etc/network/interfaces
... # The loopback network interface
auto lo
iface lo inet loopback ...

# The Realtek 8139


iface eth1 inet static
addres 10.110.120.10
netmask 255.255.255.248
broadcast 10.110.120.15
gateway 10.110.120.9
hwaddress ether 00:04:76:91:49:e3

# The Intel 3945ABG Wifi


auto eth2
iface eth2 inet static
address 10.110.120.18
netmask 255.255.255.252
broadcast 10.110.120.19
gateway 10.110.120.17
wireless-essid snookw8
wireless-mode ad-ho
2» echo "nameserver 195.242.134.1" »» /etc/resolv.conf

Rozdzielczość 1280x800 na chipsecie i945GM


---------------------------------------------
1» Download 915resolution
2» $ tar xzvf 915resolution-0.5.3.tar.gz
3» $ make
4» # make install
5» # 915resolution 38 1280 800 24
6» ew. zmiany w xorg.conf

Ustawienie poprawnej daty na laptopie FS Amilo Pi1505


------------------------------------------------------
hwclock --hctosys –directisa

Skrócenie czasu rozruchu usługi MTU


------------------------------------
1» dpkg-reconfigure exim4-config
"Other destinations for which mail is accepted" -» "" (Clear);
"Keep number of DNS-queries minimal" -» [YES]
2» Add to /etc/hostname domain name
127.0.1.1 fusilap.HOME-LAN fusilap

Adresy oficjalnego repozytorium dla Debiana


-------------------------------------------
1» In /etc/apt/sources.list
»»»
#Security
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
#Stable-contrin-nonfree
deb http://ftp.debian.org/debian stable main contrib non-free
deb-src http://ftp.debian.org/debian stable main contrib «««

Dodawanie repozytorium Opery dla Debian Etch


---------------------------------------------
1» In /etc/apt/sources.list
»»» deb http://deb.opera.com/opera/ etch non-free
2» Installing the key on system.
# gpg --keyserver subkeys.pgp.net --recv-key 6A423791
# gpg --fingerprint 6A423791
# gpg --armor --export 6A423791| sudo apt-key add -

Dodawanie repozytorium Kadu dla Debian Etch


---------------------------------------------
1» In /etc/apt/sources.list
»»» deb http://www.kadu.net/download/binary/debian/repo testing main
2» Installing the key on system.
# wget http://poczta.prezu.one.pl/miastoplusa_sms/gpg.txt -O- | sudo apt-key add -

Flash w przeglądarkach Firefox i Opera


---------------------------------------

Obsługa sys. plików NTFS za pomocą NTFS-3G


------------------------------------------
1» In /etc/apt/sources.list add
»»» deb http://ftp.debian.org/debian testing main
apt-get install ntfs-3g

Tworzenie prostego repozytorium lokalnego (przykład dla OO.org)


---------------------------------------------------------------
1»Tworzenie katalogu dla repo
# mkdir -p /var/cache/apt/OO.o/binary
2» Skopiowanie paczek do katalogu
3» Stworzenie pliku z listą paczek
# cd /var/cache/apt/OO.o/binary
# dpkg-scanpackages binary /dev/null » binary/Package
# gzip -c9 binary/Packages » binary/Packages.gz
4» Dodanie wpisu w /etc/apt/sources.list
»»» deb file:///var/cache/apt/OO.o binary/

XWNT2-K7CHT-GD2EN-HQAZD-BTBK5

Instalowanie fontów z Windowsa


-------------------------------
1» # mkdir /usr/share/fonts/truetype/msfonts
2» # cp *.ttf /usr/share/fonts/truetype/msfonts/
3» # cd /usr/share/fonts/truetype/msfonts/
4» # chmod 644 *
5» # fc-cache -f -v
Ustawienia czcionek w xfce
--------------------------
1» User Interface -» Theme -» Font -» Tahoma 8.5
2» Window Manager -» Style -» Title font -» Sans Bold 9
3» Mousepad -» Lucida Console 10

Ustawienia wyglądu dla programów QT


-----------------------------------
1» # apt-get install qtconfig
# apt-get install polymer
2» In qtconfig
Fonts -» (Default Font) Family -» Tahoma
Style -» Normal
Point Size -» 8
Appearance -» Select GUI Style -» Polymer
3» In /home/'user'/.fonts.conf
»»»
«?xml version="1.0"?»
«!DOCTYPE fontconfig SYSTEM "fonts.dtd"»
«fontconfig»

«match target="font" »
«edit mode="assign" name="rgba" »
«const»none«/const»
«/edit»
«/match»

«match target="font" »
«edit mode="assign" name="hinting" »
«bool»true«/bool»
«/edit»
«/match»

«match target="font" »
«edit mode="assign" name="hintstyle" »
«const»hintfull«/const»
«/edit»
«/match»

«match target="font" »
«edit mode="assign" name="antialias" »
«bool»false«/bool»
«/edit»
«/match»

«dir»~/.fonts«/dir»
«/fontconfig»
««««

Zmiana czcionki interfejsu dla OpenOffice.org


---------------------------------------------
In OO.o
1» Narzedzia -» OpenOffice.ux.pl -» Widok ..
.. -» Wygładzane czcionek ekranowych -» Disable
2» Narzedzia -» OpenOffice.ux.pl -» Widok ..
.. -» Użyj czcionki systemowej w interf. użytk. -» Disable
3» Narzedzia -» OpenOffice.ux.pl -» Czcionki ..
.. -» Zastosuj tabelę zamian [Enable]
[Czcionka] Andale Sans UI (wpisać ręcznie jeśli nie ma)
[Zamień na] Trebuchet MS
[Zawsze] Marked
[Tylko ekran] Unmarked
Połączenie GPRS-EDGE (SE W300i)
--------------------
(http://www.szarp.com.pl/howto/howto/html/gprs.html)

1» apt-get install ppp


2» In /etc/ppp/peers/edge-gprs
»»» debug
# Max speed
57600
# Do not use hardware flow control
nocrtscts
# Don't keep pppd attached to the terminal:
updetach
# Connection options
nodeflate
lcp-echo-interval 0
# Path to chat script connect/disconnect
connect "/etc/ppp/edge-gprs-connect-chat"
# IP address configuration
noauth
noipdefault
usepeerdns

novj
novjccomp
nobsdcomp
defaultroute
# Enter below your path to modem
/dev/ttyACM0
«««
3» In /etc/ppp/edge-gprs-connect-chat
»»»
/usr/sbin/chat \
TIMEOUT 20 \
ECHO ON \
ABORT '\nBUSY\r' \
ABORT '\nERROR\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nNO CARRIER\r' \
ABORT '\nNO DIALTONE\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
SAY "Press CTRL-C to close the connection at any stage!" \
TIMEOUT 60 \
'' '\rAT' \
OK 'ATE1' \
OK 'AT+CGDCONT=1,"IP","AP_OPERATORA"' \
OK 'ATD*99***1#' \
TIMEOUT 30 \
CONNECT "" \
SAY "\nConnected."
«««

AP_OPERATORA = (ERA; "erainternet")


Dodatkowo wpisujemy do /etc/ppp/pap-secrets"erainternet * erainternet "
oraz do /etc/ppp/peers/edge-gprs"user erainternet" oraz "auth"

= (ORANGE; "www.idea.pl")
Dodatkowo do /etc/ppp/peers/edge-gprs dopisujemy "noauth".

= (PLUS; "www.plusgsm.pl")
Dodatkowo do /etc/ppp/peers/edge-gprs dopsujemy "noauth".

4» pppd call edge-gprs


5» route add default gw «remote ip address»
Sun Java Runtime Environment
----------------------------
1» apt-get install sun-java5-jre
2» Plugin for Mozilla (Iceweasel)
ln -s /usr/lib/jvm/java-1.5.0-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so \
/usr/lib/iceweasel/plugins/libjavaplugin_oji.so
3» Java for Opera. In Opera:
Tools -» Preferences -» Advanced -» Content
... -» Enable Java [Mark]
In [Java options] Java path = «path-to-the-libjava.so»
In Debian Etch:
(/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre/lib/i386/)

Zarzadzanie energią ACPI


-------------------------
1» Jądro
Power management options (ACPI, APM) ---»
* Power Management support
Software Suspend 2 ---»
«*» Software Suspend 2
«*» Swap Writer
(/dev/hdaX) Default resume device name

ACPI (Advanced Configuration and Power Interface) Support ---»


* ACPI Support
«*» AC Adapter
«*» Battery
«*» Button
«*» Fan
«*» Processor
«*» Thermal Zone

2» apt-get install acpi


3» test acpi
# cat /proc/acpi/info (should gives result like "version: 20060707")
4» apt-get install acpifrequtils
5» Dodanie modułów uruchamianych wraz ze startem systemu
Dla kernela «= 2.6.18
echo speedstep_centrino »» /etc/modules (pentium m, core solo, core duo, core 2 duo)
echo p4_clockmod »» /etc/modules (pentium 4, pentium d)
echo powernow_k6 »» /etc/modules (K6, K6-2, K6-3)
echo powernow_k7 »» /etc/modules (Athlon, Athlon XP, Duron)
echo powernow_k8 »» /etc/module (Athlon 64, Athlon X2, Sempron)
Dla kernela »= 2.6.20
echo acpi-cpufreq »» /etc/modules

echo cpufreq_ondemand »» /etc/modules


echo cpufreq_userspace »» /etc/modules
echo cpufreq_powersave »» /etc/modules
echo cpufreq_conservative »» /etc/modules

6» Ustawienie domyślego "governor"


Create or edit /etc/defaults/cpufrequtils
»»»
ENABLE="true"
GOVERNOR="conservative" (lub inne)
7» Sprwadzenie działania "CPU frequency scal ing"
cat /sys/devices/system/cpu/cpu0(1)/cpufreq/scaling_available_governors
cat /sys/devices/system/cpu/cpu0(1)/cpufreq/scaling_governor
cat /dev/urandom » /dev/null

[http://gentoo-wiki.com/HOWTO_PowerNow!]
[http://www.ndap.net/archives/2007/04/23/cpu_frequency_scaling_in_debian_4_0_etch/]
[http://www.thinkwiki.org/wiki/Installing_Debian/Sid_on_a_ThinkPad_T43#ACPI]

Instalacja sektora GRUB-a


-------------------------
1» Utworzenie /boot/grub/menu.lst
2» # grub
# root(hd0,0) -» partycja na której znajduja sie pliki konfiguracyjne gruba (liczone
od zera)
# setup (hd0) -» instalacja sektora rozruchowego

Instalacja plików GRUB-a na innym dysku


---------------------------------------
1» grub-install --no-floppy --recheck --root-directory=/mnt/usbflash /dev/sdd

Ręczne uruchamianie systemu w konsoli GRUB-a


--------------------------------------------
1» # root (hd0,0)
# kernel /path-to/kernel-file root=/dev/of-system-disk ro
(kernel /boot/vmlinuz-2.6.18-5-686 root=/dev/sdc1 ro)
# initrd /path-to/init-ramdisk
(initrd /boot/initrd.img-2.6.18-5-686)
# boot

Tworzenie dowiązania do urządzenia fizycznego dla VirtualBox


------------------------------------------------------------
1» # VBoxManage internalcommands createrawvmdk -filename \
/usr/share/virtualbox/msmicro-256-sde.vmdk -rawdisk /dev/sde

Formatowanie partycji
---------------------
1» apt-get install dosfstools
# mkdosfs -F 32 -n PENDRIVE -v /dev/sdb1

Sprawdzanie wersji Debiana


--------------------------
1» cat /etc/debian_version

Aktualizacja Debiana
---------------------
1» edit source.list
change all code name from one into another (eg. "etch" to "sid and "stable" to
"testing")
2» apt-get update
3» apt-get dist-upgrade

Stos bluetoooth
-----------------
1» aptitute -» "/" -» bluez-utils -» "g"

Uźycie module-assistant
------------------------
1» m-a a-i «nazwa-pakietu» #m-a uzupelnia nazwe o source lub src

WineHQ repozytorium
------------------------
1» wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

#######
FIREFOX
#######

»»»Firefox - "Backspace" jako "cofnij"


about:config -» browser.backspace_action -»
0 - Backspace działa jak cofnięcie (defaultowo windows)
1 - Backspace przenosi nas na górę strony

#http://kb.mozillazine.org/Browser.backspace_action

»»»Firefox - "Load tabs in background"


about:config -» browser.tabs.loadDivertedInBackground -» true

»»»Firefox - "open the search in the new tab"


about:config -» browser.search.openintab -» true

»»»Firefox - "open tab right of current"


Install MiniT -»
about:config -» minit.open_tabs_relative -» true
»»»Firefox - "Usuwanie limito na kral"
about:config -» general.useragent.extra.firefox - » *; MEGAUPLOAD 1.0

»»»Firefox - "Wyłączenie protokołu ipv6"


about:config -» network.dns.disableIPv6 - » true

#############
GENERAL LINUX
#############

Zmiana i odzczyt daty i czasu


-----------------------------
1. Set the system date and time
# date --set="2002-6-29 11:59 AM"
2. Set the system clock forward by two minutes:
# date --set='+2 minutes'
3. To print the date of the day before yesterday:
# date --date='2 days ago'
4. To print the date of the day three months and one day hence:
# date --date='3 months 1 day'
http://webtools.live2support.com/linux/date.php

tworzenie systemu plików w pliku


--------------------------------
# dd if=/dev/zero of=/mnt/storage/lin.part bs=1M count=100
# losetup /dev/loop1 /mnt/storage/lin.part
# mke2fs -j -O dir_index /dev/loop1
# mkdir /mnt/virtualfs
# mount /dev/loop1 /mnt/virtualfs/

montowanie obrazu cd
----------------------
mount -o loop -t iso9660 /ścieżka/do/obrazu/image.iso
/ścieżka/docelowa/montowanego_obrazu

tworzenie obrazu płyty cd/dvd


--------------------------------
dd if=/dev/cdrom of=/ścieżka/do/obrazu/image.iso

Instalacja Wielkiego Multim. Słownika PWN-Oxford Pol-Ang 2006


-------------------------------------------------------------
1» Wpisy w rejestrze system.reg
[Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\SPWNOUPA.exe] 1202147796
@="c:\\Program Files\\PWN\\WSPWNOUP2006\\SPWNOUPA.exe"
"Path"="c:\\Program Files\\PWN\\WSPWNOUP2006"

_!_[Software\\PWN\\Wielki s\x142ownik polsko-angielski i angielsko-polski PWN-


OXFORD\\2006] 1202146643
"BaseInstalled"=dword:00000003
"Serial"="7LM-Y4V-ELF-ELQ"
"Version"=dword:00000001

_!_[Software\\PWN\\Wielki s\x142ownik polsko-angielski i angielsko-polski PWN-


OXFORD\\2006\\Katalogi] 1202147924
"Base"=dword:c04bd693
"CD"="E:\\"
"Dane"="C:\\Program Files\\PWN\\WSPWNOUP2006\\Data\\"
"Exe"="C:\\Program Files\\PWN\\WSPWNOUP2006\\SPWNOUPA.exe"
"Install"=dword:00000001

[Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Wielki s\x142ownik polsko-


angielski i angielsko-polski PWN-OXFORD] 1202147796
"DisplayName"="Wielki s\x142ownik polsko-angielski i angielsko-polski PWN-OXFORD"
"UninstallString"="c:\\windows\\IsUn0415.exe -f\"c:\\Program
Files\\PWN\\WSPWNOUP2006\\Uninst.isu\""

2» Wpisy w rejestrze User.reg

[Software\\PWN\\Wielki s\x142ownik polsko-angielski i angielsko-polski PWN-


OXFORD\\2006] 1202147938
"Accelerator"=dword:e0000041
"AngPol"=dword:00000001
"ClipboardCheck"=dword:00000000
"DblClick"=dword:00000000
"FontSize"=dword:00000001
"ShowInTooltip"=dword:00000001
"Splitter"=dword:00000090
"TopMost"=dword:00000000
"WndPl"=hex:2c,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,\
ff,ff,ff,ff,ff,ff,01,00,00,00,1c,00,00,00,b5,02,00,00,92,02,00,00

[Software\\Local AppWizard-Generated Applications\\PWN-OXFORD Dictionary\\Settings]


1202147817
[Software\\Local AppWizard-Generated Applications\\Wielki s\x142ownik PWN-
OXFORD\\Settings] 1202146820

Dla instalacji z w katalogu c:\Program Files\PWN\WSPWNOUP2006 z:


- plikiem-bazą dźwiękową ustawiamy wartość: Base"=dword:8059fe93
- bez bazy dźiękowej: Base"=dword:c04bd693
- inne: 13b74813

Wpis dla wersji 2004:

[Software\\PWN\\Wielki s\x142ownik polsko-angielski i angielsko-polski PWN-


OXFORD\\2004] 1211849346
"ClipboardCheck"=dword:00000001
"Splitter"=dword:00000090
"TopMost"=dword:00000001
"WndPl"=hex:2c,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,\
ff,ff,ff,ff,ff,ff,00,00,00,00,1c,00,00,00,06,02,00,00,f8,00,00,00

Tworzenie ramdysku
-------------------
1» sprawdzanie bloku ramdysku
dmesg | grep RAMDISK
2» zmiana wielkości urządzenia /dev/ram?
a) przez przekazanie parametru do kernela ramdisk_size=x*1024B
-GRUB (In /boot/grub/menu.lst)
»»» kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdc=ide-scsi ramdisk_size=16000
title Red Hat Linux (2.4.20-20.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdc=ide-scsi ramdisk_size=16000
initrd /initrd-2.4.20-20.9.img
-LILO (In /etc/lilo.conf)
»»» image=/boot/vmlinuz
label=linux
root=/dev/hda2
read-only
ramdisk_size=10000
b) przez dynamicznie ładowania modułu jądra rd
- #» insmod rd rd_size=10000
- In /etc/conf.modules
»»» options rd rd_size=10000

3» tworzenie systemu plików i montowanie


mkfs -t ext2 /dev/ram0
mount /dev/ram0 /media/ramdisk/

Obsługa truecrypt
------------------
1» montowanie woluminu (z hasłem z pliku)
# truecrypt -p 'manual_pass' -k /path/to/passwd.file /path/to/encrypted/volume
/where/to-mount/
2» wyswietlanie zamontowanych woluminów
# truecrypt -l
3» odmontowywanie woluminu
# truecrypt -d /dev/mapper/truecrypt? ( ? - numer urządzenia mapującego
zaszyfrowany wolumin, zazwyczaj 0)

Budowanie Debiana na pamięci Flash (lub dysku)


----------------------------------------------
1» tworzenie partycji typu Primary, Linux, Active
# fdisk /dev/sdd (n p 1 ; t 83 ; a 1 ; w)
2» formatowanie partycji
# mkfs.ext2 /dev/sdd1
3» budowanie wersji rozruchowej Debiana (bootstrap)
# mkdir -p /mnt/chroot/boot
# debootstrap etch /mnt/chroot (lenny, sid, --arch i386)
4» konfigurowanie systemu
# chroot /mnt/chroot
a) lokalizacja (jeżeli debootstrap nie zainstalował)
# apt-get install locales
# dpkg-reconfigure locales
# apt-get install localepurge
# localepurge
b) instalacja kernela
# apt-get install linux-image-2.6.24-1-686
c) instalacja dodatkowych pakietów
# apt-get mc links grub
d) usuwanie niechcianych paczek i plików
# rm /var/cache/apt/archives/*.deb
# dpkg --purge vim-tiny vim-common tasksel tasksel-data ed laptop-detect dmidecode
# dpkg --purge dgroff-base libsasl2 cyrus-sasl2-doc
e) edycja plików konfiguracyjnych
+ urządzenie sieciowe loopback
In /etc/network/interfaces
»»» auto lo
iface lo inet loopback
+ serwer DNS
In /etc/resolv.conf
»»» search strong-pc.com
nameserver 195.242.134.1
nameserver 195.242.134.74
+ repozytorium
In /etc/apt/sources.list
»»» #Debian lenny
deb http://ftp.debian.org/debian lenny main contrib non-free
deb-src http://ftp.debian.org/debian lenny main contrib non-free

#Debian lenny updates


deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
+ nazwa hosta
In /etc/hosts
»»» 127.0.0.1 localhost
127.0.1.1 homecenter.HOME-LAN homecenter
In /etc/hostname
»»» homecenter
+ systemy plików
In etc/fstab
»»» proc /proc proc defaults 0 0
/dev/sdc1 /boot ext2 defaults,errors=remount-ro 0 0

5» kopiowanie plików na pamięć flash


# mount /dev/sdd1 /mnt/usbflash
# cp -R /mnt/chroot/* /mnt/usbflash

6» instalacja GRUB-a
# mount -o bind /dev /mnt/usbflash/dev/
# chroot /mnt/usbflash/
# mkdir /boot/grub ; update-grub
# exit
# umount /mnt/usbflash/dev/
# grub-install --no-floppy --recheck --root-directory=/mnt/usbflash /dev/sdd

Uruchamianie IBM Lotus Symphony 1


------------------------------------
1. # /opt/ibm/lotus/Symphony/framework/shared/eclipse/plugins/\
com.ibm.productivity.tools.standalone.addin_3.0.1.20080529-0018/apps/IBM\
Lotus\ Symphony

Zmiana ustawień taskbar dla GNOME


---------------------------------
1. $ gconf-editor
-> /apps/panel/toplevels/top_panel_screen0 or (..)bottom_panel_screen0
[auto_hide_size] set this to 0 if you want the bar to completely disappear (1)
[hide_delay] change how fast the bar would hide (200)
[unhide_delay] same for unhide.. (500)

Szybkość kreślenia menu w GNOME


--------------------------------
1. $ cd ~
$ gedit ./gtkrc-2.0
2. dodać wpis (czas w milisekundach)
>> gtk-menu-popup-delay = 100

Repozytorium Debian Multimedia


----------------------------------
1. Dodanie repozytorium
# wget http://debian-multimedia.org/gpgkey.pub -O - | apt-key add -
# apt-get update && apt-get install debian-multimedia-keyring

Kodeki dla TOTEM


--------------------------------
# apt-get install gstreamer0.10-ffmpeg

Ustawienie poprawnej watości DPI dla czcionek w GDM


----------------------------------------------------
1. W pliku /etc/gdm/gdm.conf wstawić
>>> [server-Standard]
name=Standard server
command=/usr/bin/X -br -audit 0 -dpi 96
flexible=true <<<

Ustawienie parametru Gamma przez xorg.conf


-------------------------------------------
1. W sekcji "Monitor" dodajemy opcje Gamma
>>> Section "Monitor"
(..)
Gamma 0.75 0.75 0.75
EndSection <<<
Instalacja bezp. karty siec. Intel 3945ABG
w systemach z kernelem od 2.6.24 wzwyż
------------------------------------------
1. Zainstalować firmware
# aptitude install firmware-iwlwifi
2. Jeżeli wcześniej była starsza wersja (ipw) usunąć plik
/etc/udev/rules.d/z25_persistent-net.rules

Instalacja Truecrypt 6.0 i > z wxWidget


---------------------------------------
1. Pakiety potrzebne do kompilacji
# apt-get install build-essential libfuse-dev fuse-utils pkg-config libgtk2.0-dev
2. Załadowanie modułu fuse
# modprobe fuse lub/i
edytujemy plik modules
# vi /etc/modules
... #FUSE for TrueCrypt
fuse ...
3. Pobieranie wxWidget
$ cd ~/Desktop/
$ wget http://kent.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.8.8.tar.gz
$ tar xvfz wxGTK-2.8.8.tar.gz
4. Pobieranie źródeł Truecrypt dla Linux/Mac
5. Kompilacja programu
$ cd ~/Desktop/truecrypt-6.0a-source/
$ make WX_ROOT=~/Desktop/wxGTK-2.8.8 wxbuild
$ make
6. Skopiowanie potrzebnych plików do katalogów systemowych
# cp /home/%your_username%/Desktop/truecrypt-6.0a-source/Main/truecrypt
/usr/local/bin/
# mkdir /usr/share/truecrypt
# cp truecrypt-6.0a-source/Release/Setup\ Files/TrueCrypt\ User\ Guide.pdf
/usr/share/truecrypt
7. Usuwanie niepotrzebnych plików
$ rm -Rf truecrypt-6.0a-source TrueCrypt\ 6.0a\ Source.tar.gz wxGTK-2.8.8 wxGTK-
2.8.8.tar.gz

Integracja kolorystyki Wine z natywnym pulpitem


------------------------------------------------
1. Dla środowiska GNOME.

KOLOR EL. W GNOME = KOLOROWI EL. W WINE


Selected Items (text) = Active Title Text
Windows (background) = Controls Background
Windows (text) = Controls Text
Windows (background) = Inactive Title Bar
Windows (background) = Menu Background
Windows (text) = Menu Text
Selected items (background) = Scrollbar
Selected items (background) = Selection Background
Selected items (text) = Selection Text
Tooltips (background) = ToolTips Background
Tooltips (text) = ToolTips Text
Selected Items (background) = Active Title Bar
Czciona: Tahoma 9

2. Dla środowiska KDE

KOLOR EL. W KDE = KOLOROWI EL. W WINE


Active Title Text = Active Title Text
Inactive Title Bar = Inactive Title Bar
Inactive Title Text = Inactive Title Text
Windows Background = Menu Background
Window Text = Menu Text
Standard Background = Window Background
Standard Text = Window Text
Selected Background = Scrollbar
Selected Background = Selection Background
Active Title Bar = Active Title Bar

#############
GENTOO
#############

iptables SNAT
-----------------
1»emerge iptables
2»Kernel configuration 2.6.20
Networking ---»
Networking options ---»
[*] Network packet filtering framework (Netfilter) ---»

Core Netfilter Configuration ---»


«*» Netfilter netlink interface
«*» Netfilter NFQUEUE over NFNETLINK interface
«*» Netfilter LOG over NFNETLINK interface
[*] Connection tracking flow accounting
[*] Connection mark tracking support
[*] Connection tracking events (EXPERIMENTAL)
«*» Connection tracking netlink interface (EXPERIMENTAL)
«*» Netfilter Xtables support (required for ip_tables)
«*» "connbytes" per-connection counter match support
«*» "connmark" connection mark match support
«*» "conntrack" connection tracking match support
«*» "state" match support
«*» "helper" match support

IP: Netfilter Configuration ---»


«*» IPv4 connection tracking support (required for NAT)
[*] proc/sysctl compatibility with old connection tracking
«*» IP tables support (required for filtering/masq/NAT)
« » ECN match support
«*» Packet filtering
«*» REJECT target support
«*» LOG target support
«*» Full NAT
«*» MASQUERADE target support

Kernel configuraton 2.6.*


Networking ---»
Networking options ---»
[*] Network packet filtering (replaces ipchains) ---»

Core Netfilter Configuration ---»


«*» Netfilter netlink interface
«*» Netfilter NFQUEUE over NFNETLINK interface
«*» Netfilter LOG over NFNETLINK interface
«*» Netfilter Xtables support (required for ip_tables)
«*» "state" match support

IP: Netfilter Configuration ---»


«*» Connection tracking (required for masq/NAT)
«*» IP tables support (required for filtering/masq/NAT)
« » ECN match support
«*» Packet filtering
«*» REJECT target support
«*» LOG target support
«*» Full NAT
«*» MASQUERADE target support

3»echo "1" » /proc/sys/net/ipv4/ip_forward


4»iptables -t nat -A POSTROUTING -s 10.110.120.2 -j SNAT --to 91.90.113.123

framebuffer grub
-----------------------
1»Kernel configuration 2.6.*
a» Wymagane komponenty
Device Drivers »
Graphics support: »
[*] Support for frame buffer devices
«*» VESA VGA graphics support
VESA driver type (vesafb-tng) ---»
(1280x1024@60) VESA default mode
Device Drivers » Graphics support » Console display driver support:
[*] Video mode selection support
«*» Framebuffer Console support
Device Drivers » Graphics support:
[*] Support for the framebuffer splash

b» Opcje dla Splashscreen? Automatyczne ładowanie obrazu initramfs podczas startu


systemu
Device Drivers » Block devices:
«*» RAM disk support
(4096) Default RAM disk size (kbytes) (NEW)
[*] Initial RAM disk (initrd) support

c» wylaczamy
Device Drivers » Graphics support:
[ ] Enable Tile Blitting Support

d» Włączamy obsługę interfejsu zdarzeń (do przelaczania pomiedzy trybami silent i


verbose
w trakcie wczytywania systemu - F2)
Device Drivers » Input Device Support
«*» Event Interface

e» Zwiększamy bufor przewijania strony


Device Drivers » Graphics support » Console display driver support
[*]Enable Scrollback Buffer in System RAM
(256)Scrollback Buffer Size (in KB)

2» Wpis w grub
video=vesafb:1280x1024-16@60,ywrap,mtrr:2

Konfiguracja deamona sieci


---------------------
1» Gentoo
a»cd /etc/init.d
ln -s net.lo net.eth0
ln -s net.lo net.eth1
b»edycja deamona sieci /etc/conf.d/net
mac_eth0="xx:xx:xx:xx:xx:xx"
config_eth0=("91.90.113.123 netmask 255.255.255.0 brd 91.90.113.255")
routes_eth0=("default gw 91.90.113.1")
config_eth1=("10.110.120.1 netmask 255.255.255.248 brd 10.110.120.7")
c»rc-update add net.eth0 default
rc-update add net.eth1 default
rc
Zakładanie konta uzytkownika
-------------------------------
1» useradd -m vasc -s /bin/bash
passwd vasc
usermod -G audio,cdrom,usb,video,wheel vasc
2» dodawanie do grup
usermod -a -G wheel vasc

Instalacja nowego kernela


----------------------------

1» Gentoo
cd /usr/src/linux
make menuconfig
make
make modules_install
cp ./arch/i386/boot/bzImage /boot/kernel-"version"-"distroname"-"arch"

S-ar putea să vă placă și