Tuesday, July 7, 2015

Installing Webmin on Debian 7.1 (Wheezy)

Step to install Webmin on Debian 7.1:
1. Download Webmin installer for Debian from www.webmin.com
2. run as root (superuser)
3. install dependency packages
# apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl apt-show-versions
4. install webmin
# dpkg -i ./webmin_1.630_all.deb
5. tes your installation using your browser https://localhost:10000
 Note: Don't forget to create webmin admin group and its user :)

How to create a WHM user without an associated domain

To create a user account in WHM that is not associated with a domain:

  1. Log in to the server as the root user via SSH.
  2. Create a user with the system utility with the following command:
    # adduser [username]
  3. Set a password for the user with the following command:
    # passwd [username]
  4. Create an entry in the resellers file with minimal permissions with the following command:
    # echo "[username]:all" >> /var/cpanel/resellers
  5. Log in to WHM as the root user.
  6. Navigate to Home >> Resellers >> Edit Reseller Nameservers and Privileges.
  7. Select username from the list, Click Submit.
  8. Apply the desired permissions to the user, Click Save.

 Note: replace [username] with Linux user id / login
Src: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/CreateAccountwithoutdomain
CLOSE INFO

Tomcat 6.x User Roles

file name [tomcat 6 folder]//conf/tomcat-users.xml
Available Rules
  • <role rolename="manager-gui"/>
  • <role rolename="manager-script"/>
  • <role rolename="manager-jmx"/>
  • <role rolename="manager-status"/>
WARNING: users with the manager-gui role should not be granted either the manager-script or manager-jmx roles
Example configuration
<tomcat-users>
  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="manager-status"/>
  <user username="example" password="example" roles="manager-gui"/>
</tomcat-users>

How to Remove REVSCI.NET Cookie from Your Computer

REVSCI.NET is categories as tracking cookies. Be Aware of the Following Tracking Cookie Companions:
allyes.com, webstat.net, Sex.Cookie, activemeter.com, beatle.org.
Tracking Cookies
Normally, cookies, which are small text files that certain Web sites leave on computers to store information identifying users and customize Web site content for them (such as the user’s Web site settings and preferences, a list of visited pages, computer details, and shopping card information), are harmless. However, some cookies may be used to track and transmit browsing preferences or other private information to online marketers and spammers.
To detect / delete revsci.net cookie in Mozilla Firefox
  1. From the Tools menu, select Options
  2. In the upper section of the Options window, click Privacy
  3. In the Cookies tab, click Show Cookies or remove individual cookies link
  4. In the Cookies window, enter revsci.net in the Search field and run a search, or you can scroll down the list to check whether the revsci.net cookie is present there
  5. To delete the revsci.net cookie:
    1. Select it from the list
    2. Press Remove Cookie button
To detect / delete revsci.net cookie in Google Chrome 
  1. From the Chrome menu [Google Chrome Menu Button] on the browser toolbar choose Settings
  2. Click Show Advanced Settings... link
  3. In the Privacy section, click Content settings
  4. Click All cookies and site data... button
  5. Start typing revsci.net cookie name in the Search cookies field and cookie list will be automatically filtered, or you can scroll down the list to check whether the cookie exists
  6. To delete the revsci.net cookie:
    1. Hover the mouse cursor over cookie name in the list to highlight it
    2. Click X button that appears on the right corner
To block revsci.net cookie in Mozilla Firefox 
  1. From the Tools menu, select Options
  2. In the upper section of the Options window, click Privacy
    1. In the History group choose Use custom settings for history item from the Firefox will field and Click on Exceptions
    2. For older Firefox versions in the Cookies tab, click Exceptions
  3. In the new Exceptions - Cookies window, enter revsci.net in the Address of Website field and click Block or Disable
To block revsci.net cookie in Google Chrome
  1. From the Chrome menu [Google Chrome Menu Button] , on the browser toolbar, choose Settings
  2. Click Show Advanced Settings... link
  3. In the Privacy section, click the Content settings
  4. Click Manage Exceptions... button
  5. Enter revsci.net in the Hostname pattern (located at the left corner)
  6. Choose Block from the Behavior field (on the right)
Resource: http://www.exterminate-it.com/malpedia/remove-revsci-net

How to install Raspbian Wheezy to SD Card for Raspberry-pi using Debian Machine

Raspberry-pi is a community product for System On Chip (SOC). It's uses ARM Processor with low power usage. We can say, it's absolutely green computing. Unfortunately, the performance was poor, may be we can find more powerful 4, 6 or 8 core ARM with low power usage. 
This is how I install raspbian on raspberry-pi:
  1. Download raspbian form official site http://www.raspberrypi.org/downloads/
  2. From Debian open terminal as a root privilage
  3. If you dont't have image writer to SD-Card, install this pacakge first # apt-get install dcfldd
  4. Insert your SD-Card and find out where it's mounted by your Debian
    # dmesg
    [  995.384415] mmc0: new high speed SDHC card at address aaaa
    [  995.384943] mmcblk0: mmc0:aaaa SU08G 7.40 GiB
    [  995.390744]  mmcblk0: p1
  5. Unmount SD Card
    # umount /dev/mmcblk0
    umount: /dev/mmcblk0: not mounted
  6. Copy your Raspbian image into SD Card
    # dcfldd bs=4M if=[folder_input_file]/2013-09-25-wheezy-raspbian.img of=/dev/mmcblk0
  7. Make sure the SD-Card is writen properly
    # sync

Note:
Copying image may take a long time, it's size up to 2.96Gigabyte