Linux Essentials for Delphi Developers

 

There is currently no way using Delphi to target Linux. Long ago there was a thing called Kylix that worked on one version of RedHat Linux, barely, back in the 1990s. But in the Community road-map, targeting a fall release, there might be a way to target Linux Servers.  Here's hoping.  If that happens, or even if that's delayed a bit, now is a fantastic time to hone your Linux skills.    I'm not going to tutor you.  You can google probably almost as well as I can.  But I am going to outline a plan of attack for a competent Windows developer to learn the essentials of Unix systems, with a focus on Linux.  I recommend this plan be carried out on a virtual machine inside your main windows PC. You can NOT learn everything there is to know about Linux just by using the Windows Subsystem for Linux.  There's no linux kernel, no linux networking stack, no desktop environment in the WSL.  Learn on an Ubuntu VM.

 

My belief is that Linux matters on the Server because:

  • It is currently the right way to deploy for the web in 2016.
  • It is the right technology for cluster scale technologies.
  • It is currently the right way to build systems that are easily
    administered remotely, whether in the cloud, or at remote sites, or in
    large numbers.
  • It is a lighter weight technology and currently has mature support
    for containers, big data technologies, and about 1000 other things in
    that vein.
  • It has a better way of upgrading, without requiring as many reboots.
  • It has a mature set of binary dependency management (package installer tools), container and orchestration tools.
 
There are several aspects to learning to be a competent Linux server developer
 
  • You can install, upgrade, troubleshoot and maintain both client and
    server Linux systems.  You know the 50 most common command line tools
    and their everyday uses. You can log in, change your password, obtain
    root access, check what groups a userid belongs to, install and remove,
    and upgrade packages.
  • You have installed and learned several different distributions.  The entire concept of distributions
    deserves some study by a person who wants to know what Linux is. You
    know not only how to use apt-get (on debian and ubuntu) but several
    alternatives such as those on RedHat/Centos and others.  You know
    roughly what changes from one major family of related distributions to
    another.  I recommend Ubuntu to every beginner, and Debian to every
    intermediate and advanced user.  In some corporate environments, you may
    find that RedHat Enterprise Linux (RHEL) or its open-source variants
    CentOS and or Fedora are preferred.   I recommend you learn Ubuntu
    first, and learn a RedHat variant later.
  • You know how the Linux boot process works, from BIOS or EFI to the
    boot loader, to the kernel startup, to the init sequence, and service
    startups, and you know what runlevels are, and what systemd is, and what
    /etc/init.d.  You appreciate that unlike Windows, when a system refuses
    to boot, it's not that hard to repair it.
  • You are comfortable in the Unix style shells, such as bash, csh, and
    tcsh. You can write shell scripts and read and repair shell scripts.
  • You are familiar with the basics of C development in Linux,
    including the use of GCC and CLANG, build tools, and associated parts.
    You  can download something.tar.gz and unpack it, read the instructions
    and build it from source.  When it breaks you can read the output and
    figure out what's wrong, and if googling the error doesn't help, you can
    dig in and fix it yourself.    You know what static and shared
    libraries are, and you can find and install dependencies (libraries,
    tools) that some package needs to build.
  • You are comfortable with rebuilding the Linux kernel from source
    code, you know what kernel modules are and what lsmod and modprobe do,
    and you know how to reconfigure a kernel, turning options on and off.
     You know how to upgrade or add an additional kernel to your system's
    boot loader.  This is actually really fun.  You may find that having a
    system you can completely and utterly modify to suit your own needs and
    requirements becomes a bit of a giddy experience.  I know that I feel
    like I'm actually in control of my computer when I run on Linux.  On
    Windows 10, I feel like my machine belongs to Microsoft, and they just
    let me use it sometimes, when it's not busy doing something for the boys
    in Redmond.  That being said, I really like Windows 10, and I still
    primarily enjoy developing for Windows systems.  But knowing both Linux
    and Windows is a very useful thing to me.
  • You have a decent understanding of system administration core
    concepts, including the wide set of tools that will be on almost every
    unix system you use. You can find files using several techniques. You
    can list processes. You can monitor systems. You know how to
    troubleshoot networking issues from the command line.
  • You will know you've gotten in deep, when you have taken a side on
    the vi versus emacs debate, and become extremely proficient in the use
    of one or the other. (Hint: The correct choice here is vi. Die emacs
    heretics, die die die.)
The above should give you enough to chew on for a year or two.  What should your first steps be if you know nothing?
 
 
 
  • You will need at least 20 gigs of free space.
  • Download the latest Ubuntu 15.xx as an .ISO file.
  • Install Ubuntu into a virtual machine.  I recommend Client Hyper-V on Windows 10
    which is included in Windows 10, or if you're still using that ancient
    Windows 7 thingy, then download VirtualBox, which is free.  If your
    Linux install worked perfectly, the client integration piece that makes
    working with a mouse within a virtual operating system will work
    perfectly. If the client integration piece didn't work, make sure to
    learn how to manually "free" your mouse pointer from the VM if it
    becomes locked inside it and you can't figure out how to release it.
  • Play with virtual consoles
    (Ctrl+Alt+F1 through F8). Learn what they are.  Watch some tutorials on
    basic Linux stuff like logging in.  Learn a bit about bash shell.
     Learn about the structure of unix filesystems, learn the basics of unix
    file permissions and ownership.
  • Learn about commands like ls, find, locate, grep, ps, pswd, more, less, wget, ssh, ping. chmod, chown, and others.  Use the man command to learn about them (man grep).
  • Learn to install and start up Apache web server.  Learn a bit about configuring it.   Examine the configuration files in the /etc/apache2 folder
  • Browse from your host (Windows) PC web browser to the IP address of your Virtual Machine.  Use /sbin/ifconfig eth0 command to display your current IP address from a terminal prompt.
  • Learn to start and stop the X Server. When the X server is stopped,
    you have a text mode only operating system, which is ideal for server
    deployment. When it's running you have an opportunity to try some of the
    available IDEs that run on Linux.
  • Optional: Learn some Python and learn to write simple web
    server applications with Python.  (I do not recommend bothering to learn
    PHP, if you don't like Python then look into Ruby and Go as server side
    languages.)
  • Optional: Learn the fundamentals of compiling some small
    applications from source. Write some small command line applications in
    C, since that's going to give you a bit of a flavor for the classic Unix
    environment.  C programming on Unix is easily the single most
    important skill I have on Linux.  If you can get over your preference
    for begin/end and learn to work on Unix in C when it's useful to do so,
    you become a much more well rounded developer.
  • Optional: Install some open source Pascal compiler.   Don't
    expect things to be exactly like Delphi, because they aren't but you
    might enjoy messing around with FreePascal (compiler), or Lazarus (IDE).


Come to the dark side. We have fortune cookies...



delphi 开发者 linux 实务(转)的更多相关文章

  1. 对于delphi for linux心存梦想的同学,彻底醒醒吧

    Borland 曾经多次做市场调查,很多人呼吁推出delphi for linux.可是直到kylix发展到第三版,borland才明白:一个内置C编译器环境并与之关系紧密的免费OS,没有人愿意花钱去 ...

  2. DELPHI开发LINUX桌面程序

    DELPHI开发LINUX桌面程序 DELPHI官方目前为止尚不能开发LINUX桌面程序. 但三方控件FmxLinux(商业控件)是可以的.网上有破解版本.

  3. Delphi For Linux Compiler

    Embarcadero is about to release a new Delphi compiler for the Linux platform. Here are some of the k ...

  4. DELPHI开发LINUX插件架构的程序

    DELPHI开发LINUX插件架构的程序 DELPHI可以开发LINUX配置型插件架构的程序,并且这一套插件架构,同样适用于MSWINDOWS和MAC. 配置插件: 根据配置,动态加载插件:

  5. DELPHI开发LINUX包

    DELPHI开发LINUX包 我们知道,有了包的存在,开发插件架构的程序,才成为可能 . DELPHI在WINDOWS里面的包的扩展名是.bpl. 在LINUX里面的包的扩展名是.so. 怎样在LIN ...

  6. DELPHI开发LINUX的动态库

    DELPHI开发LINUX的动态库 WINDOWS的动态库是.dll,这个大家都知道. LINUX也有动态库,扩展名是.so,现在DELPHI也能开发LINUX的动态库哦. DELPHI对LINUX的 ...

  7. 使用Delphi开发linux应用

    对于很多喜欢使用delphi做开发的人都希望delphi能够支持linux平台的开发,终于在delphi10.2版本中,delphi开始支持linux平台的开发了.在这里写一下Linux开发环境的配置 ...

  8. 在RedHat 和 Ubuntu 中配置 Delphi 的Linux开发环境(转)

    原文地址:http://chapmanworld.com/2016/12/29/configure-delphi-and-redhat-or-ubuntu-for-linux-development/ ...

  9. 咏南 DELPHI DATASNAP LINUX中间件

    咏南 DATASNAP LINUX中间件   咏南 DATASNAP LINUX中间件,一套源码,同时支持WINDOWS和LINUX操作系统. 基于DELPHI 10.2 TOKYO开发 使用FIRE ...

随机推荐

  1. Shiro简单配置

    注:这里只介绍Spring配置模式. 因为官方例子虽然中有更加简洁的ini配置形式,但是使用ini配置无法与spring整合.而且两种配置方法一样,只是格式不一样. 涉及的jar包 核心包shiro- ...

  2. android的一些关键词

  3. 移动应用开发测试工具Bugtags集成和使用教程

    前段时间,有很多APP突然走红,最终却都是樱花一现.作为一个创业团队,突然爆红是非常难得的机会.然并卵,由于没有经过充分的测试,再加上用户的激增,APP闪退.服务器数据异常等问题就被暴露出来,用户的流 ...

  4. Linux使用ssh公钥实现免密码登录Linux

    ssh 无密码登录要使用公钥与私钥.linux下可以用用ssh-keygen生成公钥/私钥对,下面我以CentOS为例.有机器A(192.168.1.155),B(192.168.1.181).现想A ...

  5. Visual Studio 插件AnkhSvn 更改Svn URL和登录信息

    AnkhSvn配置文件:%AppData%\Subversion\auth\ 删除这个文件夹中所有内容 然后连接,重新设置相关信息 设置静态地址 设置路由器 以TP-LINK路由器为例,其他路由器类似 ...

  6. firefox火狐浏览器过滤广告插件:Adblock Plus

    firefox火狐浏览器过滤广告插件:Adblock Plus

  7. SQL存储过程-新增和修改,参数Xml数据类型

    输入参数:xml数据类型  功能:新增和修改  --value() 方法从 XML 中检索 rogue 属性值.然后将该值分配给 int 变量. --将 Member 节点拆分成多行 SELECT T ...

  8. OpenGL学习笔记1——第一个程序

    学习的参考书基本是按照GL编程指南,如果有消息机制概念,对于GLUT的理解是很自然的.下面就按照自己写的第一个程序详细解释一下GL,还是比较容易上手的. 程序实现的功能是,根据当前随即种子摇出来的结果 ...

  9. 哈夫曼树---POJ3253

    http://poj.org/problem?id=3253 这就是 最典型的哈夫曼树的题型,我们就根据这道题学习一下哈夫曼树 这是最开始我们把21据下来之后我们据下8,然后再据下5得到34,可以看出 ...

  10. STL set使用例子

    #include<iostream>#include<set>using namespace std; #include<stdlib.h> #define ran ...