Posts

Increase the responce time/improve performace of GNOME Desktop in Ubunu

Metacity will give the user less feedback by using wireframes, avoiding animations, or other means. This is a significant reduction in usability for many users, but may allow legacy applications to continue working, and may also be a useful tradeoff for terminal servers. However, the wireframe feature is disabled when accessibility is on. Step 1: Open the Configuration Editor Alt+F2 then type gconf-editor Step2: Go to apps->metacity->general Step3: Check (true) to reduced_resource. This will increase the response time, you will notice the difference.

PPPoE Server Under Ubuntu/Debian

PPPoE Server Setup: Operating System: Ubuntu Desktop(8.04) 1) Installation of Softwares: Server Side a) ppp apt-get install ppp b) pppoe apt-get install pppoe c) rp-pppoe (I used rp-pppoe-3.10.tar.gz) RP PPPoE; can be obtained from, http://www.roaringpenguin.com/products/pppoe After download Move it to some place e.g /var/tmp, unpack and change permission root@pppoe:/var/tmp# mv /home/imran/Desktop/rp-pppoe-3.10.tar.gz /var/tmp/ root@pppoe:/var/tmp# tar -xvf rp-pppoe-3.10.tar.gz root@pppoe:/var/tmp# chown imran:imran rp-pppoe-3.10 root@pppoe:/var/tmp# ls -l total 220 drwxr-xr-x 8 imran imran 4096 2008-06-30 16:00 rp-pppoe-3.10 -rw-r--r-- 1 imran imran 215288 2009-10-19 10:31 rp-pppoe-3.10.tar.gz root@pppoe:/var/tmp# Open README file and go through it.There are 3 methods I shall go for first one, QuickStart method. QUICKSTART Method : "If you're lucky, the "quickstart" method will work. After unpackingthe archive, become root and type" root@pppoe:/var/tmp# cd...

How to enable/disable apache module in Debian/Ubuntu

To enable any module e.g SSL use a2enmod command root@fizaan:/etc/apache2# a2enmod Which module would you like to enable? Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgid cgi charset_lite dav_fs dav dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias Module name? ssl Module ssl installed; run /etc/init.d/apache2 force-reload to enable. Reload the configuration root@fizaan:/etc/apache2# /etc/init.d/apache2 force-reload * Reloading web server config apache2root@fizaan:/etc/apache2# Restart the apach2 w...

Testing Throughput of Gateway/CPE with Jperf

Step 1: Setup Two PCs connected with your DUT (device under test), in this case your CPE. PC1 is attached to LAN side and PC2 attached on WAN side Step 2: Assign addresses to devices. LAN side PC, PC1 will get the address from the DHCP server insed the DUT. configure the stative IPs on PC2: 10.10.10.100 WAN side of DUT 10.10.10.10 Step 3: Check and confirm the connectivity by pinging PC2 from PC1 Step 4: Run the Jperf Application on PC1 and PC2 PC2 will act as server, click the server option and run it PC1 will act as client, enter the IP of server, 10.10.10.100 and run it. You will see the LAN-WAN throtuput of your device. References http://code.google.com/p/xjperf/ http://openmaniak.com/iperf.php http://www.smallnetbuilder.com/content/view/30408/235/ http://www.smallnetbuilder.com/content/view/30418/235/ http://www.smallnetbuilder.com/content/view/30388/235/

Network Monitoring using Nagios on Debian

Step 1: Installation of Nagios nagios:/etc/nagios#apt-get install nagios-text Step 2: Configuration EDIT /etc/nagios/contacts.cfg AND ADD FOLLOWING define contact{ contact_name imran alias imran service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email imran@fizaan.com } EDIT /etc/nagios/contactgroups.cfg AND ADD FOLLOWING define contactgroup{ contactgroup_name server-admin alias Systems Administrators members imran } EDIT /etc/nagios/hosts.cfg AND ADD YOUR HOSTS WHICH YOU WANT TO MONITOR define host{ use generic-host host_name www.fizaan.com alias website address ...

Restoring Joomla Site Admin Password

Step 1: Login the site using phpmyadmin Step 2: Select the Database You can find you data base name, user name and password on database from configuration.php file of joomla. Step 3: Select the Users table "jos_users", on left side of panel from the database. Step 4: Select the Browse in middle window and edit the user name Administration, id e.g 62 by clicking the edit mark "pencil" in this case. Step 5: In the password field, insert this value "226776f356d7ecf58b60bab12a05d38f" (without quotes), this is hashed value of joomla, new password of admin user. Be careful do not change field type. Step 6: Press Go, make sure the save option is selected in the bottom of window. Congratulation you new password joomla is set. Do not forget to change the password of admin when you login.

Installation of SSL Certificates (self signed) in Debian

Step 1: Make sure that openssl is installad along with apache, otherw ise apt-get install openssl Step 2: Install the self signed certificate root@web:mkdir /etc/apach2/ssl root@web:/etc/apache2/ssl# openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/certificate.pem -keyout /etc/apache2/ssl/certificate.pem Generating a 1024 bit RSA private key ..............................++++++ .................................++++++ writing new private key to '/etc/apache2/ssl/certificate.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:NO State or Province Name (full name) [Some-State]:Oslo Locality Name (eg, city) []:Oslo Organization Name (...

Installation of tasks (DNS, Print Server...)in Debian/Ubunt

Installation # sudo -s Enter passwd # tasksel

Redirecting URL Permanently in Apache

Step 1: Install apache if not installed; You must have apache installed and running. apt-get install apache2 Step 2: Just add following lines to /etc/apache2/sites-available/default file, NameVirtualHost * ServerName domainname.com ServerAlias www.domainname.com Redirect permanent / http://www.newdomainname.com/ Where 192.168.0.1 is IP of machine running apache2, servername is name of machine Alias can the other name of the machine. Redirct permanent will redirect to the new domain. Step 3: Restart the apache /etc/init.d/apache2 restart Step 4: Test the site References http://www.yolinux.com/TUTORIALS/ApacheRedirect.html

Installation of Spamassassin in Exim4 Debian

Step 1: Add following to /etc/apt/sources.list deb http://volatile.debian.net/debian-volatile sarge/volatile main contrib Step 2: Install Spamassassin via apt-get apt-get install spamassassin Step 3: Enable spamassassin edit /etc/default/spamassassin and enable spamd Installation or updating using CPAN perl -MCPAN -e shell install Mail::SpamAssassin reload CPAN quit Restart the spamassassin /etc/init.d/spamassassin restart Check the version of spamassassin -V Updating the rules sa-update -D Tuning the Spamassassin /etc/mai/spamassassin/local.cf # These should be safe assumptions and allow for simple visual sifting # without risking lost emails. required_hits 4.0 report_safe 1 rewrite_header Subject *****[SPAM](_SCORE_)***** use_bayes 1 auto_learn 1 ok_locales en Useful Links http://koivi.com/exim4-config/ http://www.linuxsupport.org.uk/sa/index.html

Installation of Virtual Box in Ubuntu 8.10

Installation Step 1: Add following address in /etc/apt/sources.list deb http://download.virtualbox.org/virtualbox/debian intrepid non-free Step 2: Add public key wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add - Step 3: Update and Install necessery package sudo apt-get update sudo apt-get install dkms Step 4: Install the virtual box sudo apt-get install virtualbox-2.1 It will start the to install and will add the network interfaces. Open the Virtual Machine Application and create the machines.

Securing System with DenyHost package

Denyhost is a package which is exellent for blocking brute forc ssh attacks. It is also easy to install and manage. Installation apt-get install denyhosts Configuration: Default configuration are pretty good but you can tune the basic. /etc/denyhosts.conf It reads the logs and add those IPs which try to break in /etc/hosts.deny You can add your IP/valid IP or with your domain. /etc/hosts.allow sshd: yourdomain.com 192.168.0.1 Start/stop service /etc/init.d/denyhosts stop /etc/init.d/denyhosts start Purging denyhost denyhosts --purge The /etc/rc3.d contains the denyhost which start on run time.

LDAP server on Debian ETCH

Image
INSTALLATION apt-get install slapd ldap-utils libldap-2.4-2 libdb4.6 During installion it will ask you questions like passwd or domain name (it did not ask my installation) Administrator password: password Confirm password: password CONFIGURATION Client side : (Remember same system is serving as client and server.) Edit /et/ldap/ldap.conf BASE dc=fizaan, dc=com #URI ldap://ldap.example.com ldap://ldap-master.example.com:666 URI ldap://10.0.2.15 #SIZELIMIT 12 #TIMELIMIT 15 #DEREF never Server Configuration These Schemas by default are included, if not make sure they are included. # Schema and objectClass definitions include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema Change the log level from 0 to 256 loglevel 256 Data base, you can change if you want different. I m using default. database bdb Your domain name...

Window 2003 Termianl Server Installation, Configuration and Maintenance

Server End : Installation During Installain of Windows 2003 Server, Terminal srver installs by default, no need to install again. Configuration Step 1:Share Remoter Desktop Connection by sharing this folser: C:\Windows\system32\clients\tsclient\win32 to access folser and copy in their system. Step 2: Give permission to user e.g imran by Right click on win32 folder, click propterties, select Security tab and click add, enter user name: imran (this user should already be created in server machine) under enter Object name Step 3: Allow remote users to access remotely by Enabling Remote access. Step 4: Right click on My computer, Click Properties, select Enable Remoter Desktop in this computer. client Side: Step 1: If your client is Windows XP: Click start, All programmes, Accesseries and then Open Remote Desktop Connection Step 2: Write IP of terminal server e.g 192.168.1.102 Step 3: Give user name and password, this usre name and passward should be permit Step 4: This will open the Ter...

Window 2003 DFS Server Installation, Configuration and Maintenance

Server Side: Installation: In windows 2003 Installatin, DFS is installed by default, no need to install again. Configuration: Client Side: Step 1: Make a filder e.g c:\DFS-client1 Step 2: Share the folder and set the permissin. Server Side: Step 1: Make a folder and share it, e.g C:\root Step 2: Open Distributed File System from Administrative Tools Step 3: Right click on Distributed file systme, Click New Root, a wizard will start, click Next. Step 4: If you have Domain, select Domain root, if WORKGROUP then Stand-alone root , I am using stand-alone root, click Next. Step 5: Write Server name or IP e.g 192.168.1.102, click Next Step 6: Now give the root name, shared folder made in first step on srver e.g root and Finish the wizard. Step 7: After finish right click on \\TEST03-SERVER\root and click New Link Step 8: Name of Link for client1 e.g 192.168.1.104, select the path to shared folder by click on Browse, Entire Network, Microsoft Windows Network, Workgroup, 2003-client select DF...

Window 2003 FTP Server Installation, Configuration and Maintenance

Server Side You server must have IIS and static IP Installation Step 1: Step 1: Open add/remove programs from Control panel Step 2: Click add/remove windows components, Step 3: Select Application Server, select Internet Information Server (IIS), click details, check FTP along with default checks. Step 4: This will start installation wizard, provide 2003 cd, during install. Configuration Step 1: Open IIS from Administrative Tools Step 2: Right click on FTP Sites, click New FTP Site.. Step 3: Wizard will start, Next, wirte Description e.g ftp server, Next Step 4: Select IP e.g 192.168.1.102, port 21 (default), Next Step 5: FTP user usolation, check Isolate users, Next Step 6: FTP sites home Directory, browse, select drive e.g C, click Make New Folder, cheate folder e.g FTP, ok Step 7: Allow file permission Read, Write (if you want to give write rights), finish Client Side Step 1: Open browser and write serve IP ftp://192.168.1.102 Step 2: Provide credentials if required Step 3: Browse an...

Window 2003 Web Server (IIS) Installation, Configuration and Maintenance

Server End Pre-request DNS in your networkd. Domain in your network. Static IP configured in server where you are going to install IIS. Make a folder e.g C:/web in you server and store page inded.html Installation Step 1: Open control add/remove programs, click add/remove Windows components Step 2: Select Application services, click details Step 3: Check Internet Information Services Step 4: Click ok then Next Configuratoin Step 1: Open IIS from administrative tools Step 2: Right click on Web sites, click New site... Step 3: Wizard will start, next, description e.g my web site, next 4tep 4: Give IP: 192.168.1.102, prot 80 default, header www.fizaan.com Step 6: Browser the path to we directory e.g web Step 7: Set the web site permission, next and finish. Step 8: Expand the web sites folder left side and right click on websites click propterties Step 9: Click the Documents tab, move up default page index.html to top Step 10: Ok Client Side Step 1: Set the DNS to Your DNS server 192.168.1...

Window 2003 DHCP Server Installation, Configuration and Maintenance

Installation You server should have static IP on it. Step 1: Click add/remove windows components in add/remove progmrams in Control panel Step 2: Select Networking Services, dlick details, Step 3: check only Dynamic Host configuration Prptocol (DHCP), OK, Next, This will start installation Step 4: Finsih Configuration Step 1: Open DHCP from Administrative Tools Step 2: Right Expand Computer name e.g Test03-server, click New Scope Step 3: Write name of scope e.g fizaan-dhcp and Descrition Step 4: Enter Start IP: e.g 192.168.1.150 and End IP: e.g 192.168.1.250, Subnet mask Length: 24 and mask: 255.255.255.0, Next Step 5: Skip Add Exclusions, Next, Lease Duration change default 8 days to 1, press Next Step 6: Configure options now, press Next, Give Router IP of your Network: 192.168.1.1 Step 7: Give Domain Name: fizaan.com, DNS server IP:192.168.1.102, WINS server IP: 192.168.1.104 Step 8: Activate scope, select Yes I wan to activate this scope now, Press Next Your DHCP server is ready n...

Window 2003 WINS Server Installation, Configuration and Maintenance

Installation Step 1: Open add/remove Windows by selecting add/remove programes in Control Panel Step 2: Select Networking Service, click details Step 3: Check Windows Internet Name Server Step 4: Click Ok, Next Configuration Step 1: Open WINS from Administrative tools and expand Computer Name e.g TEST03-SERVER (192.168.1.102) Step 2: Right Click on Active Registration then select Display Step 3: From new window, Click Record Types (3rd Tab), Click Clear All Step 4: Select only those tecord which you want to display, Click Find now Back up WINS Database Step 1: In WINS, right Click on computer name and select properties Step 2: In General tab, click browse, select driver, make new folder e.g WINS backup, press OK. Step 3: Right click again on computer name and click backu, it will take the backup Restore WINS backup Step 1: Stop WINS service by right click on Computer name in WINS, all taks then Stop, this will put red cross on WINS (cannot find WINS server) Step 2: After stop, right cl...

Window 2003 Secondary DNS Server/Taking Backup of Primary to Secondary DNS

Primary DNS We have already installed Primary DNS on 192.168.1.102, see Windows 2003 DNS Installation and Configuratoin tutorial. Secondary DNS/ Backup DNS Installation and Configuration on Secondary DNS Step 1: Set the static IP e.g 192.168.1.104, insert Windows 2003 CD into CD rom Step 2: Open Windows components from Add Remove Programe in Controll Pannel Step 3: Select Networking Services, click Details, check only on Domain Name Systme DNS, Click Next, This will Install DNS. Step 4: After install open DNS, expand computer Name, right click on Forward Lookup Zone, right click, Click New Zone Step 5: Wizard will start, Next, Select Secondary Zone type, Next Step 6: Enter zone name, fizaan.com, Next Step 7: Write Master DNS IP here it is 192.168.1.102, add, Next, Finish Further Steps on Primary/Master DNS Step 8: Open DNS and expand Forward Lookup Zones Step 9: Select Zone name e.g fizaan.com, right click select properties Step 10:Select Zone Transfer, check Only to the following serv...