Flattr this!

Sveiki Debian GNU/Linux ir *buntu fan’ai.
VU ITTC isteigė naują, patikimą, greitą LIETUVIŠKĄ Debian GNU/Linux Ubuntu mirror’ą (veidrodį).

* 1 Gbps (1000 Mbps) greitis;
* Pilni Debian GNU/Linux ir Ubuntu archyvai;
* Push-mirroring atnaujinimai (tai reiškia, jog veidrodis atsinaujina iš karto, kai tik Debian GNU/Linux ar Ubuntu bendruomenė patvirtina pakeitimus);
* Veidrodis yra oficialus ir pripažintas Debian GNU/Linux ir Ubuntu bendruomenių: itrauktas į launchpad.net sistemą ir download sistemą per ubuntu.com. Taip pat į cdn.debian.net bei yra įkeltas į ftp.lt.debian.org sąrašą (vienas iš greičiausiai pripažintų, patekusių į šį sąrašą).

Adresai:

http://debian.mirror.vu.lt

http://ubuntu.mirror.vu.lt

sources.list failiuka galima is karto atsisiusti:

http://debian.mirror.vu.lt/debian-sources.list

http://ubuntu.mirror.vu.lt/ubuntu-sources.list

Taip pat VU ITTC bendruomenė mąsto apie kitų linux distribucijų mirroring’ą.

 

Flattr this!

Sveiki, mes jau RAID levels – RAID Lygiai – RAID0 (stripe), RAID1 (mirror), RAID5 ir RAID2, RAID3, RAID4, RAID6 temoje aptar4me kuom skiriasi RAID masyvai dabar aptarikim trumpai kaip juos galima valdyti…
Nepamirškime, kad patariama naudoti RAID masyvų skirsnius atskiruose diskuose. Taip pat Debian Lenny 5.0.6 esantis GRUB neskaito /boot esančio masyve. Taigi reikia arba „pačinti“ GRUB’ą, arba naudoti vieną /boot skirsnį ne RAID masyve.


Taigi peržiūrėti galime pasitelkus komanda:

mdadm --detail /dev/mdx

/dev/mdx – mūsų raid masyvo įrenginys. Jeigu turime tokį masyvą vieną, tuomet tai, tikriausiai, md0.
Norint gražiai pašalinti diską iš masyvo, reikia pažymėti diską neveikiančiu. ir tuomet pašalinti diską iš masyvo. Taigi tokia tvarka ir surašytos komandos (tarkime mums reikia iš RAID5 pašalinti sdc diską):

mdadm --manage --set-faulty /dev/md0 /dev/sdc1
mdadm /dev/md0 -r /dev/sdc1


Įstačius naują diską, jį reikia paruošti, t.y. suformatuoti į RAID skirsnį ir tuomet prijungti prie sistemos:

mdadm /dev/md0 -a /dev/sdc1

Žinoma norėsime stebėti kaip veikia mūsų RAID masyvas ir paleisime demoną

mdadm --monitor --mail=root@localhost --delay=1800 /dev/md0

Šis demonas kas 300minučių stebės mūsų masyvą ir jei kas praneš el. paštu. Taip pat galime dar pridėti parametrus --program ar --alert kurie nurodys kokį skriptuką kviesti įvykus klaidai.

External Link:
The Software-RAID HOWTO: Detecting, querying and testing

 

Flattr this!

Sveiki,

Pastaruoju metu radau naują programėlę. Gal matėte screenshots (pvz tokius). Taigi tokį vaizdą galite pasiekti ir jūs. Tokia programėlė yra Conky. Jos pagalba galite sužinoti kokia programa užima daugiausia atminties, RAM ir pan.

Man yra tekę naudoti top, ntop, munin, bandwidthd. Žinoma, jie yra visai kitokio pobūdžio. ir tik conky leidžia informaciją patalpinti ant darbalaukio.

Taigi, kai jį įsidiegti:


# aptitude install conky


Konfigūracinis failas:


$ vi ~/.conkyrc


Failo turinys:


alignment top_right
background no
border_width 1
border_margin 4
cpu_avg_samples 2
default_color white
default_outline_color white
#default_shade_color white
default_shade_color yellow
draw_borders yes
draw_graph_borders yes
draw_outline no
draw_shades no
font 6x10
gap_x 5
gap_y 20
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
#own_window yes
own_window no
own_window_class Conky

own_window_type normal
#own_window_type override
own_window_transparent yes
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer no
show_graph_scale no
show_graph_range no

TEXT
${scroll 26 $nodename - $sysname $kernel on $machine | }
$hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color lightgrey}CPU Usage:${color} $cpu% ${cpubar}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color lightgrey}Processes:$color $processes ${color grey}Running:$color Ėrunning_processes
$color$stippled_hr
${color lightgrey}eth0:Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 51}eth0:Up:${color #22ccff} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
${color lightgrey}File systems:
/ $color${fs_used /}/${fs_size /} ${fs_bar /}
${color}Name PID CPU% MEM%
${color red}${cpugraph 0000ff 00ff00}
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color}Mem usage
${color green}${memgraph 0000ff 00ff00}
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$stippled_hr

${color #ddaa00}Port(s)${alignr}#Connections
$color Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 65535 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
${tcp_portmon 1 32767 rhost 7} ${alignr} ${tcp_portmon 1 32767 lservice 7}
${tcp_portmon 1 32767 rhost 8} ${alignr} ${tcp_portmon 1 32767 lservice 8}
${tcp_portmon 1 32767 rhost 9} ${alignr} ${tcp_portmon 1 32767 lservice 9}
${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port$color
${tcp_portmon 32768 65535 rhost 0} ${alignr} ${tcp_portmon 32768 65535 rservice 0}
${tcp_portmon 32768 65535 rhost 1} ${alignr} ${tcp_portmon 32768 65535 rservice 1}
${tcp_portmon 32768 65535 rhost 2} ${alignr} ${tcp_portmon 32768 65535 rservice 2}
${tcp_portmon 32768 65535 rhost 3} ${alignr} ${tcp_portmon 32768 65535 rservice 3}
${tcp_portmon 32768 65535 rhost 4} ${alignr} ${tcp_portmon 32768 65535 rservice 4}
${tcp_portmon 32768 65535 rhost 5} ${alignr} ${tcp_portmon 32768 65535 rservice 5}
${tcp_portmon 32768 65535 rhost 6} ${alignr} ${tcp_portmon 32768 65535 rservice 6}
${tcp_portmon 32768 65535 rhost 7} ${alignr} ${tcp_portmon 32768 65535 rservice 7}
${tcp_portmon 32768 65535 rhost 8} ${alignr} ${tcp_portmon 32768 65535 rservice 8}
${tcp_portmon 32768 65535 rhost 9} ${alignr} ${tcp_portmon 32768 65535 rservice 9}
${tcp_portmon 32768 65535 rhost 10} ${alignr} ${tcp_portmon 32768 65535 rservice 10}
${tcp_portmon 32768 65535 rhost 11} ${alignr} ${tcp_portmon 32768 65535 rservice 11}
${tcp_portmon 32768 65535 rhost 12} ${alignr} ${tcp_portmon 32768 65535 rservice 12}
${tcp_portmon 32768 65535 rhost 13} ${alignr} ${tcp_portmon 32768 65535 rservice 13}
${tcp_portmon 32768 65535 rhost 14} ${alignr} ${tcp_portmon 32768 65535 rservice 14}
${tcp_portmon 32768 65535 rhost 15} ${alignr} ${tcp_portmon 32768 65535 rservice 15}
${tcp_portmon 32768 65535 rhost 16} ${alignr} ${tcp_portmon 32768 65535 rservice 16}
${tcp_portmon 32768 65535 rhost 17} ${alignr} ${tcp_portmon 32768 65535 rservice 17}
${tcp_portmon 32768 65535 rhost 18} ${alignr} ${tcp_portmon 32768 65535 rservice 18}
${tcp_portmon 32768 65535 rhost 19} ${alignr} ${tcp_portmon 32768 65535 rservice 19}

Ir paleidžiame programą mūsų naudotoju.

 

Flattr this!

Sveiki gyvi!
Kaip gi jumi einas?

Heh, pasigedau kažkaip funkcionalumo savo Debian GNU/Linux ir pastebėjau, kad viso to kaltininkas yra Linux, kaip bebūtų keista… Taigi teko perrinkti branduolį ir pridėti jį prie savo Lenny Debian GNU. Taip jis tapo dar geresnis nei jis šiuo metu yra standartineje pakuotėje…

Tagi galim parsipūsti naujausia Linux/kernel/branduolį iš čia ir taip trokštamo funkcionalumo pagerinimą: reiser4 iš čia.


wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.tar.gz -c
wget http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/reiser4-for-2.6.32.patch.gz -c


Pridėjus -c raktelį, mes tęsiame siuntimą jei jau egzistuoja tokis failiukas.

Išpakuojame viską ir pereiname į linux išeigos kodo katalogą:


tar -xf linux-2.6.32.tar.gz
tar -xf reiser4-for-2.6.32.patch.gz

o jeigu parsisiuntėte bz2 plėtiniu, nebėda
bunzip2 reiser4-for-2.6.32.patch.bz2
cd linux-2.6.32.8


Dabar mum reik atnaujinti branduolį mūsų naująja funkcija :) :


patch -p1 < ../reiser4-for-2.6.32.patch


Nukopijuokime mūsų dirbančią banduolio konfigūraciją į šį katalogėlį:


cp /boot/config-`uname -r` ./.config


Dabar susidiekime reikalingus paketus:


su -c “apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential liblzo2-dev gzip”


Dabar reiktų įjungti Reiser4 palaikymą mūsų Linux branduoyje:


make menuconfig
Psirinkite:

File systems —>
< *> Reiser4 (EXPERIMENTAL)


Išsaugome config bylą ir paskutinieji bet neprasčiausi žingsniai – branduolio paketo kompiliavimas:


make-kpkg clean
fakeroot make-kpkg –initrd –append-to-version=-custom kernel_image kernel_headers


Beliko tik sudiegti šiuos deb’us:


dpkg -i linux*.deb


Ką daryti su RPM’ais?


make binrpm-pkg


Lyg ir tiek, ačiū už dėmesį
Ištekliai:
unixboard
linuxsaga

 

Flattr this!

Hello, How are you?

I have missed functionality in my Lenny kernel… (I think it’s for the first time…) So I needed to compile my own Linux for my Debian GNU to make if even better then it is.

I have received Linux/kernel package from here and reiser4 grab it from here.


wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.tar.gz -c
wget http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-2.6/reiser4-for-2.6.32.patch.gz -c


Adding -c if file with the same name exists continue downloading.

Unpackage everything. and move to linux source dir:


tar -xf linux-2.6.32.tar.gz
tar -xf reiser4-for-2.6.32.patch.gz

or if you have bz2
bunzip2 reiser4-for-2.6.32.patch.bz2
cd linux-2.6.32


now we need to patch our new Linux with a super puper function patch :) :


patch -p1 < ../reiser4-for-2.6.32.patch


So now we need to copy our working config file to linux directory:


cp /boot/config-`uname -r` ./.config


Now just make install of needed packages:


apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential liblzo2-dev gzip


Then we need to enable Reiser4 in our kernel by executing:


make menuconfig
And selecting:

File systems —>
< *> Reiser4 (EXPERIMENTAL)


Now save config and the last but not the least step is making/compiling linux kernel:


make-kpkg clean
fakeroot make-kpkg –initrd –append-to-version=-custom kernel_image kernel_headers


How we just need to install these debs:


dpkg -i linux*.deb


What’s for RPM’s?


make binrpm-pkg


 

Flattr this!

Desktop Linux Sucks, And What We Can Do About It

© 2012 LPIC - Linux Professional Institute Certification Suffusion theme by Sayontan Sinha