18 points · by Amanjeev · 16y ago · 37 comments
I wanted to get into systems programming for linux and wanted to know how to approach that in this environment. By systems programming I mean things like writing device drivers, play with linux kernel etc.
Thanks.
I have a macbook (a 13" unibody) with the dropbox account and MAMP to develop on (type the code). I usually mount the folder of the project I'm working on, on the macbook and turn off dropbox to go easy on the syncing.
Lately I tend to go more to my linux roots (I was a linux only user for quite some years before I bought the macbook) so I bought an asus 1005P and put ubuntu on it, again with mod_vhost_alias and dropbox. I must admit it's a great little machine and it has almost 8hrs of battery time, wich is a real plus.
For me developing is something I should be able to do anywhere, at all time. Hence the rather unconventional development environment...
For the times when I have to edit remotely or in a terminal: pico. Shut up.
I've played with Coda and TextMate, but a couple times a year I have to write serious amounts of Win32, and I need to form a relationship with my text editor.
I use the built in SVN support of Coda to setup a repository on the dev box. I also set up a dev domain (dev.domain.com or beta.domain.com). I use the local server on my Mac to run rapid quick testing changes and then use the GUI on coda to see which files need to get pushed to SVN or the dev domain.
Oh and for MySQL, can't live without Sequel Pro.
- In-house racked 64-bit dual processor Dell with Raid-1 SCSI & 16 GB memory running:
- RHEL 5.4 with XEN virtualization
- Apache
- Zend Server Community Edition PHP stack
- MySql
- JRE & JDK
- Subversion
- JIRA bug tracker (nice features and surprisingly affordable)
Workstations:
- Windows XP SP2
- Zend Studio
- Various browsers for checking site display
- ZoneAlarm set fairly restrictive
- Windows Live Messenger for easy free SMS contact when needed
Though, I have to say, I'm trying to move to something else. HyperVM is so botched at the moment, it's just useless to add features to. The guy that ran the project apparently is no longer with us, so the source has been released to the public, and currently nobody is maintaing the project.
I do all my Java/Flex/Ruby/Python development like that, and I think it works great. I've written code generators to give me Java or Flex classes as needed, without having to write much boilerplate.
Just do what feels most comfortable, and make small changes as needed to make it better.
I recently got a laptop though and for reasons I won't get into, have a visceral and probably irrational dislike for Apple and I really didn't want to deal with Linux wireless not working well, or sleep not working well, or whatever else may or may not work well on the laptop. Anyway, for the laptop I got a machine with Windows 7 and I installed Linux on top of it in a virtual machine.
I have to say, I love it! If I want to look at something in IE or use MS Office (I prefer it over OpenOffice, sorry), or whatever else I might want to do in Windows, I don't have to reboot. I can snapshot and tinker, without worrying about breaking it, and Win 7 works really well. When I want to do dev work I boot up the Linux VM and put it up full screen and haven't had any problems yet. Next time I put together my main machine, I'm considering doing the same there, though I have gotten quite used to all the Linux apps.
Having said that, I HAVE worked on Windows 7 and it is by far the best OS Microsoft has produced and if I had to use it, I would.
MS Office is nice, I use it on my Mac.
I have my workspace folder on my dev machine shared, and on the laptop I am using cifs to mount it as a local folder (/workspace on my laptop is actually c:\workspace on my windows machine), so as I make changes to files, they are instantly reflected on the laptop. This makes for extremely convenient testing.
Os-wise: I always try to stick with linux, as there are very good dev tools that are a pain to use elsewhere (for c programming, you can access the documentation by typing man and the name of the function on the terminal, which is very convenient, albeit a bit ugly).
At both places: 2 monitors, Emacs (js2-mode, python-mode, php-mode, charp-mode, yasnippet, a custom theme, and more), a terminal shell (sometimes inside of emacs) and a browser open.
When I did systems programming (just for curiosity), I used just a shell and emacs on CentOS, Slackware and FreeBSD; along with some good books on messing around with that stuff. The OSes were run inside of virtual box just in case I really messed something up :-)
I started running all the server software on my laptop about 5 years ago and haven't looked back since. I don't need a network connection, ssh, or anything to work. I've done quite a bit of development in the air as a result. It's also wicked fast (never any network latency) --- which adds up over time.
I work on my Acer Aspire one (no, really), with an external monitor. I run Ubuntu (virtualbox for testing in ie). I do all of my coding in gedit or vim, and use Git for bigger projects.
I don't use IDE's, just text editors. GEdit on Ubuntu, intype on Windows. I have LAMP setup on Ubuntu, and WAMP for windows.
All my ruby programming goes on Linux for the most part.