The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Calling all webserver admins.

    Discussion in 'Linux Compatibility and Software' started by Thaenatos, Mar 20, 2012.

  1. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Well this is a hardware question more so then linux software, but I figured Id come here since I run debian + apache + vsftpd and I didnt want a bunch of windows people commenting on something they are not familiar with.

    Ok thus far I have been using a desktop for my webserver/ftp server/file server. Its been running great for the past few years, but the internals have failed here and there and while its still running I am thinking about switching to something I know will last for the long haul. Enter my x200s. It was used as a temp file server at work for a while, but is now at home and I have contemplated switching it out for these duties. But Im wondering if the hardware is going to be good enough to run my website, ftp site and fiel server for the next couple of years. Plus Id love to lower the power consumption of my home data center.

    The hardware is as follows:
    SU9400
    4GB ram
    320GB 7.2k rpm HDD
    eSata 2TB HDD (ftp and home file server)

    So what do yall think? Think its worth the effort to try this out?
     
  2. Patrick

    Patrick Formerly beat spamers with stiks

    Reputations:
    2,284
    Messages:
    2,383
    Likes Received:
    94
    Trophy Points:
    66
    Should work. Nothing really cpu intensive if done right and you don't get /.ed.

    *Pets his nginx webserver on his tablet + script to convert movies on the fly"
     
  3. Geekz

    Geekz Notebook Deity

    Reputations:
    613
    Messages:
    974
    Likes Received:
    2
    Trophy Points:
    31
    for longevity it would be more than enough, could even be doubled as an HTPC and still serve well as web server/file server :)
     
  4. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Yeah i figured it would be fine. It runs debian very well and even can run a VM or 2 pretty well. I guess I have my weekend workload set out for me.

    Sent from my PG06100 using Tapatalk
     
  5. Geekz

    Geekz Notebook Deity

    Reputations:
    613
    Messages:
    974
    Likes Received:
    2
    Trophy Points:
    31
    my setup was a bit different though, had CentOS running 3 VMs, 1 being a web server/TFS server (windows 2008) and the other as my NAS server, and a 3rd as my HTPC on an i5 machine with 8gb ram.

    but I'm now looking a lower power dual core setup (same as yours) so it'll have less heat and low power consumption.
     
  6. weinter

    weinter /dev/null

    Reputations:
    596
    Messages:
    2,798
    Likes Received:
    1
    Trophy Points:
    56
    Run it on an MIPS Router it is the coolest thing you can ever do.
    I have a WebServer, an FTP Server , SAMBA Server and a DLNA Server all running on my TP-Link OpenWRT Router.
    And it consumes the same amount of power as any other router but does a lot more.
     
  7. Geekz

    Geekz Notebook Deity

    Reputations:
    613
    Messages:
    974
    Likes Received:
    2
    Trophy Points:
    31
    would've loved being able to setup something like this however I still have to run a virtual machine with a windows 2008 OS running a couple of things on it's web server (IIS 7) (mainly SQL server, TFS, and sharepoint), that's why i opted on the CentOS running virtualbox, aside from a few other things in there.
     
  8. weinter

    weinter /dev/null

    Reputations:
    596
    Messages:
    2,798
    Likes Received:
    1
    Trophy Points:
    56
    Then you port forward those services that cannot be ran on the router to the PC.
    Enable etherwake on the Router to remotely boot your servers from WAN.
    Move the FileShare and other less intensive services to the router.
    How cool is that?
     
  9. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Yeah I have no need to run VMs on my servers these days. Ill probably turn my m4400 into a windows box with no immediate task, but Im hoping by monday evening Ill have the time to replace my server with the x200s. The idea of less power (65watt ac adapter) and ALOT less space taken up on my desk is motivating me to do this more and more. Having a standard tower and a danger den desktop takes up alot of space not to mention the 600watt PSUs and LCDs drawing more power. Plus Im thinking about getting some adapters and taking my LCDs to work for an eyefinity setup there.
     
  10. Patrick

    Patrick Formerly beat spamers with stiks

    Reputations:
    2,284
    Messages:
    2,383
    Likes Received:
    94
    Trophy Points:
    66
    I have one of those sff pc's with the dual core atoms as my ubuntu server. Besides if I am using it to build something for some reason, its not slow at all for the task. I have it currently running as a TM target, homedir nfs server, nginx + rails + node webserver, and it will convert my videos on the fly for playing on my tablet if needed (using ffmpeg as its engine)
     
  11. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    LoL then my SU9400 should crush debian squeeze + apache + vsftpd + dyndns via ddclient. Granted I have a few other daemons to run, but I doubt Ill have any issues. To think I was worried about the hardware being enough :p
     
  12. Primes

    Primes Notebook Deity

    Reputations:
    919
    Messages:
    1,736
    Likes Received:
    718
    Trophy Points:
    131
    the power savings alone are worth it!
     
  13. PopLap

    PopLap Notebook Evangelist

    Reputations:
    22
    Messages:
    395
    Likes Received:
    0
    Trophy Points:
    30
    I would just like to say if this web server is public then i would be very uneasy about running it along side a file server. at the very least make sure you have hardened your system from attacks. if its privet ignore my post :D
     
  14. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Normally my file server is separate, but I have toyed with the idea of combining them.
     
  15. Geekz

    Geekz Notebook Deity

    Reputations:
    613
    Messages:
    974
    Likes Received:
    2
    Trophy Points:
    31
    I'll definitely look into it, although currently my router is port forwarding to different VMs for those services that is in 1 box which is up 24/7 (reason why I wanted a lower power c2d box since all of the services/daemons I'm running are fairly low in terms of CPU utilization but rather more memory hogs than anything else).

    if only that windows server doesn't have to be up 24/7 then I could do away with a MIPS router with NAS support.

    Just wanted to ask, if you have a static or dynamic IP and if you use services like No-IP - Dynamic DNS, Static DNS for Your Dynamic IP to to manage the DNS of your web server?
     
  16. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    I use dyndns and ddclient for my dynamic ip.
     
  17. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    So its been a couple of days with it as my server and I must say it was a transparent switch. A few apt-get commands and a rsync and bam my server was up and running.
     
  18. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    rsync ftw

    congrats ;)
     
  19. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Yeah I find it funny that other platforms brag about ease when I type a 1 line command and transfer a server to another server and BAM Im done. Id love to see mac or windows do somthing as intricate and involved with one line at terminal/command prompt and do so much in less then a minute.
     
  20. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    OS X actually has rsync, it's saved me numerous times from Finder's crappy copy functionality.
     
  21. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    But can you transfer a lion server to another with one command and have 100% full functionality? If so then Ill tip my hat.
     
  22. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Dunno. :p

    I see where you were going with that. :D
     
  23. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Yeah

    Code:
    rsync [email protected]:/etc/* /etc
    is pretty powerful. Took but a few seconds on my 10/100 LAN and shut down the old serv and restarted the new and bam server swap! :D
     
  24. virtualjock

    virtualjock Notebook Enthusiast

    Reputations:
    65
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    15
    Actually you can. Rsync works the same on *NIX platforms. OSX is a *NIX platform.
    You can use dd, diskutil and do full clones.

    As for backups/clones/transfers OSX has two major advantages that I don't know other OSes have:

    1) Target Mode. By pressing a key combo at boot, you can turn one mac into a hard drive and plug firewire-to-wire and the second machine can boot from it and clone it. Basically, I boot my macbook as a HDD and plug into a Mac mini, run some commands and the mini will be an exact clone of the macbook

    2) 90% of the time, there is no need to rebuild drivers for different hardware And that is because Apple has a limited hardware set. I've done rsync off xserves to mac minis as live failovers. When the xserve fails, a mac mini cloned boots right up without re-configuring boot/kernel/drivers/xdisplay. It then chugs along as if it was an xserve.

    You can have one set of clone images for multiple macs.
     
  25. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    But can you copy config files from a working server to fresh formatted server and have the new server up and running with ssh, ftp, dynamic DNS, web server and file server all running identically to the previous server all in a matter of 5 minutes or less???

    Sent from my EVO using Tapatalk 2
     
  26. virtualjock

    virtualjock Notebook Enthusiast

    Reputations:
    65
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    15

    You forget that OSX is a certified UNIX operatin system. It isn't just *NIX like, IT is 100% certified UNIX:
    Register of Open Branded Products

    It can do everything you say except SSH. You can't just copy over SSH settings. You need to set up cryptographic keys but
    SAMBA, Apache can you just copy over to a new build. In fact, I have Apache builds running on CENTOS that I copy over to OSX via rsync/SSH.
    This is not unique to OSX, if you are runnign a locked down CentOS with Bastille, you can't just copy the files over like in your example.

    But that isn't the point. Mac system admins would prefer to do CLONE images which is faster than doing a clean build and copying over your settings via SFTP/SSH. It is faster when you can consider than the new server may need a bunch of dependencoes installed.

    So if it takes you 4 hours to install a new linux box with "BESPOKE" modules and 5 minutes to SSH the setting files, isn't restoring a clone in 15 minutes ona mac faster?

    Your builds must be very simple. Mine tends to be more complicated.

    With linux. Example Ubuntu ( I can give a CentOS example), you need to install the OS. If you are not running server or doing a JeOS from an appliance build, you need to apt-get install lamp-server^ or install taskel.
    All you get is the barebones PHP,mySQL LAMP stack in all cases.


    You want a noSQL MongoDB? First you need to add the PPA, authenticate, upgrade your apt list, download. Takes more than 5 minutes. Want it to work with Apache and PHP? Then youneed to add the Pear Library via PECL, then add the .so to your config file. The path of the mongo.so may be different for each version so you can't just copy the path from your source to your new machine.
    Then if you want FFMPEG compiled for an 8-core with a CUDA-centric GPU optimization as a PHP module with certain flags for h.264, you can't just apt-get whatever vanilla version Ubuntu wants to provide. You need to build the source and this can take 1-2 hours. Same for imagemagick, ODBC drivers, memcache Or anything bespoke as Apache modules.

    Trust me, you can't just rsync/SFTP your /etc/apache2 config files in less than 5 minutes. Many of those modules need to be downloaded and compiled.
    The linked .so always have unique names so you still need to redo symlinks.

    On a mac, you already have a working clone and it takes 15 minutes to setup a new machine with all those specific build requirements.

    In your use case scenario, I can only see it being faster if you already use an pre-built Appliance from somebody like turnkeylinux.
    For my linux installs, I have a JeOS build and it is plain-jane as you can get with just LAMP and fulle OS under 600 megs.

    I'm not saying macs are better. I use both platforms and see the strengths in both.