Yeri Tiete
Yeri Tiete
1,481 posts
1 follower
Blog

yeri.be

Profile

yeri.be

Homepage

yeri.be

  • Xen: iptables issue

    vm3:/# iptables -t nat -A PREROUTING -p tcp -m tcp –dport 80 -j DNAT –to-destination 85.12.6.173:8180 WARNING: Could not open ‘kernel/net/netfilter/x_tables.ko’: No such file or directory FATAL: Could not open ‘kernel/net/ipv4/netfilter/ip_tables.ko’: No such file or directory iptables v1.4.2: can’t initialize iptables table `filter’: iptables who? (do you need to insmod?) Perhaps iptables or your kernel…

  • Tomcat: javax.servlet.ServletException issues

    javax.servlet.ServletException org.apache.catalina.security.SecurityUtil.execute (SecurityUtil.java:294) Solution: Create 20servlets.policy: nano -w /etc/tomcat5.5/policy.d/20servlets.policy And add: grant codeBase “file:${catalina.base}/webapps/-” { permission java.security.AllPermission; }; And restart Tomcat /etc/init.d/tomcat5.5 restart

  • Xen: PTY allocation request failed

    $ ssh vm3.rootspirit.com -l root [email protected]’s password: PTY allocation request failed on channel 0 stdin: is not a tty Solution: Kill the DomU (xm console *might* work, but somehow rarely works for me). mkdir /tmp/disk mount /path/to/disk.img /tmp/disk chroot /tmp/disk /bin/bash => in chroot env nano -w /etc/fstab And add (though this is probably not…

  • Xen: Failed to find an unused loop device

    I had to start a new Xen domU this afternoon, xm create vm#.domain But this resulted in following error: Error: Device 5632 (vbd) could not be connected. Failed to find an unused loop device Solution: Create /etc/modprobe.d/local-loop.conf with this content: options loop max_loop=64 Turn off all DomUs, yes, bummer. You’ll need to reload the loop…

  • Strike? What strike?

    Have fun and good luck today. 😉

  • Work

    Internships, fun fun. Source.

  • Gov 2.0 Expo: Unlocking Real-Time Data

    Source.

  • SugarCRM: get rid of the ads

    When logging in, you get a huge ad saying “Go Pro” or something similar, and some news feed about SugarCRM in SugarCRM: Community Edition. Fun fun, but I don’t quite need that. Anyway, “fix”: cd crm-path/modules/Home/Dashlets mv iFrameDashlet/ /root/sCRM-dashlet/ mv SugarNewsDashlet/ /root/sCRM-dashlet/ Remove these two modules, refresh site, and you’d be fine. SugarCRM updates might…

  • Mac OS X lock screen

    I’m now working at a company with somewhat sensitive data and I’m still using my Macbook Pro. However, as there is no handy way to lock a screen (like Windows+L on Wintendo machines)… And when I’m at home, I don’t want to fill in my password each time the screensaver jumps on. So I created this AppleScript after…