Sveiki,
Radau visai superinį žaidimuką, tiems, kam patinka Heroes of Might and Magic serija…
Kas labai smagu, leidžia be registracijos šiektiek pažaisti…
Might and Magic: Heroes Kingdoms
O čia pora screensot’ų:
Sveiki,
Radau visai superinį žaidimuką, tiems, kam patinka Heroes of Might and Magic serija…
Kas labai smagu, leidžia be registracijos šiektiek pažaisti…
Might and Magic: Heroes Kingdoms
O čia pora screensot’ų:
Sveiki,
kaip sekas?
Vat prireikė greitai išspręsti tokią problemėlę… Debian GNU/Linux lenny + HP LaserJet 1010 + Windows client
Taigi… Ką darom?
Na susidiekime CUPS su HP palaikymu…
aptitude install cups hplip -t lenny-backports
Dabar beliko tik sukonfiguruoti…
Tikiuosi samba jau susikonfiguruota.?.
Taigi atsidarom vi /etc/cups/mime.convs ir atkomentuokim:
application/octet-stream application/vnd.cups-raw 0 -
atsidarom failą:vi /etc/cups/mime.types ir ten atkomentuokit:
application/octet-stream
Tuomet vi /etc/cups/cupsd.conf ten paziurekite sias opcijas:
Listen *:631
<Location /printers>
AuthType None
Order Allow,Deny
Allow From 192.168.1.*
</Location>
Tuomet restartuokim CUPS ![]()
/etc/init.d/cups restartTaigi, jei jau spausdina… ( jei ne brūkštelkit, bandysim debug’inti )
Dabar samba ![]()
Atsidarykime failiuką vi /etc/samba/smb.conf ir ten patikrinkime ir atkomentuokime:
[global]
printcap name = cups
printing = cups
[printers]
security = share
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
# guest ok = yes
guest only = yes
public = yes
read only = yes
create mask = 0700
create mode = 0700
use client driver = yes
/etc/init.d/samba restartAčiū
Internal Link:
SambA serveris mano namuose
External Link:
Sharing Printers With Windows PCs Debian and Windows Shared Printing mini-HOWTO
Sveiki, kaip sekas?
He he, šios Šv. Kalėdos buvo įpatingai nuostolingos… Susilaukėme tiek daug dovanų! Ir paskutinė dovanėlė tai: Linux. Vsio bėgu duoti maisto, nes pusvalandį jau sau vietos neranda…
Hello, how are you mates?
I have received second monitor at my job. I had to make everything work as i wanted to.
1) I wanted to make my second monitor show something
So I made a simple command:
dpkg-reconfigure -phigh xserver-xorg
But is it what we wanted to be?
NO! So task number 2:
2) Make two monitors display different view
So as I mentioned, I wanted that Second monitor would show something different
so I searched for dual-head xorg, found some xorg.conf files, but it didn’t worked for me… also found a super nice utility… so I tied to do something with it but no success
what to do? Oh let’s try: man xorg.conf it was successful!!! So I modified /etc/X11/xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us,ru(phonetic),lt"
Option "XkbVariant" "us,lt,ru(phonetic)"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen1" 1280 0
Screen "Screen2" 0 0
#Screen "Screen2" RightOf "Screen1"
InputDevice "Generic Keyboard"
#InputDevice "Configured Mouse"
EndSection
Section "Files"
EndSection
Section "Module"
Load "glx"
EndSection
Section "Monitor"
Identifier "SAMSUNG"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "LG"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "Generic Video Card"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Screen1"
Device "Generic Video Card"
Monitor "SAMSUNG"
DefaultDepth 24
SubSection "Display"
# Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
# Virtual 2048 1024
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device1"
Monitor "LG"
DefaultDepth 24
SubSection "Display"
#Viewport 0 0
Depth 24
# Modes "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
# Virtual 2048 1024
EndSubSection
EndSection
Section "Extensions"
#Option "Composite" "Enable"
Option "Composite" "Disable"
EndSection
As you see it’s nothing so complicated
as it look’s like
Sveiki,
Išsamesnis straipsniukas
Nežinau kaip jūs, bet yra tekę kartais panaršyt tokiuose vietose kur nežinia ar saugu naršyti. Tokiu atveju, patogu pasinaudoti SSH teikiamu socks naršymu. tam mums bereikia turėti SSH serveriuką (pasiekiamą iš išorės) ir bent IceWeasel ar FF browser‘į.
Taigi dabar beliko prisijungti prie ssh serverio… Neskubėkit, besijungiant prie ssh serverio reikia nepamiršti, nurodyti -D parametrą. Taigi jei aš pagal nutylėjimą jungiuosi prie ssh ssh -l username hostname tai šiuo atveju turėčiau jungtis:
ssh -l username -D 9999 hostnameEdit -> Preferences. Tuomet pasirenku tab’us Advanced -> Network. Ten Settings ir pasirenku radio button’ą Manual proxy configuration ir į SOCKS Host įrašome 127.0.0.1, o Port’ą nurodome tuos pačius keturis devynetus. Pasirenkame SOCKS v5, nors SSH (šiuo metu 2010-10-21 OpenSSH v5.1p1) palaiko v4 ir v5. Ir į No proxy for: įrašome savo lokalius tinklus ir jei reikia savo kompiuterį.
Atrodytų viskas… heh, ogi nieko panašaus… Žinot kas dabar lieka ten kur jūs naudojate savo naršyklę? O taip DNS! Heh, pasitikrinkit su wireshark filtruose nurodant port 53. Kaip gi apeiti šį blogį? Kam to reik? kad mūsų nemestu į netikrus puslapius ir iš mūsų neišžvejotų mūsų slaptažodžių. Taigi… Atsidarykite Mozillos produktą ir adreso laukelyje įrašykite about:config ten į filtrą įveskite:socks_remote_dns ir vienintelį (tikriausiai) likusį variantą doubleclick’inkite. jis turėtų pakeisti reikšmę į true. Psio.
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’ą.
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.
mdadm --detail /dev/mdxmdadm --manage --set-faulty /dev/md0 /dev/sdc1
mdadm /dev/md0 -r /dev/sdc1mdadm /dev/md0 -a /dev/sdc1mdadm --monitor --mail=root@localhost --delay=1800 /dev/md0--program ar --alert kurie nurodys kokį skriptuką kviesti įvykus klaidai.
External Link:
The Software-RAID HOWTO: Detecting, querying and testing
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
$ vi ~/.conkyrc
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}
Turėtume naudoti, kai skanuojame ext2 ar ext3 filesystem. Šie 2 metodai automatiškai išsaugo bad blocks rastus failų sistemoje, taigi šie kietojo disko sektoriai sektoriai nebebus naudojami.
Skaitymo (Read-only) metodas:
e2fsck -c -C /dev/hda1e2fsck -c -C -y /dev/hda1 (Šis būdas atsako TAIP į visus klausimus, taigi galite būti tikri, kad tikrinimas bus savarankiškas.)e2fsck -c -c -C /dev/hda1e2fsck -c -c -C -y /dev/hda1 (Šis būdas atsako TAIP į visus klausimus, taigi galite būti tikri, kad tikrinimas bus savarankiškas.)Tai turėtume naudoti tuščioje particijoje / diske. Taip pat tai galima naudoti particijoje / diske nesu ext2 ar ext3 filesystem. Galibūti, kad yra koks nors ekvivalentas (kažkas panašaus) į e2fsck jūsų failų sistemai, taigi galite tai pamėginti. Kai naudojate badblocks, bad blocks sąrašas nebus išsaugotas jūsų failų sistemoje automatiškai. Taip, yra įmanoma išsaugoti badblocks sąrašą ir jį pakišti jūsų failų sitemai. Šioje vietoje ir iškyla visas džiaugsmas – tokiu atveju būtina nurodyti blocksize badblocks programai tokį patį, kaip ir naudojama mūsų failį sistemoje arba bus naudojama. kitu atveju blokų numeriai neatitiks blokams naudojamiems failų sistemoje. Kaip įkelti blogųjų blokų sąrašą į sistemą aš nežinau, kolkas, taigi aprašysiu tai vėliau, bet tai galite susirasti man puslapiuose.
Read-only metodas:
badblocks -b 4096 -p 4 -c 32768 -s /dev/hda1Destruktyvus read/write metodas:
badblocks -b 4096 -p 4 -c 16384 -w -s /dev/hda1touch /backup.sh
mkdir /backup
chmod a+x /backup.sh
#!/bin/bash
cd /backup
file="`date +%Y%m%d-%H%M%S`.tar"
#echo $file
tar -cf new.backup/$file folder_to_backup
cd /backup/new.backup
bzip2 -zq9 $file
#rm $failas
echo "backed up `date` \n" >> /backup/backup.made
#remove older then 3 days to /backup/old.backup
find -type f -mtime +3 -exec mv {} ../old.backup/ \;
cd ../old.backup
# completely remove backups, older then 7 days
find -type f -mtime +7 -exec rm -f {} ../old.backup/ \;