Archive for ‘Linux’ Category
Posted on 12:11, August 28th, 2008 by Many Ayromlou
Came across this issue a few weeks ago and never got around to posting it until today. Yes, you can avoid using the Server Assistant program and go straight to ARD to install your server. For this to work your server and remote desktop machines need to be on the same subnet. You boot the server using the 10.5 CD/DVD and note it’s serial number. Now you need to find out the IP address of the server and connect to it from your remote desktop machine. For this, you can run ARD and scan the subnet and find your new server. Once you’ve found it connect to it and login using the first eight characters of the machines serial number and leave the username blank. This even works from Windows/Linux machines using VNC which is great for those who use Windows/Linux on their desktop.
Posted on 11:46, August 28th, 2008 by Many Ayromlou
I’d covered Fedora’s Live USB creator a while back. But for those of you wanting to install other flavours of linux on a USB stick (or a HD even), the process was lengthy and cumbersome. That was before UNetbootin, the Universal Netboot Installer. You see UNetbootin can be run from Linux or Windows and will enable you to install a fully functional linux distro to a USB stick or even a spare partition.
The current version has built-in support for the following distributions:
So go ahead and try some of those acquired flavors of Linux, or that FreeBSD you always wanted to install, but were too scared to. After all it’s only a USB stick, if it screws up just format and reinstall in 5-10 minutes using UNetbootin again.
UNetbootin can also be used to load various system utilities, including:
So have fun and happy installing…..
Posted on 15:48, June 27th, 2008 by Many Ayromlou
I used their parallel configuration on the Mac — JumpBoxes will run on all of the popular virtualization platforms including VMWare, Parallels, Microsoft Virtual PC/Server, Virtual Iron and Xen — and the static IP was all I had to configure to get the server up and running. If you have DHCP on your subnet/homerouter it’s even easier…..no thinking involved.
Posted on 16:49, June 26th, 2008 by Many Ayromlou
Well kids are you ready for todays lesson in transcoding DV video. So first you need a decent machine. I’m using a P4 2.4Ghz oldie that has Firewire on-board and am chewing up 50% CPU for NTSC encoding. Then you need to get Ubuntu 8.04 installed. Once that’s done use the following command to install vlc (Video Lan Client):
The above command (in case you’re wondering) will literally open device zero on the firewire chain and redirect it’s raw output into the VLC program. VLC is told to accept input from a pipe in rawdv format and to transcode it to mpeg4 Video @ 1Mb/s with mpeg1-layer3 audio @ 192 Kb/s.
Once the above command is running you’ll need to go to your receiving machine (the machine who’s IP you supplied in the command above), run VLC and from the File menu choose “Open Network Stream” and go with the default UDP/RTP on port 1234 (or whatever port you chose in the encoder command line).
Another neat thing you can do with your new found opensource goody bag is capture DV from your camera/settop box and save it in mpeg4 format for archival purposes (or mpeg2 for editing maybe). I’m not gonna get into the details, but assuming you’ve done the above commands, skip the encoder command and issue the following command to get your DV stream saved:
Posted on 12:35, June 17th, 2008 by Many Ayromlou
Running and administrating mysql can sometimes be a hassle especially if you’re running a semi-secure environment. This usually means that your mysql server will not accept connections from outside and only localhost connections are allowed. There is a quick way of getting around this if you’re stuck somewhere and really need to use that graphical admin/browser tool to get to your DB server. All you really need to do is forward port 3306 on your local machine to port 3306 on the DB server through a ssh tunnel. Here is the ssh command you need to issue to start things up:
If you have mysql daemon installed on your local machine (the machine you initiated ssh from) you need to change the local port to something else other than 3306 and the command will look something like this:
Posted on 14:41, June 12th, 2008 by Many Ayromlou
These should probably also be installed under other linux distros (might already be). But for the sake of completeness here they are:
1) denyhosts: great little package that’s already 98% configured after apt-get install process. It runs as a daemon and monitors /var/log/auth.log file for unsuccessful ssh logins and takes measures to ban the originating IP in /etc/hosts.deny. The cool part is that it does not need access to firewall or anything. Config file is /etc/denyhosts.conf and is pretty self explanatory. Ubuntu package is called “denyhosts” and needs python to work.
2) chkrootkit: another little gem that you install via apt-get install process. Ubuntu package is called “chkrootkit”. After install do “man chkrootkit” for more info, but the gist of it is that when run from command line it uses it’s own utils (located in /usr/lib/chkrootkit) to see if the system is infected.
3) rkhunter: this util is really a giant shell script, but it’s really nice and easy to use. Again use Ubuntu package name “rkhunter” to install it. It’s config file goes into /etc/rkhunter.conf and is pretty nicely setup by default. Next run “rkhunter –update” to update the discription/signature files from their website, then run “rkhunter –propupd” to grab a snapshot of the various files installed on your system. This will be used later, every time you run the command to see if anything has been changed by trojans/rootkits. Finally run “rkhunter –check” to actually run all the tests and see if you’re good to go. At the end if there are warnings check /var/log/rkhunter.log for a list of explanations about those warnings (suspicious filenames, hidden file locations, etc.)
Have fun and remember kids Vitamin U(buntu) is good for you.
Posted on 11:33, June 12th, 2008 by Many Ayromlou
Yep, you can. Here is the recipe:
1) You need to install “curl” for your OS. OSX comes with it by default which is nice. Most unices out there also have it installed or have it available for download (Ubuntu, Debian users can use “sudo apt-get install curl” to install).
Have fun commandline twittering :-).
I think every admin must do something stupid atleast once….right? Well my brain fart happened during a System upgrade (another story I’ll be ranting about later). I made backups of all the files I thought were important (/home, /etc, /var/lib/mysql and other userdata we had on the system) and installed Ubuntu 8.04 on the server. Well, of course the second person who walks in to report problems, asks me about his personal crontab……DOOOHHHHH!!!! Yeah I forgot to back that sucker up. Now, the lucky part of all this is that I just deleted the old directories on that partition, I did not format it. So once I realized that, I figured why not just search for it. I mean I knew something about the file, why shouldn’t I be able to just search the raw disk and look for a specific string I know existed in the crontab file. Well guess what you can and it works like a charm….here is how:
This command was issued on a ext3 partition and found the portion of the file I was looking for in about 20 minutes (the partition is about 450GB). The Unix utils are marvelous and just using a single grep command (above) allows me to look for the string “DO NOT DELETE THIS FILE” (which I knew for fact was in my deleted file) and output 10 lines of text above and below that line into a temporary file. Now that’s power kids, don’t try this on your Winblows machine :-).
Yeah, in case you haven’t figured it out yet, I LIKE GOOGLE. I like their spirit and I like the way they do their business. They just made my day (again) by releasing their desktop based google gadgets for linux for free and totally open sourced under Apache License 2.0 to boot. This is fantastic news for all Linux fanatics, as now you can leave those closed source OSes behind, format your harddisk and enjoy a great looking desktop on a OS that actually works (for a change).
Now if only MS and it’s minion (Carl Icahn) would leave Yahoo alone so they can port the Pipes engine to the linux desktop I’d be a happy man :-)
Posted on 12:16, May 30th, 2008 by Many Ayromlou