User Tools

Site Tools


linux:dev1_2setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:dev1_2setup [2026/01/09 20:36] – [Development] azmanlinux:dev1_2setup [2026/01/09 20:51] (current) – [NFS setup] azman
Line 22: Line 22:
 ===== Web Server ===== ===== Web Server =====
  
-  * Install webserver +  * Install webserver<code>apt install //apache2//</code>
-    * ''# apt install //apache2//''+
     * default path for web is ''/var/www/html''     * default path for web is ''/var/www/html''
 +    * configure <code>$ cd /etc ; vi apache2/apache2.conf ; cd - >/dev/null</code>
 +      * add //ServerName// (remove annoying startup message!)
 +      * my //my1apisrv// code need these for //www// dir config<code>
 +  Options FollowSymLinks
 +  AllowOverride All
 +  Require all granted</code>
 +  * Install php <code>$ apt install php php-cgi libapache2-mod-php php-mysql php-sqlite3</code>
 +    * enable pdo support <code>cd /etc ; vim php/7.0/apache2/php.ini ; cd - >/dev/null</code>
 +    * create required links in mods-enabled and conf-enabled
 +      * my my1apisrv code need ''rewrite''
 +      * both folders are in ''apache2'' (/etc)
 +    * if running dokuwiki <code>$ apt install php-xml</code>
 +    * my API client php code needs this <code>$ apt install php-curl</code>
 +  * Install database <code>$ apt install mariadb-server</code>
 +
 +===== Multi-Arch (a.k.a. Multi-Lib) =====
 +
 +To run 32-bit binary:
 +  * Enable multi-arch: ''$ dpkg --add-architecture i386''
 +  * Update package list: ''$ apt update''
 +  * Most probably need libc: ''$ apt install //libc6:i386//''
 +  * Install required libraries: (<package>:i386)
 +
 +To build 32-bit binary:
 +  * Install compiler(s): ''$ apt install //gcc-multilib g++-multilib//''
 +    * Notice that these are 64-bit packages (no :i386 suffix) -> cross compilers!
 +  * Use ''-m32'' gcc option to compile!
 +
 +===== Gaming =====
 +
 +To play steam games:
 +  * enable multi-arch
 +  * install steam <code>$ apt install steam</code>
 +
 +===== NFS setup =====
 +
 +Dumping this as it is for now:
 +  * client
 +    * install <code>$ apt install nfs-common</code>
 +    * mount <code>$ mount -t nfs <host>:/path <mount-point></code>
 +  * server
 +    * install <code>$ apt install nfs-kernel-server</code>
 +    * [optional] <code>$ mount --bind /path/to/share /mount/point</code>
 +    * modify accordingly<code>$ cd /etc ; vim exports ; cd - >/dev/null</code>
 +    * start <code>$ service nfs-kernel-server start</code>
 +
 +===== Others =====
 +
 +My iso2boot script need //isohybrid// from syslinux/isolinux project:
 +  * ''$ apt install //syslinux-utils//''
  
linux/dev1_2setup.1767962172.txt.gz · Last modified: by azman