Tags » Gnu/ Linux

Free SSL for VestaCP on CentOS

cd /usr/local
yum install git -y
git clone https://github.com/letsencrypt/letsencrypt.git
git clone https://github.com/interbrite/letsencrypt-vesta.git
mkdir -p /etc/letsencrypt/webroot
ln -s /usr/local/letsencrypt-vesta/letsencrypt.conf /etc/httpd/conf.d/letsencrypt.conf
ln -s /usr/local/letsencrypt/letsencrypt-auto /usr/local/bin/letsencrypt-auto
ln -s /usr/local/letsencrypt-vesta/letsencrypt-vesta /usr/local/bin/letsencrypt-vesta
service httpd restart
letsencrypt-vesta admin mysite.com
… 38 more words
Operating Systems

Transmission Log

sudo transmission-daemon --logfile /var/log/transmission.log
Operating Systems

Split and Join Large Files

split –bytes=1024m bigfile.iso small_file_

or

split -d -a 10 –bytes=1m bigfile.iso small_

Then, merge again:

cat small_file_* > joined_file.iso

Operating Systems

CentOS Auto Start Service

chkconfig

chkconfig transmission-daemon on

chkconfig transmission-daemon off

Operating Systems

CentOS Transmission Torrent

yum install transmission-daemon

service transmission-daemon start
service transmission-daemon stop

sudo nano /var/lib/transmission/.config/transmission/settings.json

Set rpc-authentication-required true
sudo nano /etc/init.d/transmission-daemon
Change
DAEMON_ARGS=”-T –blocklist -g $TRANSMISSION_HOME/.config/transmission”
to
DAEMON_ARGS=”–blocklist -g $TRANSMISSION_HOME/.config/transmission” 63 more words

Operating Systems

Add New Mime Type into CentOS

nano /etc/mime.types

insert
application/vnd.android.package-archive apk

apk files will be downloadable

Operating Systems