I needed to download a bunch of torrents at one time but I didn’t want them to go to the same default dir as all my other downloads. So I used this line in my .rtorrent.rc file to set my watch dir and then the download dir for those torrents.
NOTE: ~/files is my default dir. In this case I made a dir called ubuntu and want anything I put into the ~/watch dir to be downloaded to ~files/ubuntu
Like a lot of people, I have one server. Its quite a powerful box and I do pretty much everything on it.
I recently needed to run another site with its own domain name on the same box which has only one ip address (obviously).
Using virtual hosts with apache is really easy and allows you to host two completely different directories anywhere on your server as long as the www-data user is able to read the files, you’re good to go.
So I stumbled upon some guy in some forums on some website who posted a thread requesting a web site that sold bitcoins…
I know I was wondering the same thing..
After some research, it seems as though bitcoins are the first anonymous, virtual online currency that has no central control. Which means transactions are directly peer to peer. You can even mine for your own using a powerful machine and either going solo or joining a pool of people donating system resources where the resulting coins are spread amongst everyone who participated.
I recently discovered the power of dropbox. (2GB for free!) and decided I would deploy it to backup all my school documents and files from my H drive (aka my home directory)
that resides on my school’s servers. I have access to my department server via a bash shell and decided I would install dropbox (it runs out of a directory) and
sync certain directories residing in my home drive with it.
Here is a table which clearly shows the differences between Blu-Ray and DVD mediums.
It is important to remember that these are standards. You can really put any type of video you want on a blu-ray disk but your blu-ray player most likely won’t be able to play it.
I have been using VMWare workstation (7.1.4 x64) a lot in the previous weeks and have had a few minor problems crop up lately especially with my windows xp vm.
About 5 minutes ago, the vm crashed for some unknown reason (which I still am not sure why). After it did this, my control, shift, and num lock keys didn’t work properly on my host machine (Fedora 14 x64). Shift and control didn’t work at all
So you have multiple options your network card supports such as auto-negotiation, different speeds, and half or full duplexing.
To set these options in linux, you can use the ethtool utility.
Here is an example output about one of my interfaces:
# ethtool eth1 Settings for eth1: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on MDI-X: off Supports Wake-on: pumbag Wake-on: g Current message level: 0x00000001 (1) Link detected: yes
So I needed to setup a crossover connection and set a static ip. Here are the settings i decided upon.
ip: 192.168.0.1
network: 192.168.0.0
netmask: 255.255.255.0
broadcast: 192.168.0.255
So to set this with ifconfig you don’t really need the broadcast entry but the following will work sufficiently:
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
This will setup the interface and bring it up. Then just set the other interface on the other end of the crossover cable to another available ip in the range (.
This should fix it! Written by the greatest coder I know…Fuzzy!:
perl -e ‘opendir(DIR, “.”);@files=readdir(DIR);foreach $file(@files){next if($file eq “.” or $file eq “..”); $newfile=$file; $newfile=~s/\s+(.+)/$1/;rename($file, $newfile);}’
So basically I needed to run a few commands at system start for a few of my debian vm’s who felt it would be a go idea to not start the system with my networking enabled @ run level 2…
I want to just be able to start the vm, wait for it to boot, and login via ssh remotely.
So…
1. Make your bash script. Here’s mine:
#!/bin/bash ifconfig eth0 up dhclient -nw eth0