Jump to content

Need help in Automating & Building a Home Network


m-JeRi

Recommended Posts

BTW, you didn't mention the total cost of your system, I'm thinking whether I should also go for such a system.. What did it come to? (excluding the software cost as I'll be using linux)

Also, do you know how much power it draws (this is a major concern for me even more than cost)

Link to comment
Share on other sites

the atom + 500 Gb + 2Gb ram i got for 5.5k.....

 

Getting a very mini small case soon...its gonna cost me 2.5k... but its very small and nice...atleast in the pics.. :chair:...

 

have spare kb and mouses...will need a small LCD also..but thats only if i can find one dirt cheap... I may not need it at all...

Link to comment
Share on other sites

Yea power is also a MAIN concern for me.... the server can run headless so i think just the cube will be at work...

 

will assemble the sys and start some testing by this month mid hopefully...and will post here...

Link to comment
Share on other sites

the atom + 500 Gb + 2Gb ram i got for 5.5k.....

 

Getting a very mini small case soon...its gonna cost me 2.5k... but its very small and nice...atleast in the pics.. :chair:...

 

have spare kb and mouses...will need a small LCD also..but thats only if i can find one dirt cheap... I may not need it at all...

btw this price looks just tooo good.. you bought it from a local dealer or online?

I'm now thinking if I can add PCI wlan card to it I can do away with my router, external disk combo...

Link to comment
Share on other sites

hehehe...

 

all are used parts mate... dont want to spend a huge amnt on it... and the case happening this month looks bleak, MONETARY ISSUES :chair:...

 

yes..it does have a PCI slot..u can stick a WLAN card there...

 

If you have money to spend, get a Zotac ION for 13k...you have pretty much everything there...

 

for me, i like to have one on my main PC.. my router is anyway going to be near my server.

Link to comment
Share on other sites

  • 2 weeks later...

Ok...

 

My WHS is up and running... Now i need to automate the modem reboot and downloading process. I am having some issues with modem rebooting.

 

1. I tried using Imrahns braodband utility with NIC disable option in Win XP OS.

It seems there are times when there is unaccounted download. i don't know whats happening there. I have disabled all downloads but still it happened. Like between 12 in night to 1 in morning. It happened few times.

 

And on checking its log i see there are trouble for it to reboot the modem sometimes too. :cheers:

 

2. Next i tried using a Macro tool. I used Macro expert.

 

I recorded the modem reboot process. ie open mozilla, type 192.168.1.1, enter user name and password, and save & reboot.

 

I tried to schedule it and run using windows scheduler and the Macro expert's scheduler in Windows home server OS. but its not running. on checking it shows some Trigger not found error.

 

I know its a lot of qns. but no other way.

 

Any ideas???

Link to comment
Share on other sites

^^ I haven't used any of the above two things you mentioned, neither do I know how they work. but as I have mentioned multiple times, take a look at "expect". With this, you can telnet into the router and reboot it automatically with a script.

If you know perl, you can also look at doing the telnet script with that, or even through the web interface by using LWP::UA or WWW:Mechanize modules. Or you could even use HTTP::Recorder module to record your actions on the basis of HTTP messages instead of relying on mouse/keyboard based options (which is what I think Macro expert would do) as that is highly error prone. With the mouse/kbd macros, you don't have any feedback (like has the browser window opened or not, is it full size or not, has the modem page opened or not, is the button in the correct place or not, etc) but with the things that I am mentioning you will know everything and the script can take appropriate actions, retry etc.

 

IMO, if you use any of the methods that I am proposing, you will have a pretty solid script that always works and if it ever fails, you will be able to know what exactly went wrong. Plus this would be quite extensible and you can do pretty much anything else that you want to do later on..

 

About the unaccounted download, how much it was? Was it very significant? Is it possible that the PC's NIC didn't actually get disabled? Or did the download happen from your other machine?

Link to comment
Share on other sites

Nope... i was only running one machine...once there was a significant download of 300 MB.

Another time there was a download from 1.29 am to 2.16 am.

 

And i think i found why the Macro didnt worked. as u said Mobo/keyboard macros. For my file server it has none.

I recorded the macro using remote desktop from my main PC and tried to run it in the server. its headless so no way it will work. dumb me.

 

Ans about expect. I have no idea how to use it. or another thing u mentioned.

Link to comment
Share on other sites

^^ ok.. if you don't know perl, then it would be hard to use that option.. But expect is really really simple.

Basically expect is like interactive batch mode. Take example of telnet. What you normally would do is telnet to your router's IP. then when it gives you the login prompt, you type in ur username, then it prompts u for password, then you enter password, then it gives you the command prompt, where you enter command. Expect simulates this and allows you to do all this through a script. So, all you have to specify in a sequence, what to expect (receive/printed by server) and then what to send (type) in reply to it. I did an expect script around 5 years back when I first took airtel connection with that crappy "Yozan Web Distributor II" modem (Had windows back then) which didn't have any web config to setup port forwarding but allowed the same through telnet commands but didn't save them so I had to config it again on every reboot. It was a simple 10-12 line script that did it. All I had to do was (in pseudo code):

spawn telnet (Run telnet)

Expect "username:"

send <username>

Expect "Password:"

send <pwd>

expect ">" (This is the command prompt)

send "iptables ------" (The command to set up port forwarding..

 

And done..

The only thing is that expect is a bit slow on windows (and because it uses Tcl) so it took around a minute to complete the above steps.

Link to comment
Share on other sites

Hi All..some updates...

 

Modem reboot for bridge mode is a succeess..I used telnet scripting using TST10.exe and a batch file. I started with the expect, but couldnt find the source files. it was taking me to my mail client. so tried using telnet itself.

 

Now my issue is running uTorrent.

 

1. I tried using "C:\Pgm Files\Utorrent\Utorrent.exe" in a batch file. If i double click it it will run. but using windows scheduler, its not. On both WHS and WinXP.

 

2. I trie to use utorrent on system startup in WHS. i queued some torrents and minimised it. then restarted the system. The utorrent is running but the torrents i queued is not there. its just empty. :). I use my WHS pc using remote dekstop from my main PC.

 

Any thghts??

Link to comment
Share on other sites

@All..

 

Ok.. i have a new problem along with the previous issue..

 

I have atleast changed the utorrent port 5 times in the last 5 days. everyday i have to assign a new one. otherwise the green icon in the utorrent window which shows "Listening to all Incoming connections" wont show. it shows a orange exclamatory icon showing the message change the listen port.

 

then i have to remove it and forward a new port... whats the problem here??

 

god i am such a noobie... :wub:

Link to comment
Share on other sites

  • 2 weeks later...

Hi All....

 

I was a idiot...i feel ashamed to be a software engineer...Lolz...

I found out the issue at long last...

 

Well...here goes..

 

In my WHS the utorrent is installed as a service..so each time when i start the Windows the utorrent is running as a background service..

Each time when i give a new setting, here the new port, the new instance of the utorrent will have the new port and it will work with the green

icon. and on the next restart the service will also be using the same settings i gave last time. but if i opened a new utorrent window the icon will be red.

 

red denotes some process is already using the same port.

 

here the service is already using the port. thats why. :wallbash:. when i set the webui setting i should have realised the webui is the only way i need to use the interface.

so now everything works fine. :chair:..

 

been testing for the last 3 days. its working...now my WHS setup is all done.

 

I set up my old canon ip1000 printer to it. so the WHS acts as my print server too. my dad's been complaing about having to

go to local cafe coz i said no printer driver not Windows 7. ;). I only needed WinXP driver in my WHS. and shared it.

Now its available to all the Systems in the home network. dad can print from downstairs from his laptop. he was impressed...

 

he thght it was something big. it only took me abt 10 mts. :D....

 

So thnx all for the great inputs and help...and this brings end to both my network threads... :)

 

I am thinking wether i should put all my experince into a thread.sort like preview/tut of my small network tango... :D

 

Jerin

Link to comment
Share on other sites

My sincere thanks to

 

Udayrulz for giving me the basic WHS idea and all...

SumitB for all the numerous PM's he sent me...

Free Radical for the key script ideas and all...

Shantz for his timely suggestions regarding router/modem/network queries

 

and all the numerous others who pitched in with their ideas, which kept me from prying apart all the wires.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...