01
апр
- 2008.07.09 -Tip Jar
Last time I talked about pressing your aging Mac into serviceas a web server. To show that it can be done, and quite easily, Idecided to take the plunge.
WebDAV is a neat technology that lets you manage and share files on a remote server. 5 minutes is all it. Login to your Debian 9 server and run these commands as root user: Copy to clipboard. Mac OS Finder. Linux provides a number of solutions for mounting the FuguHub WebDAV server. See our Linux WebDAV tutorial for more information. WebDAV Backup and Sync Solutions. GoodSync is file backup and file synchronization software that can backup to a WebDAV server. See the following tutorial for how to sync/backup via WebDAV.
I have three Macs that qualify as 'left behind': an eMac, an iBook,and a Power Mac 6500/225.I decided to take the middle ground and selected the iBook.
Why would you want to make a notebook into a server? Well, it'ssmall and takes up little space in the server room. It has a built-inscreen and keyboard for when you can't access it remotely. And it has abuilt-in battery backup in case of power failure! What's not tolove?
Besides, I didn't want to cop out and use a machine that actuallyruns Leopard relatively well, nor did I want to make my demonstrationmore difficult than necessary (the 6500 has plenty of disk space, butonly 72 MB of RAM - a little tight for a server, where 128 MB is arealistic minimum and at least 256 MB is recommended).
I've admitted to my preference for Debian PPC when working withMacs, and that is what I chose for this demonstration as well. Idownloaded the 'netinst' version of the installation CD rather than thewhole DVD. I think it makes better use of online resources to do so -not only is the install image relatively small, weighing in at under250 MB (there have been updates to OS X that were larger!), italso forces you to download the latest and greatest packages from theInternet during the installation, virtually guaranteeing you anup-to-date system at first boot, rather than after you've run SoftwareUpdate umpteen times.
Pop this installer CD into your system and boot (while holding downthe C key), and you'll see your Mac do something you've probably neverseen before, nor wanted - boot into a text interface. From this initialboot loader, simply press Enter to accept the defaults. Unless yoursystem is very old indeed or full of very odd hardware, it should serveyou just fine.
Watch all the text notices about hardware detection and driverstatus scroll by and wait for the system to drop you at a blue and grayinstallation screen.
Put your mouse aside, as you won't be using it for the rest of theinstallation - nor for the life of the server, if you keep runningLinux this way.
The installer uses your keyboard arrow keys and Tab key to navigate,and usually the Enter key to accept whatever settings you havechosen.
The first things you'll be asked about are your location, language,and keyboard layout. After you have answered and some additionalcomponents have been installed, you will be asked which network adapteryou wish to use. Impressively, Debian 4.0 detected my AirPort card andloaded the necessary drivers for me to proceed with my installationwirelessly.
Next you will have to decide on a name for your server. Make itunique on your network - I choose 'iBook', not terribly original - andalso put in your domain name. If you don't have a domain or don't knowhow you'll be using the server, just fill in example.org. Both theserver name and domain can be changed after the fact if you change yourmind.
The most daunting part of installing Linux for most folks ispartitioning the hard drive. Let me stop here and say that if you havedata on this disk and have not made a backup of it, stop now and do so.What you do next could - either deliberately or accidentally - erasethat data.
The easiest option is to let the software do the partitioning foryou by choosing 'Guided - use entire disk.' This does exactly what itsays, taking over the entire hard drive and creating a new Linuxpartition on it, erasing everything that's on it. Note that if you havemore than one drive, you can choose this option and in the next steptell it which drive to do use.
Your other option is to choose 'Manual' and partition the driveyourself. As I had no data on the drive of this iBook, I chose to letthe system do it itself.
You should also probably let the system create one big partition forall of your Linux data. It's the easiest system to deal with, andhonestly there are few drawbacks to doing it this way, especially for asingle-use server like we're setting up.
After your partitions have been approved and set up, you will beasked about your time zone and then to enter a password for the rootaccount. Root is the superuser, and you'll need that access when you'resetting up software, but make the password something strong.You'll also be prompted to create a non-privileged user, one that youcan use every day without fear of causing accidental damage to thesystem.
The system will then install the base packages that are located onthe CD-ROM and are required for every system. You could stop there onceit's done and install nothing else, but your system would be about asuseful as a DOS box onto which you've loaded DOS . . . andnothing else.
Before you can install any additional software, you have to tell itwhere to look on the Internet. By choosing a mirror that is close toyou geographically, you are hopefully picking one that will be fast aswell. If, after the install, you decide you wish to use a differentmirror, you can edit the mirror location in a configuration file, sothis decision is not set in stone.
Once that decision is made, you'll be presented with a list ofprepackaged installation options. The only one you need is the standardsystem. If you don't deselect Desktop Environment, you will wind upinstalling a graphical desktop and desktop applications like OpenOfficeand Firefox that you probably don't want or need on a server. And whileyou could theoretically select Web Server and SQL Server from thislist, you don't know what'll be installed in those packages. In theinterest of keeping your system lean, I would recommend not selectingthem and instead waiting to install them manually after the system isfully installed.
As soon as you say go, the installation will begin in earnest. Itwon't take long (how long is more dependent upon your Internetconnection than the speed of your hardware) before the CD is ejectedand you're told that it's time to reboot.
Let the boot process run automatically, though you will see anoption to boot from the CD if you need to, and an option to enteradditional boot parameters - you won't likely need to use them. You'llknow it's done when you're prompted to log in for the first time.
Log in as root - we need that superuser access to install the restof the software and tweak the configuration just so. To install thesoftware, you only need one command:
Note that this will install the web server, PHP, the MySQL server,and a web-based MySQL administration tool. Also note that when you hitEnter, it tells you that in addition to these packages, it will beinstalling a bunch of necessary supporting packages - calleddependencies - to ensure that everything works. Go ahead and say Yes tothis process and wait while everything installs. It won't takelong.
Once that is completed, there are two final tweaks to ensure thateverything is working as expected. First, you must assign a password tothe root account in the MySQL server. By default the password is blank,and that's a major security hole. Type the following command:
only replace PASSWORD with an actual password. It can be the same asthe root password to log into the system, though for security's sake, Iwouldn't recommend it.
Finally, to enable the interaction of MySQL, PHP and Apache, youneed to change one line in one configuration file. Type thiscommand:
to open up a text editor and the appropriate config file. PressCtrl-W to begin a search within the document and type in 'mysql' andhit enter. This will take you to a line that looks like this:
The semicolon indicates that this line has been 'commented out' anddoes not get loaded at boot time. Use your arrow keys to move up to it,and delete that semicolon. Then type Ctrl-O to save (hit enter to keepthe same file name) and then Ctrl-X to exit the editor.
The last step is to restart the web server with one simplecommand:
And you're in business. Go to a different machine on the samenetwork, open up a browser and type in the IP address of your newserver. Don't know what IP address it was assigned? From the commandprompt on the server, type:
This will bring up information about each of your networkinterfaces, including the current IP address.
When you click Go or hit Enter, you will see a screen that says, inbig letters 'It Works!' - this tells you you've done it, your webserver is serving up pages. To test that PHP and MySQL are working,replace the 'apache2-default' part of the URL that you were redirectedto with 'phpmyadmin' to see a login screen for the administration tool.Enter root as the user and the password you assigned above using themysqladmin command, and you'll be able to manipulate your MySQLdatabase using a PHP program.
And that is that! Easy as pie, honestly, and nothing quite like therat's nest of commands you had to use to configure Linux once upon atime. Now you're ready to start loading up content on the system andserving up web pages, dynamic as well as static, on hardware that usedto be ready to be retired.
Looking to do more? Investigate installing an SSH server so you canremotely connect to your server and manage it from another Mac. Look atthe webmin software package forremote server maintenance via the Web. Or, if your hardware isn't quiteso obsolete, install a desktop environment and see just how muchpeppier things are under Linux. The sky's the limit!
Join us on Facebook, follow us on Twitter or Google+, or subscribe to our RSS news feed
Low End Mac is an independent publication and has not been authorized,sponsored, or otherwise approved by Apple Inc. Opinions expressed arethose of their authors and may not reflect the opinion of CobwebPublishing. Advice is presented in good faith, but what works for onemay not work for all.
Entire Low End Mac website copyright ©1997-2016 by Cobweb Publishing, Inc. unless otherwise noted. Allrights reserved. Low End Mac, LowEndMac, and lowendmac.com aretrademarks of Cobweb Publishing Inc. Apple, the Apple logo, Macintosh,iPad, iPhone, iMac, iPod, MacBook, Mac Pro, and AirPort are registered trademarks of AppleInc. Additional company and product names may be trademarks orregistered trademarks and are hereby acknowledged.
Please report errors to .
LINKS: We allow and encourage links toany public page as long as the linked page does not appear within aframe that prevents bookmarking it.
Email may be published at our discretion unless marked 'not forpublication'; email addresses will not be published without permission,and we will encrypt them in hopes of avoiding spammers. Letters may beedited for length, context, and to match house style.
PRIVACY: We don't collect personalinformation unless you explicitly provide it, and we don't share theinformation we have with others. For more details, see our Terms of Use.
Follow Low End Mac on Twitter
Join Low End Mac on Facebook
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
The Vintage Mac Museum
Deal Brothers
DealMac
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Amazon.com
The iTunes Store
PC Connection Express
Macgo Blu-ray Player
Parallels Desktop for Mac
eBay
All of our advertising is handled by BackBeatMedia. For price quotes and advertising information,please contact at BackBeat Media(646-546-5194). This number is for advertising only.
WebDAV implementation in InterSystems Caché
/
web application:WebDav.REST
Set ^WebDav.Settings('Folder') = path
, where path
is directory - root of WebDAV server. Note that it must be without trailing slash.Test: w ##class(%File).Exists('/path/to/файл.txt')
should return 0 if file does not exist and contains non-latin characters.If presence of non-latin character in a filename causes %File:Exists to always return 1, set System call I/O table to UTF8. To do that, execute in a terminal:
We need to register dav
protocol with firefox. To do that:
about:config
into the Location Bar (address bar) and press Enter.network.protocol-handler.expose.dav
-> Value -> false/usr/bin/loffice
port 57772
.Editors:
OS | Tool | Status | Comments |
---|---|---|---|
Windows 10 | Word 2013 | Online edit works | |
Windows 10 | Word 2016 | Online edit works | |
Windows 10 | Libreoffice 5 | Edit from explorer works | Edit works with http links |
Windows 7 | Word 2003 SP 3 | Read-only | |
Linux (Lubuntu 16.10) | Libreoffice | Online edit works | Automounting? |
Mac | Word 2016 | Read-only, kills file on write | Mac path errors? |
Mac | Word 2011 | Errors |
File Browsers:
My Sim had just finished fully upgrading a rocket so he decided to ask his girlfriend to join him on it's maiden voyage to join the '50 Mile High Club.' Well, when they got back, he walked out and spun out of his spacesuit, but his girlfriend didn't seem to be there! O.O She actually WAS there though, still in her spacesuit, still fully. Invisible SIms are usually due to corrupted outfits. Since you can still navigate the Sim, try changing the cloth on the dresser to see if that makes him visible again. There are other reasons but since Supernatural that's the most comon one. I KNOW I should make more saves, but I had been saving on top of my one save for ages, and then my main sim got completely corrupted - invisible, no portrait, and below ground. When I went into 'plan outfit' I couldn't see him at first, but I saw a portrait in the bottom that was some other generic sim - but then I clicked on 'every day' outfit. My sim is invisible sims 3. Cheat: If my sim starts to turn invisible, I use resetsim and cross my fingers. Change My Sim's Outfit: Sometimes it's not a memory issue. I can make my sim go to a dresser and change into an. It’s the absence of a outfit what makes them invisible. Slower computer take a moment to fully load everything. This can cause temporary invisible Sims and gray textures on your objects. Once the game has fully loaded, the Sims become visible again. Concerning 3): This issue is happening since Supernatural and is concerns mostly career outfits.
OS | Tool | Status | Comments |
---|---|---|---|
Windows 10 | Explorer | Works | #4 |
Windows 7 | Explorer | Works | #4 |
Linux (Lubuntu 16.10) | PCManFM | Works | |
Mac | Finder | Works, Some errors | #5 |
- 2008.07.09 -Tip Jar
Last time I talked about pressing your aging Mac into serviceas a web server. To show that it can be done, and quite easily, Idecided to take the plunge.
WebDAV is a neat technology that lets you manage and share files on a remote server. 5 minutes is all it. Login to your Debian 9 server and run these commands as root user: Copy to clipboard. Mac OS Finder. Linux provides a number of solutions for mounting the FuguHub WebDAV server. See our Linux WebDAV tutorial for more information. WebDAV Backup and Sync Solutions. GoodSync is file backup and file synchronization software that can backup to a WebDAV server. See the following tutorial for how to sync/backup via WebDAV.
I have three Macs that qualify as \'left behind\': an eMac, an iBook,and a Power Mac 6500/225.I decided to take the middle ground and selected the iBook.
Why would you want to make a notebook into a server? Well, it\'ssmall and takes up little space in the server room. It has a built-inscreen and keyboard for when you can\'t access it remotely. And it has abuilt-in battery backup in case of power failure! What\'s not tolove?
Besides, I didn\'t want to cop out and use a machine that actuallyruns Leopard relatively well, nor did I want to make my demonstrationmore difficult than necessary (the 6500 has plenty of disk space, butonly 72 MB of RAM - a little tight for a server, where 128 MB is arealistic minimum and at least 256 MB is recommended).
I\'ve admitted to my preference for Debian PPC when working withMacs, and that is what I chose for this demonstration as well. Idownloaded the \'netinst\' version of the installation CD rather than thewhole DVD. I think it makes better use of online resources to do so -not only is the install image relatively small, weighing in at under250 MB (there have been updates to OS X that were larger!), italso forces you to download the latest and greatest packages from theInternet during the installation, virtually guaranteeing you anup-to-date system at first boot, rather than after you\'ve run SoftwareUpdate umpteen times.
Pop this installer CD into your system and boot (while holding downthe C key), and you\'ll see your Mac do something you\'ve probably neverseen before, nor wanted - boot into a text interface. From this initialboot loader, simply press Enter to accept the defaults. Unless yoursystem is very old indeed or full of very odd hardware, it should serveyou just fine.
Watch all the text notices about hardware detection and driverstatus scroll by and wait for the system to drop you at a blue and grayinstallation screen.
Put your mouse aside, as you won\'t be using it for the rest of theinstallation - nor for the life of the server, if you keep runningLinux this way.
The installer uses your keyboard arrow keys and Tab key to navigate,and usually the Enter key to accept whatever settings you havechosen.
The first things you\'ll be asked about are your location, language,and keyboard layout. After you have answered and some additionalcomponents have been installed, you will be asked which network adapteryou wish to use. Impressively, Debian 4.0 detected my AirPort card andloaded the necessary drivers for me to proceed with my installationwirelessly.
Next you will have to decide on a name for your server. Make itunique on your network - I choose \'iBook\', not terribly original - andalso put in your domain name. If you don\'t have a domain or don\'t knowhow you\'ll be using the server, just fill in example.org. Both theserver name and domain can be changed after the fact if you change yourmind.
The most daunting part of installing Linux for most folks ispartitioning the hard drive. Let me stop here and say that if you havedata on this disk and have not made a backup of it, stop now and do so.What you do next could - either deliberately or accidentally - erasethat data.
The easiest option is to let the software do the partitioning foryou by choosing \'Guided - use entire disk.\' This does exactly what itsays, taking over the entire hard drive and creating a new Linuxpartition on it, erasing everything that\'s on it. Note that if you havemore than one drive, you can choose this option and in the next steptell it which drive to do use.
Your other option is to choose \'Manual\' and partition the driveyourself. As I had no data on the drive of this iBook, I chose to letthe system do it itself.
You should also probably let the system create one big partition forall of your Linux data. It\'s the easiest system to deal with, andhonestly there are few drawbacks to doing it this way, especially for asingle-use server like we\'re setting up.
After your partitions have been approved and set up, you will beasked about your time zone and then to enter a password for the rootaccount. Root is the superuser, and you\'ll need that access when you\'resetting up software, but make the password something strong.You\'ll also be prompted to create a non-privileged user, one that youcan use every day without fear of causing accidental damage to thesystem.
The system will then install the base packages that are located onthe CD-ROM and are required for every system. You could stop there onceit\'s done and install nothing else, but your system would be about asuseful as a DOS box onto which you\'ve loaded DOS . . . andnothing else.
Before you can install any additional software, you have to tell itwhere to look on the Internet. By choosing a mirror that is close toyou geographically, you are hopefully picking one that will be fast aswell. If, after the install, you decide you wish to use a differentmirror, you can edit the mirror location in a configuration file, sothis decision is not set in stone.
Once that decision is made, you\'ll be presented with a list ofprepackaged installation options. The only one you need is the standardsystem. If you don\'t deselect Desktop Environment, you will wind upinstalling a graphical desktop and desktop applications like OpenOfficeand Firefox that you probably don\'t want or need on a server. And whileyou could theoretically select Web Server and SQL Server from thislist, you don\'t know what\'ll be installed in those packages. In theinterest of keeping your system lean, I would recommend not selectingthem and instead waiting to install them manually after the system isfully installed.
As soon as you say go, the installation will begin in earnest. Itwon\'t take long (how long is more dependent upon your Internetconnection than the speed of your hardware) before the CD is ejectedand you\'re told that it\'s time to reboot.
Let the boot process run automatically, though you will see anoption to boot from the CD if you need to, and an option to enteradditional boot parameters - you won\'t likely need to use them. You\'llknow it\'s done when you\'re prompted to log in for the first time.
Log in as root - we need that superuser access to install the restof the software and tweak the configuration just so. To install thesoftware, you only need one command:
Note that this will install the web server, PHP, the MySQL server,and a web-based MySQL administration tool. Also note that when you hitEnter, it tells you that in addition to these packages, it will beinstalling a bunch of necessary supporting packages - calleddependencies - to ensure that everything works. Go ahead and say Yes tothis process and wait while everything installs. It won\'t takelong.
Once that is completed, there are two final tweaks to ensure thateverything is working as expected. First, you must assign a password tothe root account in the MySQL server. By default the password is blank,and that\'s a major security hole. Type the following command:
only replace PASSWORD with an actual password. It can be the same asthe root password to log into the system, though for security\'s sake, Iwouldn\'t recommend it.
Finally, to enable the interaction of MySQL, PHP and Apache, youneed to change one line in one configuration file. Type thiscommand:
to open up a text editor and the appropriate config file. PressCtrl-W to begin a search within the document and type in \'mysql\' andhit enter. This will take you to a line that looks like this:
The semicolon indicates that this line has been \'commented out\' anddoes not get loaded at boot time. Use your arrow keys to move up to it,and delete that semicolon. Then type Ctrl-O to save (hit enter to keepthe same file name) and then Ctrl-X to exit the editor.
The last step is to restart the web server with one simplecommand:
And you\'re in business. Go to a different machine on the samenetwork, open up a browser and type in the IP address of your newserver. Don\'t know what IP address it was assigned? From the commandprompt on the server, type:
This will bring up information about each of your networkinterfaces, including the current IP address.
When you click Go or hit Enter, you will see a screen that says, inbig letters \'It Works!\' - this tells you you\'ve done it, your webserver is serving up pages. To test that PHP and MySQL are working,replace the \'apache2-default\' part of the URL that you were redirectedto with \'phpmyadmin\' to see a login screen for the administration tool.Enter root as the user and the password you assigned above using themysqladmin command, and you\'ll be able to manipulate your MySQLdatabase using a PHP program.
And that is that! Easy as pie, honestly, and nothing quite like therat\'s nest of commands you had to use to configure Linux once upon atime. Now you\'re ready to start loading up content on the system andserving up web pages, dynamic as well as static, on hardware that usedto be ready to be retired.
Looking to do more? Investigate installing an SSH server so you canremotely connect to your server and manage it from another Mac. Look atthe webmin software package forremote server maintenance via the Web. Or, if your hardware isn\'t quiteso obsolete, install a desktop environment and see just how muchpeppier things are under Linux. The sky\'s the limit!
Join us on Facebook, follow us on Twitter or Google+, or subscribe to our RSS news feed
Low End Mac is an independent publication and has not been authorized,sponsored, or otherwise approved by Apple Inc. Opinions expressed arethose of their authors and may not reflect the opinion of CobwebPublishing. Advice is presented in good faith, but what works for onemay not work for all.
Entire Low End Mac website copyright ©1997-2016 by Cobweb Publishing, Inc. unless otherwise noted. Allrights reserved. Low End Mac, LowEndMac, and lowendmac.com aretrademarks of Cobweb Publishing Inc. Apple, the Apple logo, Macintosh,iPad, iPhone, iMac, iPod, MacBook, Mac Pro, and AirPort are registered trademarks of AppleInc. Additional company and product names may be trademarks orregistered trademarks and are hereby acknowledged.
Please report errors to .
LINKS: We allow and encourage links toany public page as long as the linked page does not appear within aframe that prevents bookmarking it.
Email may be published at our discretion unless marked \'not forpublication\'; email addresses will not be published without permission,and we will encrypt them in hopes of avoiding spammers. Letters may beedited for length, context, and to match house style.
PRIVACY: We don\'t collect personalinformation unless you explicitly provide it, and we don\'t share theinformation we have with others. For more details, see our Terms of Use.
Follow Low End Mac on Twitter
Join Low End Mac on Facebook
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
The Vintage Mac Museum
Deal Brothers
DealMac
Mac2Sell
Mac Driver Museum
JAG\'s House
System 6 Heaven
System 7 Today
the pickle\'s Low-End Mac FAQ
Amazon.com
The iTunes Store
PC Connection Express
Macgo Blu-ray Player
Parallels Desktop for Mac
eBay
All of our advertising is handled by BackBeatMedia. For price quotes and advertising information,please contact at BackBeat Media(646-546-5194). This number is for advertising only.
WebDAV implementation in InterSystems Caché
/
web application:WebDav.REST
Set ^WebDav.Settings(\'Folder\') = path
, where path
is directory - root of WebDAV server. Note that it must be without trailing slash.Test: w ##class(%File).Exists(\'/path/to/файл.txt\')
should return 0 if file does not exist and contains non-latin characters.If presence of non-latin character in a filename causes %File:Exists to always return 1, set System call I/O table to UTF8. To do that, execute in a terminal:
We need to register dav
protocol with firefox. To do that:
about:config
into the Location Bar (address bar) and press Enter.network.protocol-handler.expose.dav
-> Value -> false/usr/bin/loffice
port 57772
.Editors:
OS | Tool | Status | Comments |
---|---|---|---|
Windows 10 | Word 2013 | Online edit works | |
Windows 10 | Word 2016 | Online edit works | |
Windows 10 | Libreoffice 5 | Edit from explorer works | Edit works with http links |
Windows 7 | Word 2003 SP 3 | Read-only | |
Linux (Lubuntu 16.10) | Libreoffice | Online edit works | Automounting? |
Mac | Word 2016 | Read-only, kills file on write | Mac path errors? |
Mac | Word 2011 | Errors |
File Browsers:
My Sim had just finished fully upgrading a rocket so he decided to ask his girlfriend to join him on it\'s maiden voyage to join the \'50 Mile High Club.\' Well, when they got back, he walked out and spun out of his spacesuit, but his girlfriend didn\'t seem to be there! O.O She actually WAS there though, still in her spacesuit, still fully. Invisible SIms are usually due to corrupted outfits. Since you can still navigate the Sim, try changing the cloth on the dresser to see if that makes him visible again. There are other reasons but since Supernatural that\'s the most comon one. I KNOW I should make more saves, but I had been saving on top of my one save for ages, and then my main sim got completely corrupted - invisible, no portrait, and below ground. When I went into \'plan outfit\' I couldn\'t see him at first, but I saw a portrait in the bottom that was some other generic sim - but then I clicked on \'every day\' outfit. My sim is invisible sims 3. Cheat: If my sim starts to turn invisible, I use resetsim and cross my fingers. Change My Sim\'s Outfit: Sometimes it\'s not a memory issue. I can make my sim go to a dresser and change into an. It’s the absence of a outfit what makes them invisible. Slower computer take a moment to fully load everything. This can cause temporary invisible Sims and gray textures on your objects. Once the game has fully loaded, the Sims become visible again. Concerning 3): This issue is happening since Supernatural and is concerns mostly career outfits.
OS | Tool | Status | Comments |
---|---|---|---|
Windows 10 | Explorer | Works | #4 |
Windows 7 | Explorer | Works | #4 |
Linux (Lubuntu 16.10) | PCManFM | Works | |
Mac | Finder | Works, Some errors | #5 |
- 2008.07.09 -Tip Jar
Last time I talked about pressing your aging Mac into serviceas a web server. To show that it can be done, and quite easily, Idecided to take the plunge.
WebDAV is a neat technology that lets you manage and share files on a remote server. 5 minutes is all it. Login to your Debian 9 server and run these commands as root user: Copy to clipboard. Mac OS Finder. Linux provides a number of solutions for mounting the FuguHub WebDAV server. See our Linux WebDAV tutorial for more information. WebDAV Backup and Sync Solutions. GoodSync is file backup and file synchronization software that can backup to a WebDAV server. See the following tutorial for how to sync/backup via WebDAV.
I have three Macs that qualify as \'left behind\': an eMac, an iBook,and a Power Mac 6500/225.I decided to take the middle ground and selected the iBook.
Why would you want to make a notebook into a server? Well, it\'ssmall and takes up little space in the server room. It has a built-inscreen and keyboard for when you can\'t access it remotely. And it has abuilt-in battery backup in case of power failure! What\'s not tolove?
Besides, I didn\'t want to cop out and use a machine that actuallyruns Leopard relatively well, nor did I want to make my demonstrationmore difficult than necessary (the 6500 has plenty of disk space, butonly 72 MB of RAM - a little tight for a server, where 128 MB is arealistic minimum and at least 256 MB is recommended).
I\'ve admitted to my preference for Debian PPC when working withMacs, and that is what I chose for this demonstration as well. Idownloaded the \'netinst\' version of the installation CD rather than thewhole DVD. I think it makes better use of online resources to do so -not only is the install image relatively small, weighing in at under250 MB (there have been updates to OS X that were larger!), italso forces you to download the latest and greatest packages from theInternet during the installation, virtually guaranteeing you anup-to-date system at first boot, rather than after you\'ve run SoftwareUpdate umpteen times.
Pop this installer CD into your system and boot (while holding downthe C key), and you\'ll see your Mac do something you\'ve probably neverseen before, nor wanted - boot into a text interface. From this initialboot loader, simply press Enter to accept the defaults. Unless yoursystem is very old indeed or full of very odd hardware, it should serveyou just fine.
Watch all the text notices about hardware detection and driverstatus scroll by and wait for the system to drop you at a blue and grayinstallation screen.
Put your mouse aside, as you won\'t be using it for the rest of theinstallation - nor for the life of the server, if you keep runningLinux this way.
The installer uses your keyboard arrow keys and Tab key to navigate,and usually the Enter key to accept whatever settings you havechosen.
The first things you\'ll be asked about are your location, language,and keyboard layout. After you have answered and some additionalcomponents have been installed, you will be asked which network adapteryou wish to use. Impressively, Debian 4.0 detected my AirPort card andloaded the necessary drivers for me to proceed with my installationwirelessly.
Next you will have to decide on a name for your server. Make itunique on your network - I choose \'iBook\', not terribly original - andalso put in your domain name. If you don\'t have a domain or don\'t knowhow you\'ll be using the server, just fill in example.org. Both theserver name and domain can be changed after the fact if you change yourmind.
The most daunting part of installing Linux for most folks ispartitioning the hard drive. Let me stop here and say that if you havedata on this disk and have not made a backup of it, stop now and do so.What you do next could - either deliberately or accidentally - erasethat data.
The easiest option is to let the software do the partitioning foryou by choosing \'Guided - use entire disk.\' This does exactly what itsays, taking over the entire hard drive and creating a new Linuxpartition on it, erasing everything that\'s on it. Note that if you havemore than one drive, you can choose this option and in the next steptell it which drive to do use.
Your other option is to choose \'Manual\' and partition the driveyourself. As I had no data on the drive of this iBook, I chose to letthe system do it itself.
You should also probably let the system create one big partition forall of your Linux data. It\'s the easiest system to deal with, andhonestly there are few drawbacks to doing it this way, especially for asingle-use server like we\'re setting up.
After your partitions have been approved and set up, you will beasked about your time zone and then to enter a password for the rootaccount. Root is the superuser, and you\'ll need that access when you\'resetting up software, but make the password something strong.You\'ll also be prompted to create a non-privileged user, one that youcan use every day without fear of causing accidental damage to thesystem.
The system will then install the base packages that are located onthe CD-ROM and are required for every system. You could stop there onceit\'s done and install nothing else, but your system would be about asuseful as a DOS box onto which you\'ve loaded DOS . . . andnothing else.
Before you can install any additional software, you have to tell itwhere to look on the Internet. By choosing a mirror that is close toyou geographically, you are hopefully picking one that will be fast aswell. If, after the install, you decide you wish to use a differentmirror, you can edit the mirror location in a configuration file, sothis decision is not set in stone.
Once that decision is made, you\'ll be presented with a list ofprepackaged installation options. The only one you need is the standardsystem. If you don\'t deselect Desktop Environment, you will wind upinstalling a graphical desktop and desktop applications like OpenOfficeand Firefox that you probably don\'t want or need on a server. And whileyou could theoretically select Web Server and SQL Server from thislist, you don\'t know what\'ll be installed in those packages. In theinterest of keeping your system lean, I would recommend not selectingthem and instead waiting to install them manually after the system isfully installed.
As soon as you say go, the installation will begin in earnest. Itwon\'t take long (how long is more dependent upon your Internetconnection than the speed of your hardware) before the CD is ejectedand you\'re told that it\'s time to reboot.
Let the boot process run automatically, though you will see anoption to boot from the CD if you need to, and an option to enteradditional boot parameters - you won\'t likely need to use them. You\'llknow it\'s done when you\'re prompted to log in for the first time.
Log in as root - we need that superuser access to install the restof the software and tweak the configuration just so. To install thesoftware, you only need one command:
Note that this will install the web server, PHP, the MySQL server,and a web-based MySQL administration tool. Also note that when you hitEnter, it tells you that in addition to these packages, it will beinstalling a bunch of necessary supporting packages - calleddependencies - to ensure that everything works. Go ahead and say Yes tothis process and wait while everything installs. It won\'t takelong.
Once that is completed, there are two final tweaks to ensure thateverything is working as expected. First, you must assign a password tothe root account in the MySQL server. By default the password is blank,and that\'s a major security hole. Type the following command:
only replace PASSWORD with an actual password. It can be the same asthe root password to log into the system, though for security\'s sake, Iwouldn\'t recommend it.
Finally, to enable the interaction of MySQL, PHP and Apache, youneed to change one line in one configuration file. Type thiscommand:
to open up a text editor and the appropriate config file. PressCtrl-W to begin a search within the document and type in \'mysql\' andhit enter. This will take you to a line that looks like this:
The semicolon indicates that this line has been \'commented out\' anddoes not get loaded at boot time. Use your arrow keys to move up to it,and delete that semicolon. Then type Ctrl-O to save (hit enter to keepthe same file name) and then Ctrl-X to exit the editor.
The last step is to restart the web server with one simplecommand:
And you\'re in business. Go to a different machine on the samenetwork, open up a browser and type in the IP address of your newserver. Don\'t know what IP address it was assigned? From the commandprompt on the server, type:
This will bring up information about each of your networkinterfaces, including the current IP address.
When you click Go or hit Enter, you will see a screen that says, inbig letters \'It Works!\' - this tells you you\'ve done it, your webserver is serving up pages. To test that PHP and MySQL are working,replace the \'apache2-default\' part of the URL that you were redirectedto with \'phpmyadmin\' to see a login screen for the administration tool.Enter root as the user and the password you assigned above using themysqladmin command, and you\'ll be able to manipulate your MySQLdatabase using a PHP program.
And that is that! Easy as pie, honestly, and nothing quite like therat\'s nest of commands you had to use to configure Linux once upon atime. Now you\'re ready to start loading up content on the system andserving up web pages, dynamic as well as static, on hardware that usedto be ready to be retired.
Looking to do more? Investigate installing an SSH server so you canremotely connect to your server and manage it from another Mac. Look atthe webmin software package forremote server maintenance via the Web. Or, if your hardware isn\'t quiteso obsolete, install a desktop environment and see just how muchpeppier things are under Linux. The sky\'s the limit!
Join us on Facebook, follow us on Twitter or Google+, or subscribe to our RSS news feed
Low End Mac is an independent publication and has not been authorized,sponsored, or otherwise approved by Apple Inc. Opinions expressed arethose of their authors and may not reflect the opinion of CobwebPublishing. Advice is presented in good faith, but what works for onemay not work for all.
Entire Low End Mac website copyright ©1997-2016 by Cobweb Publishing, Inc. unless otherwise noted. Allrights reserved. Low End Mac, LowEndMac, and lowendmac.com aretrademarks of Cobweb Publishing Inc. Apple, the Apple logo, Macintosh,iPad, iPhone, iMac, iPod, MacBook, Mac Pro, and AirPort are registered trademarks of AppleInc. Additional company and product names may be trademarks orregistered trademarks and are hereby acknowledged.
Please report errors to .
LINKS: We allow and encourage links toany public page as long as the linked page does not appear within aframe that prevents bookmarking it.
Email may be published at our discretion unless marked \'not forpublication\'; email addresses will not be published without permission,and we will encrypt them in hopes of avoiding spammers. Letters may beedited for length, context, and to match house style.
PRIVACY: We don\'t collect personalinformation unless you explicitly provide it, and we don\'t share theinformation we have with others. For more details, see our Terms of Use.
Follow Low End Mac on Twitter
Join Low End Mac on Facebook
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
The Vintage Mac Museum
Deal Brothers
DealMac
Mac2Sell
Mac Driver Museum
JAG\'s House
System 6 Heaven
System 7 Today
the pickle\'s Low-End Mac FAQ
Amazon.com
The iTunes Store
PC Connection Express
Macgo Blu-ray Player
Parallels Desktop for Mac
eBay
All of our advertising is handled by BackBeatMedia. For price quotes and advertising information,please contact at BackBeat Media(646-546-5194). This number is for advertising only.
WebDAV implementation in InterSystems Caché
/
web application:WebDav.REST
Set ^WebDav.Settings(\'Folder\') = path
, where path
is directory - root of WebDAV server. Note that it must be without trailing slash.Test: w ##class(%File).Exists(\'/path/to/файл.txt\')
should return 0 if file does not exist and contains non-latin characters.If presence of non-latin character in a filename causes %File:Exists to always return 1, set System call I/O table to UTF8. To do that, execute in a terminal:
We need to register dav
protocol with firefox. To do that:
about:config
into the Location Bar (address bar) and press Enter.network.protocol-handler.expose.dav
-> Value -> false/usr/bin/loffice
port 57772
.Editors:
OS | Tool | Status | Comments |
---|---|---|---|
Windows 10 | Word 2013 | Online edit works | |
Windows 10 | Word 2016 | Online edit works | |
Windows 10 | Libreoffice 5 | Edit from explorer works | Edit works with http links |
Windows 7 | Word 2003 SP 3 | Read-only | |
Linux (Lubuntu 16.10) | Libreoffice | Online edit works | Automounting? |
Mac | Word 2016 | Read-only, kills file on write | Mac path errors? |
Mac | Word 2011 | Errors |
File Browsers:
My Sim had just finished fully upgrading a rocket so he decided to ask his girlfriend to join him on it\'s maiden voyage to join the \'50 Mile High Club.\' Well, when they got back, he walked out and spun out of his spacesuit, but his girlfriend didn\'t seem to be there! O.O She actually WAS there though, still in her spacesuit, still fully. Invisible SIms are usually due to corrupted outfits. Since you can still navigate the Sim, try changing the cloth on the dresser to see if that makes him visible again. There are other reasons but since Supernatural that\'s the most comon one. I KNOW I should make more saves, but I had been saving on top of my one save for ages, and then my main sim got completely corrupted - invisible, no portrait, and below ground. When I went into \'plan outfit\' I couldn\'t see him at first, but I saw a portrait in the bottom that was some other generic sim - but then I clicked on \'every day\' outfit. My sim is invisible sims 3. Cheat: If my sim starts to turn invisible, I use resetsim and cross my fingers. Change My Sim\'s Outfit: Sometimes it\'s not a memory issue. I can make my sim go to a dresser and change into an. It’s the absence of a outfit what makes them invisible. Slower computer take a moment to fully load everything. This can cause temporary invisible Sims and gray textures on your objects. Once the game has fully loaded, the Sims become visible again. Concerning 3): This issue is happening since Supernatural and is concerns mostly career outfits.
OS | Tool | Status | Comments |
---|---|---|---|
Windows 10 | Explorer | Works | #4 |
Windows 7 | Explorer | Works | #4 |
Linux (Lubuntu 16.10) | PCManFM | Works | |
Mac | Finder | Works, Some errors | #5 |