After moving labs.buyscripts.in to new server, one of the ubuntu PC can’t connect to it. root@pc15:~# ping labs.buyscripts.in PING labs.buyscripts.in (192.69.210.196) 56(84) bytes of data. From pc15 (192.168.0.15) icmp_seq=1 Destination Host Unreachable From pc15 (192.168.0.15) icmp_seq=2 Destination Host Unreachable ^C
Firefox 20 added new feature, that allow you to open private browsing window in same browsing session. I don’t want this new context menu. To hide this, go to your firefox profile. You can find this by going to You
First create a virtual host for gitweb in apache DocumentRoot /home/gitweb.bizhat.com/public_html/ ServerName gitweb.bizhat.com CustomLog /var/log/httpd/gitweb.bizhat.com.log combined AddHandler cgi-script .cgi DirectoryIndex gitweb.cgi AllowOverride All Options All Order allow,deny Allow from all RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*
To delete all mails using mailx/mail on centos, run For example
To list all installed packages in ubuntu, run dpkg –get-selections
You can check health of adapec raid card using command /usr/StorMan/arcconf getconfig 1 Where 1 is controller number. Example root@server [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 1016G 41G 925G 5% / /dev/sda2 508M 85M 398M
I want to set DDNS (Dynamic DNS, that will point A record like yourname.no-ip.org to your dynamic IP) with www.noip.com, i don’t want to install their program. I found they allow making custom clients. I made a small program in
To auto login to linux console on boot, edit /etc/init/tty.conf vi /etc/init/tty.conf Find exec /sbin/mingetty $TTY Replace with exec /sbin/mingetty –autologin root $TTY diff with original tty.conf [root@localhost ~]# diff /etc/init/tty.conf ~/tty.conf.original 9c9 < exec /sbin/mingetty --autologin root $TTY ---
If you install CSF on OpenVZ hardware node, you won’t be able to access VPS. To fix this create a file /etc/csf/csfpre.sh with following content [root@server12 ~]# cat /etc/csf/csfpre.sh /sbin/iptables -A INPUT -i venet0 -j ACCEPT /sbin/iptables -A OUTPUT -o
Create file /usr/local/bin/eximrm with following content chmod 755 the file Now running the command “eximrm” will delete mails in Exim mail queue.