There’s no doubt I was stuck on this one due to my inability to read the docs carefully.
Whilst deploying an app via git using capistrano, I was continuously stuck after upgrading my gems. The reason? I wasn’t using bundle install…
Do this to upgrade your local and remote applications:
git add .
git commit -a -m “Some updates….”
git push origin master
cap <<stage>> deploy
Create new file in /etc/iptables.test
:INPUT DROP [1:48]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [129:20352]
# Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn’t
-A INPUT -i lo -j ACCEPT
#Accept SSH connections
#-A INPUT -p tcp -m state –state NEW –dport 22 -j ACCEPT
-A INPUT -s 22.214.171.124/32 -p tcp -m tcp –dport 22 -j ACCEPT
-A INPUT -s 126.96.36.199 -p tcp -m tcp –dport 22 -j ACCEPT
#Accept Established connections
-A INPUT -m state –state RELATED,ESTABLISH -j ACCEPT
#Accept HTTP connections
-A INPUT -p tcp -m tcp –dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp –dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp –dport 8080 -j ACCEPT
#Accept MySQL requests
-A INPUT -s 188.8.131.52/32 -p tcp -m tcp –dport 3306 -j ACCEPT
-A INPUT -s 184.108.40.206/32 -p tcp -m tcp –dport 3306 -j ACCEPT
#Accept all radius requests
-A INPUT -p udp -m udp –dport 1812 -j ACCEPT
-A INPUT -p udp -m udp –dport 1813 -j ACCEPT
#Accept all PING requests on ICMP
-A INPUT -p icmp -j ACCEPT
# Reject all other inbound – default deny unless explicitly allowed policy
-A INPUT -j REJECT
-A FORWARD -j REJECT
Test your commands work:
iptables-restore < /etc/iptables.test
Make sure you can login from another terminal session.
Save out rules:
iptables-save > /etc/iptables.rules
Add to network interface start up script:
iface lo inet loopback
pre-up iptables-restore < /etc/iptables.rules
Reboot your server….
A whole day’s been wasted figuring this out…
Save time and energy – install RVM as single user, then install rails 3.x.
2 hours spent upgrading my Macbook, 1 hours on my iPhone and, then Apple show me this…
Another note to self.
s3cmd setacl –acl-public –recursive s3://bucket-name/folder-name
Or use in root with acl-private to lock down entire bucket.
Forget the browser…
For the last (I don’t know how many) weeks, I’ve been writing the code for a new internal ordering system for PolkaSpots Supafly Wi-Fi. Having pushed the first release to our staging server, I feel like I’ve been released back to the world.
And, it’s not over yet but I’m through the fog and now we can all test it.
For those of you who develop software, you’ll know the feeling. The ones and zeros start taking over; you dream in code; you start building 3d models and views and controllers in your mind. It becomes an obsession. Nothing else matters.
It would seem the last time I blogged, one month ago, I decided it was a good idea to put a picture of a bike up. Thousands of lines of code certainly sent me a bit nuts. It’s a good bike though isn’t it? And no, it’s not mine!
More of a reference for myself. Could happily create an Ubuntu server 10.04 tls USB drive from an Ubuntu 10.10 desktop client but could not get the bugger to boot.
Was stuck with an Unknown Keywork Problem – something to do with:
vesamenu.c32: Not a COM32R image
Thanks to this article, I was able to fix my Ubuntu installation woes by running:
cp -r /usr/lib/syslinux/vesamenu.c32 /media/disk/syslinux/