shiningpolaris.com

March 27, 2009

How to give a chroot’d FTPd access to outside folders.

Filed under: Linux — sherl0k @ 2:41 am

For basic security reasons, FTP daemons don’t let you access folders that are symlinks (aka shortcuts) to folders that are outside of your jailed root, when you have chroot jailing enabled. This is standard practice for most shared FTP servers. So for instance my FTP session is limited to /home/sherl0k and all its subdirectories. I recently added a second harddrive to my server, and I wanted to access that drive with two major conditions: 1) not mounting the drive in a folder that resides in my /home, and b) giving me access to the contents without requiring a second FTP login. I also wasn’t going to turn off chroot.

So as I said, a symlink is not possible here. Doing a ln -s /second/dreamcast ./dreamcast from inside my home, and then accessing it via FTP, would yield an error: 550 Failed to open file.

So what’s a sysadmin to do?

Oh, the joys of the mount command. Believe it or not, it’s possible to mount a folder and/or filesystem in two places at once. Mind you making changes in one place will yield those same exact changes in the other, so doing editing in both places at once would yield some issues. But for my uses, this would never happen. I suppose this would also apply to normal symlinks.

Lo and behold, the code to rule them all: mount --bind -rw /second/dreamcast/ ./dreamcast

The drive was originally mounted as /second, with the dreamcast directory owned by my user account. I can now "bind" the folder anywhere on the filesystem – in this case inside my home directory – and have full access to it via FTP. No symlink involved.

March 6, 2009

Good stuff right here.

Filed under: Life,Linux,Work — sherl0k @ 7:29 pm

Working with a client to deploy thousands of Ubuntu images across a network, using (what else) free, open-source software.

I’m pretty stoked about this project, not only because it’s giving me a chance to prove myself to a bunch of experienced engineers who’ve been in the field for 15+ years, but also because I get to work with my favorite software of choice.

This job gets better every day.

November 9, 2008

Time flies when you’re having fun.

Filed under: Bemani,Life,Linux,School,Work — sherl0k @ 12:43 am

Liz and I have been together for an entire year now. It’s pretty damn awesome.

She hasn’t gone psychotic on me yet. Either I must be doing something right or she just hasn’t wised up yet.

SuperNOVA 2 is finally in town, about 10 minutes from me. I’m a fan of the songlist so far, and the charts I played were pretty fun. Of course the machine has been in operation for less than 48 hours and the 2P up arrow is already busted, so I couldn’t enter in the unlock codes.

Had a knack for running into coworkers outside of work today, too. Saw Adrian in a clothing store Liz and I stopped into, and then Essad was with a date when Liz and I went to go see Madagascar 2. Amazing movie by the way, go see it if you want a lot of laughs.

Aside from all that I’m working overtime nearly every day, on top of coming on on Saturday mornings. I’m pushing for a new job position and soon enough the extra hours will pay off. As a sacrifice I don’t spend as much time here at the apartment as I’d want to. Things will work themselves out, I’m sure.

School’s been alright. Not a fan of Statistics but I’m surviving.

Adobe Flash has been broken on my distro for about 2 weeks now. It’s pretty sweet, I can’t waste time with YouTube. I had to hack my way around to get the 32-bit app working in my 64-bit distro, but then it magically… just… stopped working. I completely removed it and then re-added it, but no dice. I just get a white space where the content should be. about:plugins shows it’s loaded, and flash-based sites aren’t tossing me an error, nothing just loads.

Looks like my wireless mouse just died too… computers seem to hate me lately. At least I got an Atheros chip from work, to replace my crappy Broadcom.

July 10, 2008

Lovin’ this laptop.

Filed under: Linux,Work — sherl0k @ 5:10 pm

Ubuntu installed with minor hitches, the wireless card wasn’t working at first but after downloading updates the driver was picked up automatically and now works like a charm.

Installed VirtualBox, and put a copy of XP inside it with a copy of Office. Now I can do my schoolwork from my laptop without needing to VNC to my Windows box. My online classes are weird and nothing works right in Firefox. I didn’t want to try and Wine a copy of IE either. Office 2003 wasn’t working last I tried, maybe it’s been fixed since 1.0? Either way, Office and IE are a must for my classes.

720p x264 files play beautifully. The quality is amazing. Downloaded a sample of Matrix Revolutions to make sure. Didn’t feel like wasting time on a 4 gig mkv to find out it would be choppy.

Just need an external HDD enclosure and I have to shuffle some data around, and I’ll be set. Probably getting one this weekend.

In other news, I’m working 10 hour shifts all next week. 6-4:30. Not really looking forward to it.

July 8, 2008

Posting from new laptop.

Filed under: Life,Linux — sherl0k @ 6:47 pm

Pretty awesome specs here.

AMD Turion64x2 TL-58 (1.9ghz)
2GB DDR RAM
NVidia 7000M integrated
120GB HDD
DVD-DL Burner
Web camera
S/PDIF, S-Video, VGA output (boo no DVI, but I’ll survive)
Firewire port
4x USB 2.0

Vista’s installed but I’m removing it for Ubuntu. Just reading up on some forums to see if there are any hurdles to come across.

January 18, 2008

Home, sweet home.

Filed under: Life,Linux,The Internet — sherl0k @ 1:18 am

I’ve slacked on posting here because I’ve been in the process of moving webhosts, and I just haven’t had the time to be around long enough to ensure everything moved over without any major hiccups. Of course, like any server move though, there were hiccups. Moving was a bit of a pain, between database inconsistencies and my old host being a pain in my rear. Everything seems to be okay now, and I’m so happy to actually be on a dedicated server so I have more control over everything. Shining Polaris’ new home is quite cozy, and speedy to boost.

The biggest issue about doing a server move is that it’s more than just my own domain I have to caretake for, it’s about 3 others also that I carry with me. And all their data. One of these days I’ll stop being such a nice guy and stop hosting everyone else’s stuff, but for the time being this is the price I pay. If anything this gives me more experience and I’ve learned a lot in the past few days which I’m sure will prove invaluable for the future.

I’ve been working on a brand spanking new emulation and ROM website, with the amusing name of Pants Emulation. I found a nice site design on OSWD to be the base of my site layout, and coded everything else from there. I was really impressed with myself with how I was able to get everything down, from the searching and results, to integrating phpBB3 login cookies with the rest of the site. And of course, the downloads database is massive. It’s only getting bigger too; as of this writing I’m adding in the entire MAME arcade set. Soon after that, it’ll be the entire Gameboy Advance set. I’m not messing around here, it’s crazy enough I put the whole N64 collection on there already. I have the emulators section almost done so that’s going live soon. After that it’s just sit and watch the download counts rise, and hopefully get some affiliates in the process. I’m still contemplating ads, as much as I hate sounding selfish I would like to make a little cash from this if possible.

Internet things aside, I’ve been spending a lot of my spare time with Liz and suffice to say things are great and we’re really happy together. She’s working some funky hours but we’re doing what we can to spend time together whenever possible and it’s working out pretty well so far. We’re heading back to her parents’ place this weekend so that should be fun. Next friday is her birthday; we’re contemplating getting drunk and watching Rambo in the theatres.

Time for me to get back to work and possibly sleep.

September 30, 2007

I gave in.

Filed under: Linux — sherl0k @ 11:14 pm

Finally decided to put Linux on my spare PC, it’s been running Windows for who knows how long. I was hesitant because it’s the one I use for watching movies, so it’s got a 5.1 speaker setup and TV output. Thankfully, it wasn’t *too* difficult for me to get those working under the beta of Ubuntu 7.10.

Speaking of, 7.10 beta is a joke. Compiz doesn’t even work right. Emerald wouldn’t load, and I couldn’t find ANY preferences for compiz at all to mess with the plugins. I’ll take Beryl any day, thanks. Ditched GNOME and started looking at other GUIs. Blackbox had no menu configuration app. Fluxbox wouldn’t let me right-click. and Openbox was missing its panel. GG Canonical. Don’t tell me to use KDE, either. I won’t go near that. And my main box runs XFCE, I didn’t feel like using it again here. So right now I’m running a ghetto setup of OpenBox and fbpanel, which is a pretty decent panel I just need to configure a bit more. I say it’s ghetto because I don’t have anything on autorun yet so I need to open up and keep the terminal loaded for it. I’ll fix it soon enough.

What I do like though, is that my movies on the TV look so much more crisp and clear than they would’ve on Windows. I don’t know why, but I can just tell the difference. Black actually LOOKS black, not some off-shade that’s a bit brighter.

If bugs don’t get fixed by the time the release comes around, I may just switch to Debian with all its IceWeasel loving fans.

April 20, 2007

HOWTO: Beryl/XGL inside of VNC on Ubuntu

Filed under: Linux — sherl0k @ 8:17 am

Now, I love me some Ubuntu. I also love me some Beryl. Sure the drivers can be a bit flaky, but I live with it. It’s a fantastic little app, makes using my computer more “fun” and also adds some more functionality to my sessions.

Up until now, I could never figure out how to get Beryl working while inside a VNC session. The screen would just freeze. Lurking around and checking out the many options, I found a solution that just plain works.

My method may seem a bit more simplistic than yours, but it can be mashed up into different methods (running it as a service, adding in a password, etc etc). Please note that I’m not using the built-in VNC function (aka vino) built into GNOME, for I am using XFCE – not to mention I’ve found vino to actually be a slower VNC server than this.

All you need to do is install x11vnc and run it from a console.


sherl0k@bakerstreet:~$ sudo apt-get install x11vnc
sherl0k@bakerstreet:~$ x11vnc -noxdamage

I SSH into home from school/work, and I don’t keep port 5900 open so I tunnel the port. This way, using a password is pointless (since 5900 can’t be reached from the outside). So every time I need to VNC into home, I just SSH in, run x11vnc with the -noxdamage option, and I get full Beryl functionality from within my VNC viewer.

If you want to get fancy and keep x11vnc running as a service, there’s a nice guide on the Ubuntu forums that will give you the step-by-step process. Just make sure that -noxdamage argument is added onto the “server_args” line.

April 19, 2007

Life confuses me.

Filed under: Life,Linux,Work — sherl0k @ 7:52 pm

First let’s start the week off with this gem between me and my friend Chris:

<Blown-Upp> i have a snow day today
<Blown-Upp> but it’s f*cking april
<Blown-Upp> not complaining but like
<Blown-Upp> it’s april
<Blown-Upp> I just had SPRING BREAK
<sherl0k|school> don’t you love our city

Yeah, snow day in the middle of April. That was Monday. Today, we had 60 degree weather. Good going, Mother Nature.

And as much as I love Ubuntu Linux, it’s so temperamental when it comes to using the closed-source NVidia driver. It wasn’t working before, but I had to reboot a couple nights ago so I decided to switch back to it for kicks just to see if it would work. And, it does. I can’t explain it, it wasn’t working beforehand and now it’s working again. Ah well, I have a spiffy desktop again. No complaints here.

Today was spent downtown at the Skills USA Competition. I was grading tests the entire time, 23 highschoolers taking 2 tests each, one being 102 questions and the other being 57. They were both based off the 300+ question A+ exam, so it was pretty tough. Only 2 people really scored well at all, but I’m not really sure the amount of material these kids were taught beforehand. I’m guessing they haven’t learned it all. The upside is that I was able to get a contact for a job, down in the Binghamton area working for the school system down there.

My car comes back tomorrow, I’m stoked about that. Definitely getting out this weekend, that’s for sure..

Powered by WordPress