This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################## | |
# disable un-needed services # | |
############################## | |
service httpd stop | |
chkconfig httpd off | |
service xinetd stop | |
chkconfig xinetd off | |
service saslauthd stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $uri $blogname{ | |
~^(?P<blogpath>/[^/]+/)files/(.*) $blogpath ; | |
} | |
map $blogname $blogid{ | |
default -999; | |
#Ref: http://wordpress.org/extend/plugins/nginx-helper/ | |
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turn Your Windows PC into a Wi-Fi Hotspot from the Command Line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "Usage: setup-vhost <hostname> (without the www. prefix)" | |
exit | |
fi | |
# Checking Permissions and making directorys | |
mkdir "/var/www/$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################### | |
# disable selinux # | |
################### | |
setenforce 0 | |
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g'/etc/selinux/config | |
############################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#set the password of mysql | |
echo "=========================================" | |
mysqlrootpwd="root" | |
echo "Please input the root password of mysql:" | |
read -p "(Default password: root):" mysqlrootpwd | |
if [ "$mysqlrootpwd" = "" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install software-properties-common python-software-properties | |
add-apt-repository 'deb http://packages.dotdeb.org wheezy-php56 all' | |
add-apt-repository 'deb-src http://packages.dotdeb.org wheezy-php56 all' | |
~~~~~~~~~~~~ jessy | |
add-apt-repository 'deb http://packages.dotdeb.org jessie all' | |
add-apt-repository 'deb-src http://packages.dotdeb.org jessie all' | |
~~~~~~~~~~~~ | |
wget http://www.dotdeb.org/dotdeb.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TigerVnc < Formula | |
homepage "http://tigervnc.org/" | |
url "https://github.com/TigerVNC/tigervnc/archive/v1.9.0.tar.gz" | |
sha256 "f15ced8500ec56356c3bf271f52e58ed83729118361c7103eab64a618441f740" | |
depends_on "cmake" => :build | |
depends_on "gnutls" => :recommended | |
depends_on "jpeg-turbo" | |
depends_on "gettext" | |
depends_on :x11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. First, LXDE and some accessories are installed (terminal): | |
apt-get install catfish galculator gedit gedit-common gnome-screenshot gpicview leafpad libfm-data libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libid3tag0 libimlib2 libkeybinder0 libmenu-cache-bin libmenu-cache3 libobrender32v5 libobt2v5 libunique-1.0-0 libwnck-common libwnck22 lxappearance lxappearance-obconf lxde lxde-common lxde-core lxde-icon-theme lxhotkey-core lxhotkey-gtk lxinput lxmenu-data lxpanel lxpanel-data lxrandr lxsession lxsession-data lxsession-edit lxsession-logout lxtask lxterminal openbox openbox-lxde-session pcmanfm xarchiver xscreensaver | |
2. Remover MATE and accessories | |
apt-get purge caja caja-admin caja-common caja-open-terminal engrampa engrampa-common gir1.2-mate-desktop gir1.2-mate-panel gir1.2-matedesktop-2.0 gir1.2-matepanelapplet-4.0 libmate-desktop-2-17 libmate-menu2 libmate-sensors-applet-plugin0 libmate-slab0 libmate-window-settings1 libmatedict6 libmatekbd-common libmatekbd4 libmatemixer-common libma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################### | |
# SILAHKAN SESUAIKAN YG DIBAWAH INI # | |
# User : admin # | |
# Pass : nimda # | |
##################################### | |
printf "admin:$(openssl passwd -crypt nimda)\n" >> ~/.htpasswd | |
################### |
OlderNewer