CheckPoint SNX na openSuSE 12.2

Za uspješno pokretanje CheckPoint SNX (SSL Network Extender) on openSuSE 12.2 64bit potrebno je instalirati nekoliko dodatnih paketa na sistem.

Kako piše na službenoj stranici https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk65210 openSuSE 12.2 32 i 64 bitna verzija OS-a je podržana verzija Linux-a, ali paketa compat-libstdc++ (compat-libstdc++.i586) na OS 12.1 jednostavno nema nego je potrebno instalirati pakete compat-openssl097g koji je zadužen za Secure Sockets and Transport Layer Security.

Popis paketa potrebnih za SNX:

  • java-1_7_0-openjdk
  • compat-openssl097g
  • compat-openssl097g
  • compat-openssl097g-32bit
  • pam-32bit
  • pam-modules
  • pam-modules-32bit

Sve to u jednom potezom možemo instalirati sljede?om komandom:

sudo zypper in compat-openssl097g compat-openssl097g-32bit pam-32bit pam-modules pam-modules-32bit java-1_7_0-openjdk

‘?ega zametnuh (ili kako prona?i ono što tražim)

Pronalazi sve prazne fajlove u home direktoriju
find ~ -empty -exec ls -al {} \;

ili recimo na?i u trenutnom direktoriju sve datoteke koje su prazne
find . -empty

ili prona?i sve
find . -maxdepth 1 -empty

Prona?i sve velike datoteke i prikaži mi 10 najve?ih

Pronalazi sve fajlove koji imaju u imenu .db (Npr. Thumb.db) ekstenziju i ispisuje ih sa komandom ls
find -iname *.db -exec ls {} \;

Pronalazi sve fajlove koji imaju u imenu .db ekstenziju i briše ih sa ih sa komandom rm
find -iname *.db -exec rm {} \;

URL: http://www.thegeekstuff.com/2009/03/15-practical-linux-find-command-examples/

Problem sa VMware vSphere ESXi 5.1 i HP Ultrium LTO4

For ESXi 5.1 is the same command as for ESXi 5.0.

ESXi 5.0 command
esxcli storage nmp satp rule add –satp VMW_SATP_LOCAL –driver=”aic79xx” –description=”AHA 29320 LPE”

ESXi 5.1 command
esxcli storage nmp satp rule add –satp VMW_SATP_LOCAL –driver=”aic79xx” –description=”AHA 29320 LPE”

To check the rules run the command:
esxcli storage nmp satp rule list |grep Adaptec

Problem sa priikazom MKV videa na Philips TV

Philips televizori podržavaju MKV kontejnere sa MPEG1, MPEG-2, ACC i AC3 audio zapisom, pa ukoliko video sadržava DTS audio kodek potrebno je napraviti konverziju audio zapisa sa recimo AC3 audio kodekom.

Konverzija audio zapisa iz DTS u AC3 kroz CLI na Linux-u:
ffmpeg -i ime_fajla.DTS.x264.mkv -acodec ac3 -vcodec copy ime_fajla.AC3.x264.mkv

ifconfig vs ip

ifconfig vs ip

The command /bin/ip has been around for some time now. But people continue using the older command /sbin/ifconfig. Let’s be clear: ifconfig will not quickly go away, but its newer version, ip, is more powerful and will eventually replace it.

The man page of ip may look intimidating at first, but once you get familiar with the command syntax, it is an easy read. This page will not introduce the new features of ip. It rather features a side-by-side comparison if ifconfigand ip to get a quick overview of the command syntax.

Show network devices and configuration 

ifconfig
ip addr show
ip link show

Enable a network interface 

ifconfig eth0 up
ip link set eth0 up

A network interface is disabled in a similar way:

ifconfig eth0 down
ip link set eth0 down

Set IP address 

ifconfig eth0 192.168.0.77
ip address add 192.168.0.77 dev eth0

This was the simple version of the command. Often, also the network mask or the broadcast address need to be specified. The following examples show the ifconfig and ip variants.

Needless to say that the netmask can also be given in CIDR notation, e.g. as 192.168.0.77/24.

ifconfig eth0 192.168.0.77 netmask 255.255.255.0 broadcast 192.168.0.255
ip addr add 192.168.0.77/24 broadcast 192.168.1.255 dev eth0

Delete an IP address 

With ip it is also possible to delete an address:

ip addr del 192.168.0.77/24 dev eth0

Add alias interface 

ifconfig eth0:1 10.0.0.1/8
ip addr add 10.0.0.1/8 dev eth0 label eth0:1

ARP protocol 

Add an entry in your ARP table.

arp -i eth0 -s 192.168.0.1 00:11:22:33:44:55
ip neigh add 192.168.0.1 lladdr 00:11:22:33:44:55 nud permanent dev eth0

Switch ARP resolution off on one device

ifconfig -arp eth0
ip link set dev eth0 arp off

What is freeSSHD?

freeSSHd, like it’s name says, is a free implementation of an SSH server. It provides strong encryption and authentication over insecure networks like Internet. Users can open remote console or even access their remote files thanks to buit-in SFTP server.
http://www.freesshd.com/?ctt=overview

Skidanje web sajta kroz CLi sa wget

Ova komanda slika web sajt na adresi www.website.hr/upute/.

wget –recursive –no-clobber –page-requisites –html-extension –convert-links –restrict-file-names=windows –domains websajt.hr –no-parent www.websajt.hr/upute/

Opis opcija koje su korište redom:

  • –recursive: skini cijeli websajt
  • –no-clobber: nemoj prepisati ve? skinute datoteke (u slu?aju da je skidanje prekinuto i ponovno pokrenuto)
  • –page-requisites: skini sve komponente koje ?ine stranicu (slike, CSS, js i ostalo)
  • –html-extension: snimi datoteke sa .html nastavkom/ekstenzijom
  • –convert-links: pretvori linkove da su funkcionalni i lokalno korištenje (off-line)
  • –restrict-file-names=windows: promijeni imena datoteka da rade ispravno u Windows-ima
  • –domains websajt.hr: nemoj pratiti linkove koji nisu na domeni
  • –no-parent: nemoj pratiti linkove izvan direktorija upute/