Language Selection

English French German Italian Portuguese Spanish

Write your own Linux server

Filed under
HowTos

One of the great strengths of Linux is its multi-faceted network server capabilities, reaching back to its rich UNIX history and the development of TCP/IP on that platform. If you’re a software developer, it’s dead simple to network-enable your own apps too, making them act consistently with other server processes. Here’s how to do it, in two parts.

The task at hand

Firstly, a real world story: I was called to do some work for a local ISP. They used a database system for administration and billing purposes, and a Linux server for user accounts and subscriber Web publishing.

This ISP was reasonably small. Its two system administrators were making all the Linux accounts by hand. They wanted the help desk staff to take over the job in some automated fashion, but didn’t want to give them actual privileged logins to the Linux server. These guys didn’t know Linux either, so sudo wasn’t really a solution.

What they requested was a Web page that the help desk staff could access on their local Intranet. The form allowed new registrations to be manually entered or uploaded from a file. When the staff member clicked OK the user details entered on the form were to be added to both the database and the Linux server, creating an account in the process.

The intranet was not running on the public Linux server; it was on a private machine – so a CGI script wasn’t an option. This called for a client/server solution.

Part One
Part Two




More in Tux Machines

Chromixium Adds Polish to Chrome

Chromixium is a new Linux distro that goes one big step further than the few existing distros catering to the Chrome OS. It one-ups Google's semi-proprietary Chrome OS locked into the popular Chromebook hardware. Read more

Leftovers: KDE Software

  • Interview with David Revoy
    I bought a tablet to start to paint digitally during this period. I didn’t know many things about software, so my first years of digital painting were made with Photoshop Elements (bundled with the tablet). With digital painting, I could experiment with many themes I could never have sold on canvas. Then I met online publishers interested in my digital art and started to work more and more as a digital painter with an official Photoshop licence, Corel Painter, etcetera. In 2003 I ended my career as a traditional painter when a client decided to buy my whole stock of canvas.
  • There and back again, an algorithm tale
    Implementing Qt data models is anything but fun. For that reason, I don’t blame anyone for writing a beginResetModel / endResetModel combo any time a more complex change has happened.
  • Google Summer of Code 2015 – Week One : The Joy Of The First Paycheck!
    What I have done till now is collect constellation artwork used in Stellarium, and complied a list of 3 stars for each constellation which would be used to position the constellation image in the sky map. I started coding and have written the ConstellationArt class declaration. Earlier I had included a Q_PROPERTY to make constellations fade in and out, but I was told that this would be difficult to achieve since KStars doesn’t use OpenGL. In any case, I think getting the constellations to display correctly in the sky is more important than making them fade. That could always be done at a later point of time.
  • Suggesting new ways: Kamoso 3.0 Technology Preview
    The world changes, and with it, we change too. For this new version of Kamoso we wanted to iterate what we’re presenting.

Carl Sagan's solar-powered spacecraft is in trouble

  • Carl Sagan's solar-powered spacecraft is in trouble
  • Software Glitch Pauses LightSail Test Mission
    But inside the spacecraft's Linux-based flight software, a problem was brewing. Every 15 seconds, LightSail transmits a telemetry beacon packet. The software controlling the main system board writes corresponding information to a file called beacon.csv. If you’re not familiar with CSV files, you can think of them as simplified spreadsheets—in fact, most can be opened with Microsoft Excel.

Ubuntu Touch OTA-4 Update to Let Users Import SIM Contacts

A fresh OTA update is being prepared for Ubuntu Touch, and it should land soon. Developers have released some of the most important improvements that will be implemented in the upcoming release. Read more