Android: How To Set Up ADB/USB Drivers for Android Devices
Before you begin make sure you entirely read the tutorial.
1. Download Android SDK and USB drivers
Download the latest AndroidSDK from Google and extract the AndroidSDK.zip file to C:\AndroidSDK.
Download and install HTC Sync from HTC (HTC Sync is not required for ADB but it's the easiest way to install usb drivers).
If you are using HTC Hero and Microsoft Windows 7 (and you experience problems with driver installation) you have to follow this procedure to install usb drivers and HTC Sync.
Workaround for HTC Hero Sync Problem in Windows 7 – 3 easy steps
Many user who are running Windows 7 are having trouble syncing their HTC Hero to their computer, as the driver is not installed properly in Microsoft Windows 7. The following guide is a workaround.
In order to get HTC Hero synchronizes with Windows 7 do the following:
1. Download latest synchronization tool from HTC, namely HTC Sync.
2. Install HTC Sync program on the computer. At this moment, your computer still unable to recognize your phone.
3. Manually update the HTC drivers for Windows 7, using the following driver
Print This PostHow To Install Tomcat 6 on Ubuntu
Apache Tomcat is a servlet container developed by the Apache Software Foundation. Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems, and provides a "pure Java" HTTP web server environment for Java code to run.
1. Install required packages
# sudo apt-get install tomcat6 tomcat6-admin tomcat6-examples
Tomcat depends on a lot of other packages and the package manager will take care of that.
2. Check the services
Make sure the service is responding by entering the following url in a browser:
http://ipaddress:8080/
Replace ipaddress with the ip address of your server
Print This PostHow To Set Up VSFTPD virtual users ( Berkeley DB + PAM )
vsftpd is a GPL licensed FTP server for UNIX systems, including Linux and FreeBSD. It is secure, stable and extremely fast.
vsftpd will handle:
- Virtual IP configurations
- Virtual users
- Standalone or inetd operation
- Powerful per-user configurability
- Bandwidth throttling
- Per-source-IP configurability
- Per-source-IP limits
- IPv6
- Encryption support through SSL integration
- etc...
If you are hosting several web sites, for security reasons, you may want the webmasters to access their own files only. This article describes how you can install and configure vsftpd to work with virtual users.
A virtual user is a user login which does not exist as a real login on the system in /etc/passwd and /etc/shadow file. Virtual users can therefore be more secure than real users, because a compromised account can only use the FTP server but cannot login to system to use other services such as ssh, telnet or smtp.
Print This PostRPM Package manager – Using RPM Commands
RPM Package Manager is a package management system. The name RPM refers to two things: a software package file format, and software packaged in this format.
This document contains an overview of the principal RPM commands for installing, uninstalling, upgrading, querying, listing and checking RPM packages on your Linux system.
To install a RPM package, use the command:
# rpm -ivh foo-1.1-2.i386.rpm
Take a note that RPM packages have a file of names like foo-1.1-2.i386.rpm, which include the package name (foo), version (1.1), release (2), and architecture (i386).
Print This PostInstalling PowerDNS with MySQL backend and PowerAdmin On CentOS
PowerDNS is a MySQL-based DNS server, written in C++ and licensed under the GPL. PowerDNS can be managed through a web interface (PowerAdmin). This guide shows how to install it on CentOS 5.
1. Installing MySQL
# yum -y install mysql mysql-server
2. Enable MySQL on boot and start MySQL server
# chkconfig --levels 235 mysqld on
# service mysqld start
Make sure the MySQL server is running:
# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 28179/mysqld
3. Set password for user root
# mysqladmin -u root password your_password
Print This PostHow To Access SAMBA shares through SSH in Linux
You can access Samba shares by using SSH tunneling. We need a host computer (x.y.z.w) and a destination computer (192.168.0.1, is located in the x.y.z.w network), we'll use adi as username and pass as password.
First we'll create a new mount directory:
# mkdir -p /mnt/share
Now we connect to it:
# ssh -N -L 139:192.168.0.1:139 adi@x.y.z.w
Now we have to run the following commands:
# umount /mnt/share
# mount -t smbfs -o username=adi,workgroup=WORKGROUP,password=pass,port=139,dmask=770,fmask=660,netbiosname=computer1 //localhost/share /mnt/share
x.y.z.w=computer's IP address
192.168.0.1=destination computer
adi=samba username
WORKGROUP=your workgroup
pass=password for the share
How To change Ethernet network card speed and duplex settings in Linux
This tutorial will explain how to change network card speed and duplex settings in linux. It's working with any linux distributions like Fedora, CentOS, Debian, Ubuntu, etc.
ethtool is an Linux/Unix command allowing to modify the NIC parameters. ethtool can be used to query and change settings such as speed, negotiation and checksum offload on many network devices, especially Ethernet devices.
1. Install ethtool
Install ethtool in Fedora and CentOS:
# yum install ethtool
Install ethtool in Debian:
# apt-get install ethtool
Install ethtool in Ubuntu:
# sudo apt-get install ethtool
Print This Post
How To Set Up a FTP server with ProFTPD in Ubuntu
File Transfer Protocol (FTP) is a network protocol used to exchange and manipulate files over a TCP/IP-based network. FTP is built on a client-server architecture and utilizes separate control and data connections between the client and server applications.
ProFTPD is a high-performance and scalable FTP server written from scratch, with a focus toward simplicity, security, and ease of configuration.
ProFTPD Features:
- Single main configuration file, with directives and directive groups
- Per directory “.ftpaccess” configuration similar to Apache's ".htaccess".
- Easy to configure multiple virtual FTP servers and anonymous FTP services.
- Anonymous FTP root directories do not require any specific directory structure, system binaries or other system files.
- Designed to run either as a stand-alone server or from inetd/xinetd, depending on system load.
- No SITE EXEC command. In modern Internet environments, such commands are a security nightmare. ProFTPD does not execute any external programs at any time. The source is available (and must always be available) for administrators to audit.
- Hidden directories and files, based on Unix-style permissions or user/group ownership.
- Runs as a configurable non-privileged user in stand-alone mode in order to decrease chances of attacks which might exploit its "root" abilities
- Logging and utmp/wtmp support with extended logging available.
- Shadow password suite support, including support for expired accounts.
- Modular design, allowing server to be extended easily with modules. Modules have been written for SQL databases, SSL/TLS encryption, LDAP servers, RADIUS support, etc.
- IPv6 support.