A Quick Hack to Convert m4a to mp3 in Linux
#!/bin/bash
for i in *.m4a; do
faad -o - "$i" lame - "${i%.m4a}.mp3"
done
After this ran, I also executed a
rm *m4a. Enjoy!Labels: bash, linux, m4a to mp3
Cutting edge culture for geeks...
#!/bin/bash
for i in *.m4a; do
faad -o - "$i" lame - "${i%.m4a}.mp3"
done
rm *m4a. Enjoy!Labels: bash, linux, m4a to mp3
yum --enable-repo=livna install kmod-nvida Labels: fedora, linux, multimedia, ubuntu
This cost me ~$650 at the time. Currently, you could buy a comparable system for ~$450-$500.
Let's take a deeper look at what kinds of hardware makes the most practical Linux desktop by starting with considering some tasks you will most likely want your desktop to preform. Chances are, you will want to do video editing, word processing and other office tasks, play games, store your data, as well as play and possibly edit your music.
Processor
The first thing you will want to budget for is a processor. I chose the AMD X2 4200+ because I believe it offers me the best price/performance ratio. At under $100, this processor offers plenty of power as a mid-level dual core, not to mention that the stock heatsink and fan is great. AMD processors usually get a bad rap for being power hungry and running hot, however, I believe they still have the best mid-entry dual cores for the price (newegg.com shows the AMD X2 3800+ 2.0GHZ at $65 and the Intel Core 2 Duo E4400 2.0GHZ at $125.99). This leads me to conclude that AMD is in fact the better processor manufacturer for our practical Linux box.
Video
For several years now Linux users have been waiting with bated breath to see which of the two major video card manufacturers (ATi and Nvidia) will have better support for Linux users. Unfortunately, neither company offers an open source driver solution, although at the time of writing, Intel integrated graphics do use open drivers. For the last few years, Nvidia has won out in terms of better support for Linux users, their drivers work and are included in all major distro repositories. While ATi does have drivers that are also included in most repositories for major distros (the fglrx driver), this is always far behind the times and never seems to work on recent hardware reliably. For example, I have had my ATi Radeon Xpress 200M for over two years and just got direct rendering working a few months ago (it is broken again with a new Xorg update).
For these reasons, I chose to purchase Nvidia. For a practical desktop, we don't need the latest, most powerful GPU, so once again I opted for the mid-level 7600GS that would accomplish all the tasks I need it to. The Nvidia driver for the 7600GS is fully supported with Linux, and it is a breeze to set up (as you will see in the next part).
Storage
I chose an 80GB SATA drive for storage, however I had tight price restrictions. I would suggest at least a 250GB drive, or perhaps a 2 disk RAID1.
Conclusions
Hopefully these tips have helped you realize that a practical Linux box can be powerful as well as... practical! Not to mention easily fitting in your budget. In the next part we well look at how to set up Linux and install all the useful applications and games for you to get the most out of your new hardware.
Labels: linux, linux box, ultimate linux box
/home. This idea seemed very appealing to me until I realized that in order to use LVM2 on the large drive I had to install an OS on it. I had decided that the primary purpose of this drive would be to store movies, music, and a backup of my /home, so doing more than formatting it with a filesystem seemed a little excessive.Labels: lvm, mass storage, raid
public static void main(String[] args) {
System.out.prinln("Hello");
}
int main(int argc, char **argv)
{
printf("Hello\n");
return 0;
}
(defun foo ()
(format t "Hello~%"))
(defun foo ()
(format t "Hello~%")
)
Labels: c, code style, java, lisp, programming
yum away), and improved security for Kernel Virtual Machines. For the complete feature list, look here. I will probably wait to use Fedora 8 until it is stable (I might try Test3). The projected release date for Fedora 8 is November 8th, 2007 (the release schedule is here). In my opinion, Fedora is still (and will continue to be) the leader for fully open cutting edge software (only a minor logo trademark issue keeps it off the GNU free Operating Systems list). I can only hope Fedora 8 will improve Fedora's track record.
as well as anything else you might need/want. Try to make sure each HDD has the same amount of used space (this comes into play when installing and using NFS).
You will also want to make sure every node has a static IP address. In Debian, edit the /etc/hosts file and /etc/network/interfaces file with the static IP addresses you choose. I used 192.168.0.100 and up.
Installing NFS
The main point of a cluster is to use all of the nodes effectively to complete a computing task in far less time than it would take for just one of these nodes to complete on their own. The easiest way to share information over a network is with NFS. Note that this is not the best way, merely the easiest, if you are serious about clustering you should probably start using OpenAFS (http://www.openafs.org/) or Lustre (http://www.lustre.org/) after you get the hang of maintain and using your cluster with NFS.
The main issue with NFS is that it is insecure on clusters because you have to use the no_root_squash option in /etc/exports. When I set up NFS I used this (http://nfs.sourceforge.net/nfs-howto/ar01s03.html) and this (http://www.crazysquirrel.com/computing/debian/servers/nfs.jspx). It was actually much easier than I had first anticipated.
Before you continue, make sure you can ping and ssh into every node in the cluster!
I decided to share the /home and /usr/local. My /etc/exports looks like this:
/usr/local 192.168.0.101(rw,no_root_squash) 192.168.0.102(rw,no_root_squash)
/home 192.168.0.101(rw,no_root_squash) 192.168.0.102(rw,no_root_squash)
Believe it or not, you are almost done! The only thing left to do is edit the client nodes' /etc/fstab by placing a line in each for each NFS exported directory. Below is the relevent portion of /etc/fstab for one of my nodes.
192.168.0.100:/home /home nfs rw 0 0
192.168.0.100:/user/local /usr/local nfs rw 0 0
This will ensure that the NFS shared directories are mounted at boot up.
Last but not least you need to start up NFS:
/etc/init.d/portmap start
/etc/init.d/nfs-kernel-server start
/etc/init.d/nfs-common start
Make sure to do a ps -A and look for nfs (or nfsd) and portmap to be running. For added security, you many want to add rules to /etc/hosts.allow and /etc/hosts.deny that only allow mounted NFS directories on your local network (if you are isolated this is not an issue).
What's Next?
That' s it! You now have a fully functional cluster, next you will want to install clustering utilities such as OpenMPI, UPC, and MOSIX. In addition, you will want to generate a common SSH key to allow access to all the nodes without having to enter a password.
Labels: beowulf cluster, debian, nfs, sparc, sun
sudo /etc/init.d/NetworkManager startdmesg right after I attempted to connect: http://nonlogic.org/dump/text/1186352893.html. The main concern to me was the wlan0: No IPV6 routers found line.iwlist, and could set the ESSID to the router's broadcasting SSID with iwconfig. This still did not allow me to connect to the network. Also note that a wired IPV4 connection works fine across the network. ifconfig wlan0 down
iwconfig wlan0 essid dd-wrt
iwconfig wlan0 mode managed
ifconfig wlan0 up
dhclient wlan0ping it, and there was no connection.
ifconfig wlan0 up
iwpriv wlan0 set AuthMode=WPA2PSK
iwpriv wlan0 set EncrypType=TKIP
iwpriv wlan0 set WPAPSK=""
iwconfig wlan0 essid dd-wrt
iwconfig mode managed
iwconfig wlan0 mode managed
dhclient wlan0
iwpriv lines: invalid command settftp 192.168.11.1 -m binary -c put dd-wrt.v23_generic.bin