User Tools

Site Tools


hstarwiki:cust:gen:linux2

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hstarwiki:cust:gen:linux2 [2017-09-05 T 15:51]
admin [Mint]
hstarwiki:cust:gen:linux2 [2018-02-28 T 00:44] (current)
admin [Own cloud]
Line 70: Line 70:
 ==== LACP ==== ==== LACP ====
 Bonding links can be done to increase throughput: https://en.wikipedia.org/wiki/Link_aggregation#Link_Aggregation_Control_Protocol Bonding links can be done to increase throughput: https://en.wikipedia.org/wiki/Link_aggregation#Link_Aggregation_Control_Protocol
 +
 +==== FreeRadius ====
 +Tuturial Found at:
 +https://wiki.freeradius.org/guide/Getting-Started
 +=== Install ===
 +Typical install:
 +  * $apt install freeradius
 +  * or
 +  * $yum install freeradius
 +===Running===
 +After install you need to test run it and show debugging info
 +  * $radiusd -X
 +  * This will show you a long readout and at the end will say "ready to process requests"
 +  * This is important when making config changes as you can modify a configuration and then test to see if their are 
 +
  
 ==== OpenFire XMPP ==== ==== OpenFire XMPP ====
Line 211: Line 226:
 ===Adding a device=== ===Adding a device===
 You need to first have the local host (the server observe is running on) be appended to have the host name.  You need to first have the local host (the server observe is running on) be appended to have the host name. 
 +
 +==== sendmail ====
 +Send mail is a package that lets you use an external SMTP server and send mail via command line. It is a simpme MTA (Mail Trasnfer Agent)
 +\\ Here are some good instructions, but missing a few things
 +\\ https://docs.oracle.com/cd/E52668_01/E54669/html/ol7-s7-emailsvc.html
 +\\ Missing:
 +\\ step 2: If your config does not have that line, go ahead and add it
 +Also some good info at: http://www.pettingers.org/code/sendmail-mods3.html
 +===Basics:===
 +Make a file for your auth server, and create a db for that server info, change permissions:
 +  * $mkdir /etc/mail/auth
 +  * $chmod 700 /etc/mail/auth
 +  * Then use nano or echo to make a file
 +  * $echo 'AuthInfo:[smtp.yourisp.com]: "U:[username]" "[P:password]"' > /etc/mail/auth/smtp-auth
 +  * replace smtp, username, password
 +  * Now use Makemap, which is part of sendmail
 +  * $makemap hash /etc/mail/auth/smtp-auth < smtp-auth
 +  * $chmod 600 smtp-auth smtp-auth.db
 +Edit or add to sendmail.mc line that reads:
 +<code>
 +define('SMART_host', '[smtp.isp.com]')dnl
 +</code>
 +you may have to change a similar line, here is the stock line you would change: dnl define('SMART_host', 'smtp.isp.com')dnl
 +\\ Likewise, you should modify or add these lines if you use ssl:
 +<code>
 +define('RELAY_MAILER_ARGS', 'TCP $h port')dnl
 +define('confAUTH_MECHANISMS', 'EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
 +FEATURE('authinfo','hash /etc/mail/auth/smtp-auth.db')dnl
 +define(`confAUTH_OPTIONS', `A p y')dnl
 +</code>
 +Turn off Daemon:
 +  * Edit /etc/sysconfig/sendmail.conf and set the value of DAEMON to no
 +<code>
 +DAEMON_MODE="none";
 +</code>
 +Save config. Run through process pressing yes. Then restart the service
 +  * $sendmailconfig
 +  * When done:
 +  * $systemctl restart sendmail
  
 ====== Packages Media ====== ====== Packages Media ======
Line 245: Line 299:
   * This will render the webpage on demand rather then loading a typical page   * This will render the webpage on demand rather then loading a typical page
   * In Code Igniter, this is a simple way for the website to run with lower resources. It also is much more dynamic   * In Code Igniter, this is a simple way for the website to run with lower resources. It also is much more dynamic
-Installing Code igniter is about downloading the package and putting it on the server. It uses and requires PHP+Installing Code igniter is about downloading the package and putting it on the server. It uses and requires PHP
-====== Packages GUI ====== +
-====OpenBox==== +
-My Favorite minimal desktop manager is Open box. Here is a good debian article on it: [[https://wiki.debian.org/Openbox]] +
-==Autostart script== +
-NOTE: This ONLY applies to open box.[[http://openbox.org/wiki/Help:Autostart]] +
-\\ Note in that document at the bottom that t here are 2 places for the autostart, one for a user, which may not be generated in a stripped down system, and one for any open box instance. Some examples of things to add in a very stripped down version of Openbox. Remember, these are just EXAMPLES and you may want to do more reasearch if you do not know what something means +
-  * xterm #to start an xterm session window +
-  * feh  #for setting the background..need to work on +
-=== config file === +
-rc.xml is the file and it is Located in either: /etc/xdg/openbox/ or: ~/.config/openbox/ +
-=== Menu === +
-Menu file is located in ~/home/[user]/.config/openbox/menu.xml It should be very easy to follow the xml type syntax to add a menu item. +
-==== xrandr/arandr ==== +
-  * $xrandr +
-  * gives readout of the types of displays connected. Probably LVDS or LVDS1 +
-  * $xrandr --output [display] [options] +
-  * Some options: +
-  * Display brightness +
-  * $xrandr --output [display ex:LVDS] --brightness [level, 1=100%, .5=50%] +
-  * ex: +
-  * $xrandr --output LVDS1 --brighness 1 +
-  * to clone:  +
-  * $xrandr --output LVDS --auto --output VGA --auto --same-as LVDS +
-  * To turn off minotor needs to be: +
-  * $xrandr --output [monitor] --mode [widthxheighth] +
-  * To turn on and off monitor: +
-  * $xrandr --output [display] --off +
-  * $xrandr --output [display] --auto +
-==== General Windows ==== +
-===XFCE=== +
-Changing windows (when cant grab corners) +
-  * move Alt + mouse click,  +
-  * change size Alt+space, then r +
-  * change size alternative Alt+f8 +
-==== Time ==== +
-Redo timezone:debian: +
-  * dpkg-reconfigure tzdata +
-==== Audio ==== +
-  * Why does my volume become 'muted' on every boot?  +
-  * Append these lines to your /etc/rc.d/rc.local or /etc/init.d/alsasound  +
-  * /usr/bin/amixer set Master 50 unmute >/dev/null 2>&1  +
-  * /usr/bin/amixer set PCM 50 unmute >/dev/null 2>&1  +
-  * /dev/null /usr/bin/amixer set CD 50 unmute >/dev/null 2>&1  +
-==== File Mangers ==== +
-There are a few different file managers like PCFman, Nemo, Nautelus, etc.  +
-== Start Dir == +
-To change the start directory for at least Nemo and Nautelus +
-  * Find file /usr/share/applications/<fm name various>.desktop +
-  * open with vi +
-  * Find line that says: +
-  * Exec=<fm name> $dir +
-  * Change dir to desired +
-  * Example: +
-  * Exec=nemo /home/jamesdoe/Documents +
-  * Making the line like this will always start nemo in that folder instead of the user folder +
-  * note, things like %U means main user directory.+
      
   ======Packages Server ======   ======Packages Server ======
Line 346: Line 344:
 Once the service is removed, you may run MediaTomb using the following command in the terminal. Once the service is removed, you may run MediaTomb using the following command in the terminal.
   * $mediatomb   * $mediatomb
-==== Own cloud ==== 
-Centos instructions: https://tecadmin.net/install-owncloud-on-centos/ 
-===System info=== 
-Owncloud is usually located in: 
-  * /var/www/owncloud 
-  * /var/www/html/owncloud 
-For some good system info see this file: 
-\\ /config/config.php 
-\\ This will help with finding what sql version you have 
-===Backup and restore === 
-Need to backup in the own cloud folder 
-  * /config 
-  * /data 
-  * The data base (see below) 
-More details: 
-  * Backup: https://doc.owncloud.org/server/9.0/admin_manual/maintenance/backup.html 
-  * Restore: https://doc.owncloud.org/server/9.0/admin_manual/maintenance/restore.html 
-===Database=== 
-Here are mysql instructions for backing up: 
-  * $mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > owncloud-dbbackup_`date +"%Y%m%d"`.bak 
-   
  
 ==== SSHFS ==== ==== SSHFS ====
Line 500: Line 477:
   * Can press enter to proced, or add items with spaces between each. Note, you need to type knoppix first for many of them, if said, then you can type all others.   * Can press enter to proced, or add items with spaces between each. Note, you need to type knoppix first for many of them, if said, then you can type all others.
   * Knoppix no3d (dont use compiz)   * Knoppix no3d (dont use compiz)
 +
 +==== Puppy startup  ====
 +http://puppylinux.org/wikka/AddCommandsStartupShutdown
 +\\ Just put scripts in /root/Startup.
hstarwiki/cust/gen/linux2.1504626674.txt.gz · Last modified: 2017-09-05 T 15:51 by admin