User Tools

Site Tools


linux:slack_4app

Differences

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

Link to this comparison view

Next revision
Previous revision
linux:slack_4app [2025/01/12 11:08] – created azmanlinux:slack_4app [2025/01/12 13:40] (current) azman
Line 1: Line 1:
 ====== Slackware Application ====== ====== Slackware Application ======
  
-Running application(s) (@software) on Slackware... most are applicable to all distributions.+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: 
 +    * <code>openssl genrsa -out privkey.pem 2048</code> 
 +    * rsa private key with 2048-bit long modulus written to file 
 +  * generate cert: 
 +    * <code>openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095</code> 
 + 
 +  * include httpd-ssl.conf 
 +    * modify httpd-ssl.conf accordingly... 
 + 
 +===== mariadb/mysql Setup ===== 
 + 
 +  * run <code>mysql_install_db</code> 
 +  * make sure permision given to user //mysql// <code>chown -R mysql:mysql /var/lib/mysql</code> 
 +  * start daemon ''rc.mysqld'' 
 +  * run <code>/usr/bin/mysql_secure_installation</code> 
 + 
 +  * create specific database for specific app <code>create database app_db;</code> 
 +  * create specific user for specific app and grant all access <code>grant all privileges on app_db.* to 'user_app'@'localhost' identified by 'pass_app';</code> 
 +  * just formality, run <code>flush privileges;</code> 
 +  * to additionally create specific user for specific app <code>create user 'user_app'@'localhost' identified by 'pass_app';</code> 
 + 
 +  * recover root password:  
 +  * stop daemon ''rc.mysqld'' 
 +  * run <code> 
 +# 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 
 +</code> 
 + 
 +Backup a DB:<code>mysqldump -p -u user userdb > userapp-$(date +%Y%m%d%H%M%S).sql</code> 
 + 
 +===== TeXLive Install/Setup ===== 
 + 
 +The default tetex is usable, but it is no longer maintained and some new packages are not available. 
 + 
 +{{page>linux:app_texlive&noheader}} 
 + 
 +===== rsync server ===== 
 + 
 +  * create ''rsyncd.conf'' in etc <file text rsync.conf> 
 +max connections = 2 
 +log file = /var/log/rsync.log 
 +timeout = 300 
 + 
 +[share] 
 +comment = Shared Stuff 
 +path = /home/share 
 +read only = yes 
 +list = yes  
 +hosts allow = 192.168.3.0/24 
 +uid = nobody 
 +gid = nobody 
 +#auth users = pub 
 +#secrets file = etc/rsyncd.secrets 
 +</file> 
 +    * modify subnet mask address for host allow accordingly 
 +  * in ''inetd.conf'' (etc), insert <code>rsync stream tcp nowait root /usr/bin/rsync rsync --daemon</code> 
 +  * in ''services'' (etc), insert <code>rsync 873/tcp</code> 
 +  * create ''rsyncd.secrets'' in etc <file text rsyncd.secrets> 
 +pub:pub 
 +</file> 
 +  * start rsync daemon<code>/usr/bin/rsync --daemon --config=etc/rsyncd.conf</code> 
 + 
 +===== Steam on Slack64 (in chroot32) ===== 
 + 
 +on an x86_64 machine, 
 +  * install libtxc_dxtn package from slackbuilds.org (64-bit) 
 +  * use 'slackroot' to create 32-bit chroot environment (chroot32) 
 +    * target for desktop 
 +  * ssh into localhost to enter chroot32 as normal user 
 +    * remember to run 'preproot' (as root) prior to that 
 +    * ... and 'preproot --release' when done 
 +  * install packages 
 +    * install alien_bob's steamclient package 
 +    * install libtxc_dxtn package from slackbuilds.org (32-bit) 
 +  * run 'linux32' to create an official 32-bit environment 
 +  * run 'steam -tcp'
  
linux/slack_4app.1736651315.txt.gz · Last modified: by azman