Today : | at : | Safemode : ON
>[+] WELCOME [+]
Title Author Perms Modified Category

TLBB Unknown rwxr-xr-x 2:02:00 PM

Title TLBB
Permission rw-r--r--
Author Unknown
Date and Time 2:02:00 PM
Category
Share
yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel
ln -s /usr/lib/libodbc.so.2.0.0 /usr/lib/libodbc.so.1
yum install mysql-server mysql
service mysqld start
/usr/bin/mysql_secure_installation
chkconfig mysqld on
yum install mysql-connector-odbc
mysql -u root -p
GRANT ALL ON *.* TO root@'%' IDENTIFIED BY '123456';
>>> /etc/mysql/my.conf
___________________________________
[mysqld]
datadir=/var/lib/mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/lib/mysql/mysql.sock
user = mysql
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
#bind-address = 192.168.1.3
key_buffer = 500M
table_cache = 4000
sort_buffer_size = 3M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
max_connections = 400
query_cache_type = 1
query_cache_limit = 5M
query_cache_size = 500M
tmp_table_size=20M
max_heap_table_size=20M
thread_cache_size = 64
___________________________________
>> etc/sysconfig >> selinux >> disabled
service mysql restart
service iptables stop
chkconfig iptables off
>> /ect >> odbc.ini
_________________________________________
[tlbbdb]
Description = ServerTLBB Database
Driver = /usr/lib/libmyodbc5.so
Server = 127.0.0.1
Database = tlbbdb
Port = 3306
Option = 3
User = root
Password = 123456
Socket = /var/lib/mysql/mysql.sock
_____________________________________________
Sua font game
Client :edit font : Interface -> schema -> tomaho.tff
Sua anh nen dang nhap :
Material > huodongricheng

TLBB Remove GRUB Bootloader TimeOut Unknown rwxr-xr-x 7:53:00 PM

Title TLBB Remove GRUB Bootloader TimeOut
Permission rw-r--r--
Author Unknown
Date and Time 7:53:00 PM
Category
Share
/boot/grub/grub.conf
timeout=0

TLBB SSH Login by Root account Unknown rwxr-xr-x 7:52:00 PM

Title TLBB SSH Login by Root account
Permission rw-r--r--
Author Unknown
Date and Time 7:52:00 PM
Category
Share
sudo nano /etc/ssh/sshd_config
PermitRootLogin without-password
to
PermitRootLogin yes
And restart the SSH server:
sudo service ssh restart

ssh -i KEYPAIR.pem ubuntu@HOSTNAME 'sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/'

TLBB Phân quyền Full chmod Unknown rwxr-xr-x 7:51:00 PM

Title TLBB Phân quyền Full chmod
Permission rw-r--r--
Author Unknown
Date and Time 7:51:00 PM
Category
Share
To change all the directories to 755 (-rwxr-xr-x):
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;


To change all the files to 644 (-rw-r--r--):
find /opt/lampp/htdocs -type f -exec chmod 644 {} \;

TLBB Nén và giải nén file .tar.gz Unknown rwxr-xr-x 7:51:00 PM

Title TLBB Nén và giải nén file .tar.gz
Permission rw-r--r--
Author Unknown
Date and Time 7:51:00 PM
Category
Share

TAR.GZ

This format is my weapon of choice for most compression. It gives very good compression while not utilizing too much of the CPU while it is compressing the data. To compress a directory use the following syntax:
# tar -zcvf archive_name.tar.gz directory_to_compress
To decompress an archive use the following syntax:
# tar -zxvf archive_name.tar.gz
This will extract the files in the archive_name.tar.gz archive in the current directory. Like with the tar format you can optionally extract the files to a different directory:

# tar -zxvf archive_name.tar.gz -C /tmp/extract_here/

TLBB Install iODBC & odbclib Unknown rwxr-xr-x 7:50:00 PM

Title TLBB Install iODBC & odbclib
Permission rw-r--r--
Author Unknown
Date and Time 7:50:00 PM
Category
Share
Install Command:
  • Ubuntu
    • sudo apt-get install iodbc
    • sudo apt-get install unixODBC:i386 unixODBC-dev:i386
    • sudo apt-get install unixODBC unixODBC-dev
    • apt-get install libmyodbc:i386
    • apt-get install libmyodbc
  • Centos
    • yum install unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel
    • yum install mysql-connector-odbc
I ended up installing just libmyodbc and configuring odbc using the /etc/odbc.ini file:


Ubuntu:
[ODBC Data Sources]
odbcname = MyODBC 3.51 Driver DSN
[tlbbdb]
Driver = /usr/lib/odbc/libmyodbc.so
Description = MyODBC 3.51 Driver DSN
SERVER = 127.0.0.1
PORT = 3306
USER = root
Password = 123456
Database = tlbbdb
OPTION = 3
SOCKET =
[Default]
Driver = /usr/local/lib/libmyodbc3.so
Description = MyODBC 3.51 Driver DSN
SERVER = localhost
PORT =
USER = root
Password = 123456
Database = test
OPTION = 3
SOCKET =
On Ubuntu Trusty 14.04 LTS (32-bit), replace the Driver value above with:
  • /usr/lib/i386-linux-gnu/odbc/libmyodbc.so
Centos
[tlbbdb]
Description = ServerTLBB Database
Driver = /usr/lib/libmyodbc5.so
Server = 127.0.0.1
Database = tlbbdb
Port = 3306
Option = 3
User = root
Password = 123456
Socket = /var/lib/mysql/mysql.sock


libodbc.so.1 of ubuntu (Linux) x64 must be set in /usr/lib/ -> You must be symlink the libodbc.so in the tlbb Server to the lib, then symlink the /usr/lib/i386-linux-gnu/libltdl.so.3

TLBB Disable / Turn Off Firewall in Ubuntu Linux Server Unknown rwxr-xr-x 7:48:00 PM

Title TLBB Disable / Turn Off Firewall in Ubuntu Linux Server
Permission rw-r--r--
Author Unknown
Date and Time 7:48:00 PM
Category
Share
sudo ufw disable

TLBB Delete the User Unknown rwxr-xr-x 7:45:00 PM

Title TLBB Delete the User
Permission rw-r--r--
Author Unknown
Date and Time 7:45:00 PM
Category
Share
It’s just one simple command to add a user. In this case, we’re adding a user called mynewuser:
userdel mynewuser
If you want to remove all of the files for the user, then use -r:
userdel -r mynewuser
Step 2: Remove Root Privileges to the User
visudo
Find the following code:
## Allow root to run any commands anywhere
root ALL=(ALL:ALL) ALL
mynewuser ALL=(ALL:ALL) ALL
In this case, we’re removing root privileges from the user mynewuser. Remove the following:
mynewuser ALL=(ALL:ALL) ALL

Then exit and save the file with the key commands Ctrl-x, Y, enter.

TLBB Cài đặt mạng cho Ubuntu Unknown rwxr-xr-x 7:39:00 PM

Title TLBB Cài đặt mạng cho Ubuntu
Permission rw-r--r--
Author Unknown
Date and Time 7:39:00 PM
Category
Share
Mở tệp interfaces ra để chỉnh sửa:
  • sudo nano /etc/network/interfaces
Thêm vào các dòng cấu hình:
auto eth0 #thường là eth0 có thể là eth1, eth2
iface eth0 inet static
address 192.168.1.x #địa chỉ ip bạn chọn
netmask 255.255.255.0
gateway 192.168.1.1
Sau đó lưu lại và khởi động lại mạng:
  • sudo /etc/init.d/networking restart
Sửa DNS:
Mở tệp resolv.conf:
  • sudo gedit /etc/resolv.conf
Thêm DNS của bạn vào:
nameserver 8.8.8.8
  • echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
Nếu DNS file tự động reconfig thì làm như sau:
  • sudo nano /etc/resolvconf/resolv.conf.d/head
(ignore the scary warning. /etc/resolv.conf is autogenerated, so the warning is there so it will get put in /etc/resolv.conf when /etc/resolv.conf is generated.) To the end of the file, add
nameserver <ip_of_nameserver>
Press Ctrl x and answer yes to saving the file. To finish up, regenerate /etc/resolv.conf so the changes are applied right now:
  • sudo resolvconf -u
Changing the hostname or computer name in ubuntu
Edit /etc/hostname and change to the new value, you can use nano instead of vi, but remember that real men prefer vi.
  • vi /etc/hostname
Edit /etc/hosts and change the old 127.0.1.1 line to your new hostname (if you dont do this, you wont be able to use sudo anymore. If you hav e already done it, press ESC on the grub menu, choose recovery, and edit your host file to the correct settings)
127.0.0.1   localhost
127.0.1.1   ubuntu.local ubuntu   # change to your new hostname/fqdn
Now after a reboot, your hostname will be the new one you chose. To change without a reboot, you can just use hostname.sh after you edit /etc/hostname:


  • sudo /etc/init.d/hostname.sh start

TLBB Cài Apache, MySQL, PHP Unknown rwxr-xr-x 7:34:00 PM

Title TLBB Cài Apache, MySQL, PHP
Permission rw-r--r--
Author Unknown
Date and Time 7:34:00 PM
Category
Share
1. Cài đặt Apache Server:
sudo apt-get install apache2

2. Cài đặt MySQL Server:
Lệnh cài mysql:
sudo apt-get install -y mysql-server mysql-client --fix-missing --fix-broken
yum install mysql-server mysql
Lệnh tắt Firewall
ufw disable
/etc/sysconfig/selinux
Ở dòng SELINUX=enforcing bạn chuyển thành SELINUX=disabled
/etc/rc.d/init.d/iptables stop : ngừng dịch vụ iptables
chkconfig iptables off : không cho dịch vụ iptables (IPv4) khởi động cùng hệ thống
chkconfig ip6tables off :không cho dịch vụ iptables (IPv6) khởi động cùng hệ thống
mysql -u root -p
GRANT ALL ON *.* TO root@'%' IDENTIFIED BY '123456';
nano /etc/mysql/my.conf
[mysqld]
datadir=/var/lib/mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/lib/mysql/mysql.sock
user = mysql
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
#bind-address = 192.168.1.3
key_buffer = 500M
table_cache = 4000
sort_buffer_size = 3M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
max_connections = 400
query_cache_type = 1
query_cache_limit = 5M
query_cache_size = 500M
tmp_table_size=20M
max_heap_table_size=20M
thread_cache_size = 64
service mysql restart
Auto start Mysql
sudo update-rc.d mysql defaults

3. Cài đặt PHP 5:
sudo apt-get install php5 libapache2-mod-php5
If you are using Apache 2.4
You have to check allow and deny rules
Check out http://httpd.apache.org/docs/2.4/upgrading.html#access
In 2.2, access control based on client hostname, IP address, and other characteristics of client requests was done using the directives Order, Allow, Deny, and Satisfy.
In 2.4, such access control is done in the same way as other authorization checks, using the new module mod_authz_host.
The new directive is Require:
2.2 configuration:
Order allow,deny Allow from all
2.4 configuration:
Require all granted
Also don't forget to restart the apache server after these changes (# service httpd restart)


sudo a2enmod rewrite
sudo service apache2 restart

TLBB Auto Run Script Startup Unknown rwxr-xr-x 7:29:00 PM

Title TLBB Auto Run Script Startup
Permission rw-r--r--
Author Unknown
Date and Time 7:29:00 PM
Category
Share
copy yourscriptname to /etc/init.d/
chmod +x /etc/init.d/Net.sh
update-rc.d yourscriptname start 2

RPM resource libodbc.so.1()(64bit) Unknown rwxr-xr-x 7:27:00 PM

Title RPM resource libodbc.so.1()(64bit)
Permission rw-r--r--
Author Unknown
Date and Time 7:27:00 PM
Category
Share

Package Summary Distribution Download
unixODBC-libs-2.2.11-10.SEL5_6.x86_64.html The shared libraries required by programs that use unixODBC StartCom Linux unixODBC-libs-2.2.11-10.SEL5_6.x86_64.rpm
unixODBC-libs-2.2.11-10.el5.x86_64.html The shared libraries required by programs that use unixODBC Scientific Linux unixODBC-libs-2.2.11-10.el5.x86_64.rpm
unixODBC-libs-2.2.11-10.el5.x86_64.html The shared libraries required by programs that use unixODBC Scientific Linux unixODBC-libs-2.2.11-10.el5.x86_64.rpm
unixODBC-libs-2.2.11-10.el5.x86_64.html The shared libraries required by programs that use unixODBC Scientific Linux unixODBC-libs-2.2.11-10.el5.x86_64.rpm

unixODBC-2.3.0-1ark.x86_64.html A complete ODBC driver manager for Linux. ArkLinux unixODBC-2.3.0-1ark.x86_64.rpm
unixODBC-2.2.12-9.fc10.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-9.fc10.ppc64.rpm
unixODBC-2.2.12-9.fc10.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-9.fc10.x86_64.rpm
unixODBC-2.2.12-9.fc10.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-9.fc10.x86_64.rpm
unixODBC-2.2.12-7.fc9.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-7.fc9.ppc64.rpm
unixODBC-2.2.12-7.fc9.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-7.fc9.ppc64.rpm
unixODBC-2.2.12-7.fc9.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-7.fc9.x86_64.rpm
unixODBC-2.2.12-7.fc9.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-7.fc9.x86_64.rpm
unixODBC-2.2.12-7.fc9.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-7.fc9.x86_64.rpm
unixODBC-2.2.12-7.fc9.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-7.fc9.ppc64.rpm
unixODBC-2.2.12-5.fc8.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-5.fc8.x86_64.rpm
unixODBC-2.2.12-5.fc8.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-5.fc8.ppc64.rpm
unixODBC-2.2.12-5.fc8.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-5.fc8.ppc64.rpm
unixODBC-2.2.12-5.fc7.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-5.fc7.x86_64.rpm
unixODBC-2.2.12-5.fc7.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-5.fc7.ppc64.rpm
unixODBC-2.2.12-4.fc8.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-4.fc8.ppc64.rpm
unixODBC-2.2.12-4.fc8.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-4.fc8.x86_64.rpm
unixODBC-2.2.12-4.fc8.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-4.fc8.x86_64.rpm
unixODBC-2.2.12-2.fc7.ppc64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-2.fc7.ppc64.rpm
unixODBC-2.2.12-2.fc7.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-2.fc7.x86_64.rpm
unixODBC-2.2.12-2.fc7.x86_64.html A complete ODBC driver manager for Linux archive.fedoraproject.org unixODBC-2.2.12-2.fc7.x86_64.rpm
unixODBC-2.2.11-7.1.x86_64.html A complete ODBC driver manager for Linux. Scientific Linux unixODBC-2.2.11-7.1.x86_64.rpm
unixODBC-2.2.11-7.1.x86_64.html A complete ODBC driver manager for Linux. archive.fedoraproject.org unixODBC-2.2.11-7.1.x86_64.rpm
unixODBC-2.2.11-7.1.x86_64.html A complete ODBC driver manager for Linux. Scientific Linux unixODBC-2.2.11-7.1.x86_64.rpm
unixODBC-2.2.11-7.1.x86_64.html A complete ODBC driver manager for Linux. StartCom Linux unixODBC-2.2.11-7.1.x86_64.rpm
unixODBC-2.2.11-7.1.x86_64.html A complete ODBC driver manager for Linux. Scientific Linux unixODBC-2.2.11-7.1.x86_64.rpm
unixODBC-2.2.11-7.1.x86_64.html A complete ODBC driver manager for Linux. StartCom Linux unixODBC-2.2.11-7.1.x86_64.rpm
unixODBC-2.2.11-6.2.1.x86_64.html A complete ODBC driver manager for Linux. archive.fedoraproject.org unixODBC-2.2.11-6.2.1.x86_64.rpm
unixODBC-2.2.11-6.2.1.x86_64.html A complete ODBC driver manager for Linux. StartCom Linux unixODBC-2.2.11-6.2.1.x86_64.rpm
unixODBC-2.2.11-3.FC4.1.x86_64.html A complete ODBC driver manager for Linux. archive.fedoraproject.org unixODBC-2.2.11-3.FC4.1.x86_64.rpm
unixODBC-2.2.11-1.RHEL4.1.x86_64.html A complete ODBC driver manager for Linux. Whitebox Linux unixODBC-2.2.11-1.RHEL4.1.x86_64.rpm
unixODBC-2.2.11-1.x86_64.html A complete ODBC driver manager for Linux. archive.fedoraproject.org unixODBC-2.2.11-1.x86_64.rpm
unixODBC-2.2.9-1.x86_64.html A complete ODBC driver manager for Linux. archive.fedoraproject.org unixODBC-2.2.9-1.x86_64.rpm
unixODBC-2.2.9-1.x86_64.html A complete ODBC driver manager for Linux. Whitebox Linux unixODBC-2.2.9-1.x86_64.rpm
unixODBC-2.2.8-5.x86_64.html A complete ODBC driver manager for Linux. archive.fedoraproject.org unixODBC-2.2.8-5.x86_64.rpm
unixODBC-2.2.8-2.3.0.2.x86_64.html A complete ODBC driver manager for Linux. Whitebox Linux unixODBC-2.2.8-2.3.0.2.x86_64.rpm

yum provides */libodbc.so* Unknown rwxr-xr-x 7:21:00 PM

Title yum provides */libodbc.so*
Permission rw-r--r--
Author Unknown
Date and Time 7:21:00 PM
Category
Share
PHP Code:
yum provides */libodbc.so*
Out put :
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.xx.xx
* extras: mirrors.xxx.xx
* updates: mirrors.xx.xx
unixODBC-2.2.14-12.el6_3.x86_64 : A complete ODBC driver manager for Linux
Repo : base
Matched from:
Filename : /usr/lib64/libodbc.so.2.0.0
Filename : /usr/lib64/libodbc.so.1
Filename : /usr/lib64/libodbc.so.2

unixODBC-2.2.14-12.el6_3.i686 : A complete ODBC driver manager for Linux
Repo : base
Matched from:
Filename : /usr/lib/libodbc.so.2.0.0
Filename : /usr/lib/libodbc.so.1
Filename : /usr/lib/libodbc.so.2

tiến hành cài đặt bằng yum
PHP Code:
yum install unixODBC-2.2.14-12.el6_3.i686

rpm -ivh Unknown rwxr-xr-x 7:19:00 PM

Title rpm -ivh
Permission rw-r--r--
Author Unknown
Date and Time 7:19:00 PM
Category
Share
rpm -ivh ftp://195.220.108.108/linux/Mandriva/official/2011/i586/media/main/release/libunixODBC1-2.3.0-3-mdv2011.0.i586.rpm

fsafsa Unknown rwxr-xr-x 6:59:00 PM

Title fsafsa
Permission rw-r--r--
Author Unknown
Date and Time 6:59:00 PM
Category
Share
fsafasfaf
Powered by Blogger.