User Tools

Site Tools


linux:slack_4app

This is an old revision of the document!


Slackware Application

Running applications (@software) on Slackware… most are applicable to all distributions.

'Hidden' Application

There are a couple (a few?)of applications that I thought have great features but relatively unknown (I only knew about them after looking for specific solution). Here they are:

  • xfig - nice app to create figures for use with latex
  • xpaint - can do screen capture (xpaint -snapshot)

Apache (web server) Setup

Modify httpd config file:

  • change document root to a folder my main user have full access
    • also create a link to it from my user account
  • allow php to be indexed ⇒ add to directory index in dir_module
  • enable php (towards the end of the file) ⇒ include mod_php.conf
  • enable mod_rewrite (API server?) ⇒ LoadModule … mod_rewrite.so
  • optional: set serveradmin email and servername
  • optional: to only serve locally, set listen localhost:80 ???

More modifications for https:

  • enable loadmodule mod_ssl.so
  • enable loadmodule mod_socache_shmcb.so
  • generate private key:
    • openssl genrsa -out privkey.pem 2048
    • rsa private key with 2048-bit long modulus written to file
  • generate cert:
    • openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
  • include httpd-ssl.conf
    • modify httpd-ssl.conf accordingly…

mariadb/mysql Setup

  • run
    mysql_install_db
  • make sure permision given to user mysql
    chown -R mysql:mysql /var/lib/mysql
  • start daemon rc.mysqld
  • run
    /usr/bin/mysql_secure_installation
  • create specific database for specific app
    create database app_db;
  • create specific user for specific app and grant all access
    grant all privileges on app_db.* to 'user_app'@'localhost' identified by 'pass_app';
  • just formality, run
    flush privileges;
  • to additionally create specific user for specific app
    create user 'user_app'@'localhost' identified by 'pass_app';
  • recover root password:
  • stop daemon rc.mysqld
  • run
    # mysqld_safe --skip-grant-tables &
    # mysql -u root
    $ mysql -uroot -p
    mysql> use mysql;
    mysql> update user set password=PASSWORD('<newpass>') where User='root';
    mysql> flush privileges;
    mysql> exit
linux/slack_4app.1736659298.txt.gz · Last modified: by azman