X11 forwarding problems

If you setup X11 forwarding in putty. Then after SSH to server and user change via su then error could ocurr.

Xlib: connection to “localhost:10.0″ refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted xterm Xt error: Can’t open display: localhost:10.0

To solve, back to oryginal user:

issue:

>xauth list
localhost:10  MIT-MAGIC-COOKIE-1  b31fa494b952390070d409890a3
14cfb

then on new user:

> xauth add server/unix:10  MIT-MAGIC-COOKIE-1  b31fa494b952390070d409890a314cfb

CURL and no Cache test throgh proxy

 

i=0; while true; do let i=$i+1; curl  -H “Pragma: no-cache”  -H “Cache-Control: no-cache” -I -x proxy_host:proxy_port http://site_to_be_tested/index.html; echo  $i; sleep 1; done

resseting weblogic password

This is update for password reset procedure for weblogic 7 described in

http://dev2dev.bea.com/pub/a/2004/07/WLSAdmin_bpr.html

* At the command line, change directory to the domain and run the setEnv script to set the PATH and CLASSPATH.
* Backup the existing DefaultAuthenticatorInit.ldift file in a different directory.
* java -cp D:\bea\weblogic700\server\lib\weblogic.jar weblogic.security.utils.AdminAccount adminuser weblogic . (Be careful: there is a dot at the end of the command).
* rm myserver/ldap/DefaultAuthenticatormyrealmInit.initialized
* rm boot.properties (if any)
* Reboot the admin server with “adminuser” as administrator userid
file and replace it with the backed up file.
* After the server has successfully booted, delete the new DefaultAuthenticatorInit.ldift * login into weblogic console with adminuser username
* change password for user system
* delete user adminuser
* refresh boot.properties with new password for user system
* refresh rest of files with authentication data
java weblogic.Admin -username system -password **** -userconfigfile WebLogicConfig.properties -userkeyfile WebLogicKey.properties STOREUSERCONFIG

changing password for system user for weblogic 7

- change password from console
- put new username and password in boot.properties in cleartext
- remowe WeblogicConfig.properties and WeblogicKey.properties used with -userconfigfile WebLogicConfig.properties -userkeyfile WebLogicKey.properties parametres to weblogic.Admin class
- generate new properties files via STOREUSERCONFIG command
java weblogic.Admin -username system -password ****** -userconfigfile WebLogicConfig.properties -userkeyfile WebLogicKey.properties STOREUSERCONFIG

zdegenerowany przykład na działanie wywołania funkcji z argumentami w bashu

wwwadm@host<!>/tmp/a.sh
000
[][]
[111][]
[222][333]
wwwadm@host<!>cat /tmp/a.sh
#!/bin/bash
myfunc() {
echo [$1][$2];
}
echo 000
myfunc
myfunc 111
myfunc 222 333

weblogic i ssl wlaczenie debugu

Jeżeli potrzebujesz włączyć debug SSL przy starcie WLS’a dodaj do parametrów startowych JVM

-Dssl.debug=true -Dweblogic.StdoutDebugEnabled=true

SSL i weblogic 7.0 problem z importem podpisanego certyfikatu

Po podpisaniu i zaimportowaniu klucza do keystore, przy starcie pojawia sie taki komunikat:

####<Jul 10, 2007 5:08:55 PM BST> <Alert> <WebLogicServer> <mybox.net> <myserver> <main> <kernel identity> <>
<000297> <Inconsistent security configuration, java.security.KeyManagementException: 1 >= 1>

Te jedynki sa kluczowe – nigdzie nie ma opisu tego błędu.

Ścieżka do certyfikatu w config.xml

jest pod tym atrybutem ServerCertificateFileName=

i w realmie (Security->Realm->myrealm->Providers->Keystore->DefaultKeystore) podana jest scieżka do keystore.

UWAGA.
Plik podany do atrybutu ServerCertificateFileName= musi byc wygenerowany po zaimportowaniu klucza. Nie mozna uzyc klucza swiezo po podpisaniu.
Pem’y wygladaja roznie.

W kazdym razie ta procedura pomogla

znajdz wszystkie pliki mangnus.conf ktore nie zawieraja wzorca Favicon off

find / -type f -name magnus.conf  -exec grep -l -v “Favicon off” {} \

wygenerowanie CSR dla iplaneta w postaci PEM

certutil -R -s “cn=myhost.test.sun.com,ou=TEST,o=Sun Microsystems Inc.,l=Menlo Park,st=CA,c=US” -o DER.csr -d /var/mps/serverroot/alias -P slapd-myhost-” -a

Kluczowa jest opcja ‘-a’

Zestaw przydatnych komend do SSL patrz w Baban’s WebLog:

http://blogs.sun.com/baban/date/20050609

skype

Kubuntu 7.04 + skype 1.3.0.53 + wifi – wybieranie tonowe – porażka. Wdzwonienie się do CitiBanku i wklepanie numer kartu – bezskuteczne. Zatrzymuje sie na różnych etapach.
Windows XP + skype 3.2.0.53 (BETA) + kabel wpięty do routera – bez problemów.

Trzeba jasno powiedzieć jeśli chodzi o oprogramowanie dla mas – linux jeszcze jest w tyle.
Demokratyczne masy wybrały łatwy Windows.
Powoli powoli się to zmienia – jeszcze jakiś czas temu można było pomarzyć o skype na linuxie.

Akademickie pytanie:

Czy masy mogą być niedemokratyczne?

Rozbierając na części logiczn. Demokratyczne = ‘rządzone przez lud’ masy.

Czyli masy rządzą się same sobą. Rządzą sie przez wybranych przez siebie przedstawicieli – reszta stada idzie z nimi. Na dziś starczy tego bełkotu. Przymiotnik ‘demokratyczne’  do wykreślenia.