Mount a Remote Directory With SSHFS Rumi, March 2, 2017March 7, 2017 sshfs is a filesystem based on the SSH file transfer protocol. It is used on a client system i.e. you need to install sshfs package on your local computer/laptop powered by CentOS/RHEL/Ubuntu/Debian/Arch Linux. No need to install anything on server (server1.cyberciti.biz). You only need an openssh server installed on server… Continue Reading
How to correctly install wkhtmltopdf on debian 64 bit? Rumi, February 27, 2017 Ubuntu and Debian packages are compatible most times but not in all cases, i think this is the trouble you’re having you’re trying to use the Ubuntu’s .deb for Debian instead you should get the Debian specific file, (it works for both jessie and wheezy) wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-wheezy-amd64.deb sudo dpkg -i… Continue Reading
Postfix using Gmail as a Mail Relay with Debian 7 Rumi, February 10, 2017 Prerequisites Before starting this tutorial, you should have: Debian 7 installed Your fully qualified domain name (FQDN) All updates installed : apt-get update A valid username and password for the SMTP mail provider, such as Mandrill, or SendGrid Make sure the libsasl2-modules package is installed and up to date: apt-get… Continue Reading
Create a Sudo User on Debian or Ubuntu Rumi, January 29, 2017 Log in to your server as the root user. ssh root@server_ip_address Use the adduser command to add a new user to your system. Be sure to replace username with the user that you want to create. adduser username Set and confirm the new user’s password at the prompt. A strong… Continue Reading
Installing SqlMap in Ubuntu / any Linux distro for SQL Injection Rumi, January 27, 2017 SQLMAP is a automated SQL injection tool which does most of the work for you. If you don’t know what SQL injection is head over here: https://en.wikipedia.org/wiki/SQL_injection Using SQLMAP, you can “hack” many databases in very short time. In the next post, i will show you how to dump database tables… Continue Reading
All about VPN ports Rumi, January 26, 2017 1) If RRAS based VPN server is behind a firewall (i.e. a firewall is placed between Internet and RRAS server), then following ports need to be opened (bidirectional) on this firewall to allow VPN traffic to pass through: – For PPTP: IP Protocol=TCP, TCP Port number=1723 <- Used by PPTP control path IP Protocol=GRE (value… Continue Reading
Increase MySQL connections max_connections Rumi, January 19, 2017 If you need to increase MySQL Connections without MySQL restart do like below mysql> show variables like ‘max_connections’; +—————–+——-+ | Variable_name | Value | +—————–+——-+ | max_connections | 100 | +—————–+——-+ 1 row in set (0.00 sec) mysql> SET GLOBAL max_connections = 150; Query OK, 0 rows affected (0.00 sec)… Continue Reading
Learning watch command with examples! Rumi, January 18, 2017 watch date watch -d date watch -n 10 df -h watch -t date watch echo “‘”‘$$'”‘” watch echo $$ watch -n 0.5 echo $$ watch -n 1 ‘ps -e -o pid,uname,cmd,pmem,pcpu –sort=-pmem,-pcpu | head -15’ watch -d -n 1 ifconfig watch -n 1 tail /var/log/messages watch -d=cumulative date watch “du… Continue Reading
Fixing error: ‘Access denied for user ‘debian-sys-maint’@’localhost’ (using password: YES)’ Rumi, January 17, 2017 For all you Ubuntu/MySQL developers out there, have you ever seen the following? neo@thematrix:~$ sudo /etc/init.d/mysql restart * Stopping MySQL database server mysqld [fail] * Starting MySQL database server mysqld [ OK ] /usr/bin/mysqladmin: connect to server at ‘localhost’ failed error: ‘Access denied for user ‘debian-sys-maint’@’localhost’ (using password: YES)’ So,… Continue Reading
Tightvnc setup on Linux Mint Rumi, January 16, 2017 sudo apt-get install tightvncserver cd ~/.vnc ls nano (or your favorite text editor.) xstartup. edit anything you need to. Then run: tightvncserver Go to your other computer. Run a vnc viewer. And enter in your IP like- <vncserverIP>:1 Continue Reading