Learned this a few days ago…If your having troubles with your rc.local running through everything you’ve put in it, you might want to take out the top part saying:
#!/bin/sh -e
as the -e dictates that the shell exit on any of the commands return a nonzero status. Now, your commands really shouldn’t be doing this (hopefully) but if they are, taking out the “-e” can fix the problem and allow later commands to run without problems.
Ok. So. I have a gentoo vm that I share files with through to my host os, osx (i know, please help me). Since I didn’t really seem to see any sort of fstab variant for osx, i found out that auto mounter is available and quite awesome for ensuring that things stay mounted whether it be at boot, during a network outtage, or whatever.
So let me outline a very simple way to do this with links with more detail below:
So as you probably know if you use a Mac (yes I use a Mac now, its for work, don’t make fun of me), /Users has replaced /home as the default place your home dir sits. However, /home still exists but it is not usable (you’ll get permission denied even as root) and seems to be mounted by some “map auto_thing” in order to keep people from using it (its actually a part of the auto mounter app).
So I was on my main system which only has my private keys for some remote servers….and I’m lazy soo, since I needed to deploy a new server, I just used the following command to make a public key from my already existing private key…
ssh-keygen -f ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
NOTE: You can only go private > public, not the other way around.
Found here: encryption – Create a public SSH key from the private key?
I’ve done this plenty of other times, just never posted it here. Here’s one I just finished real quick for starting my rtorrent (which likes to die every so often, i think its rutorrent causing it) when it dies. This one is unique in that it must be run in a screen session and like everything else, I tack on the “nohup command &” to ensure it starts in the background…but tbh, now that I look at it, you don’t actually need that since that screen will obviously live on when created whether or not that shell is still alive or not.
Made by a recent Michigan Technological University grad, distmap is a python script that uses google maps to display points on a world map showing the origin of users who have accessed your files/distributions. This script is extremely useful for mirrors like how it is currently used over at the Linux Users Group of MTU.
Dependencies: GeoIP, PyMaps, and apachelog.
Download: Github
Notes:
Set your mirrors and any other settings toward the top of the file.
For too long have I src’ed images from other sites on this blog and it needs to stop. I’m tired of worrying if my users will see little image placeholders which makes everything look gross.
So after doing some searching, I’ve found the perfect plug in to remedy this: Add Linked Images To Gallery
For every new post you make (or old one you edit and click “update”), this plug in will search for !
I decided that I needed some new work shirts for my job starting in June (and maybe my senior barrel in a few weeks)! These shirts needed to be funny and comfortable. Using funnyshirts.org, a place with one of the best shirt customizers I’ve seen, I made/found 3 awesome shirts!
Here are the fronts of the 3 I made. Clicking the shirt takes you to the details page for it!
WOAH WOAH WOAH!!! Mario, why would you want to auto login to a system without at least user credentials? Well I’ll tell you trusty reader…its an HTPC with nothing important on it! In the event something happens and a reboot is necessary, I want to be automatically logged in and XBMC to auto load!
Now keep in mind, I have enabled the Administrator account on this setup (Local Users and Groups from the Computer Management menu) for other purposes as well as not set a password for the main user account (playme) which is what needs to auto login.
1) Find the necessary option in your BIOS and enable. It may be under power management or south bridge settings or the like. For me, I just did this on my HTPC (which I will talk more about in later posts) which is a Zotac Zbox id80..which didn’t have the option in the BIOS because it is enabled in the BIOS by default (pretty cool uh?)
2) In Windows 7, I double clicked my adapter in Device Manager and on the resulting window, clicked the Power Management tab.