Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Sunday, December 29, 2013

Shutdown your ubuntu / Debian system with a USB Pendrive

Shutdown your ubuntu / Debian system with a USB Pendrive

It is for fun !!! and a utility!!!

First  find out the vendorId and productId of your USB stick:
$ lsusb
 
my output
Bus 002 Device 002: ID 13fe:3600 Kingston Technology Company Inc.  
 
here
13fe - vendor Id
3600 - Product Id

Now create a file in: /etc/udev/rules.d/
 
I was created file :  100-usb-device-action.rules 
Then add the following line.
ACTION=="add", ATTRS{idVendor}=="13fe", ATTRS{idProduct}=="3600", RUN+="/sbin/shutdown -h now"
 
Substitute your vendorid and ProductID
After saving the file . Just plug your USB Pendrive in any USB Port . Your System will Shutdown!!!!

Thursday, October 31, 2013

Nikto : Open Source Web Server Scanner for Ubuntu / Debian Linux


Nikto is an Open Source (GPL) web server scanner which scans your webserver against more than 6500 potentially dangerous files/CGIs, checks for outdated versions of over 1250 servers, and version specific problems on over 270 servers. It has a very good plugin support

What Nikto can do.

    SSL Support (Unix with OpenSSL or maybe Windows with ActiveState's
    Perl/NetSSL)
    Full HTTP proxy support
    Checks for outdated server components
    Save reports in plain text, XML, HTML, NBE or CSV
    Template engine to easily customize reports
    Scan multiple ports on a server, or multiple servers via input file (including nmap output)
    LibWhisker's IDS encoding techniques
    Easily updated via command line
    Identifies installed software via headers, favicons and files
    Host authentication with Basic and NTLM
    Subdomain guessing
    Apache and cgiwrap username enumeration
    Mutation techniques to "fish" for content on web servers
    Scan tuning to include or exclude entire classes of vulnerability
    checks
    Guess credentials for authorization realms (including many default id/pw combos)
    Authorization guessing handles any directory, not just the root
    directory
    Enhanced false positive reduction via multiple methods: headers,
    page content, and content hashing
    Reports "unusual" headers seen
    Interactive status, pause and changes to verbosity settings
    Save full request/response for positive tests
    Replay saved positive requests
    Maximum execution time per target
    Auto-pause at a specified time
    Checks for common "parking" sites
    Logging to Metasploit
    Thorough documentation

Official site
To install in ubuntu / debian
$ sudo apt-get install nikto

Full installation of nikto will offer lot of options
$ nikto will give the list of options

For simple test

$ sudo nikto -h www.yoursite.com

output will we like this
abc@abc-desktop:~$ sudo nikto -h www.xxxx.com
- Nikto v2.1.4
---------------------------------------------------------------------------
+ Target IP:          202.18.233.233
+ Target Hostname:    www.abcx.com
+ Target Port:        80
+ Start Time:         2013-10-32 08:29:09
---------------------------------------------------------------------------
+ Server: Apache/2.2.22 (Debian)
+ Retrieved x-powered-by header: PHP/5.4.4-14+deb7u5

+ Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0
- Allowed HTTP Methods: GET, HEAD, POST, OPTIONS, TRACE
+ OSVDB-877: HTTP method ('Allow' Header): 'TRACE' is typically only used for debugging and should be disabled. This message does not mean it is vulnerable to XST.
+ OSVDB-0: ETag header found on server, inode: 3965147, size: 2857, mtime: 0x433a88acc26c0
+ PHP/5.2.6-1+lenny3 appears to be outdated (current is at least 5.2.6RC4)
+ mod_perl/2.0.4 appears to be outdated (current is at least 5.8)

Friday, July 19, 2013

How to Install FreeBasic For Beaglebone Black in Ubuntu and Debian Linux

FreeBASIC is a free/open source (GPL), 32-bit BASIC compiler for Microsoft Windows, DOS and Linux.

Now it is available for Beaglebone Black Arm7

How to install FreeBASIC in Debian

BBB: debian wheezy
download: fbc-bbb-debian.tar.gz

cd fbc-bbb-debian & sudo ./install.sh -i
fbc -arch arm7 -gen gcc xxx.bas


uninstall:
sudo ./install.sh -u


How to install FreeBASIC in UBUNTU 


download: fbc-bbb-ubuntu.tar.gz
cd fbc-bbb-ubuntu & sudo ./install.sh -i
fbc -arch arm7 -gen gcc xxx.bas

uninstall:
sudo ./install.sh -u

FreeBasic Documentation : http://www.freebasic.net/

https://www.facebook.com/BeagleboneBlack

Tuesday, June 18, 2013

How to Convert Document Formats in Ubuntu / Debian Linux : unoconv

unoconv converts between any document format that OpenOffice understands.

It supports  document formats like Open Document Format (.odt), MS Word (.doc), MS Office Open/MS OOXML (.xml),LaTeX 2e (.ltx), pdf, HTML, XHTML, RTF, Docbook (.xml), and more.

 It also supports image files JPG, BMP,  GIF, PNG and more
 unoconv supports Spreadsheet file formats also

Requirements
unoconv is written in python. It needs a recent LibreOffice or OpenOffice with UNO bindings.


It Supports OpenOffice on Linux, Windows and MacOSX

How to install unoconv in ubuntu / debian Linux

$ sudo apt-get install unoconv

Usage

it is a command line utility. read man page for more details

    unoconv -f pdf your-document.odt
    unoconv -f doc your-document.odt
    unoconv -f xsl your-spreadsheet.csv
    unoconv -f jpg your-image.png
   

Sunday, June 9, 2013

How to Install and Test Beaglebone black in Ubuntu / Debian Linux



The Use and working of Beaglebone Black is very simple. You need only BBB and a USB cable (Supplied with BBB). In Ubuntu / Debian Linux you just download this file Download here and install it.

How to install downloaded file.

Open a terminal and type the following

$ chmod 755 mkudevrule.sh
$ ./mkudevrule.sh

This script will create a new file called 73-beaglebone.rules in /etc/udev/rules.d/

 Now  Plug your BBB to Ubuntu System through the USB Cable

Now BBB establish an adhoc Network Connection through USB

After a short time check the connectivity


The BBB will have an IP address, so using Chrome or Firefox (not Internet Explorer) connect to the URL http://192.168.7.2 (Chrome or chromium Browser)

Now You can see a web page served by BBB.
Top of the web page you can see the serial number of your board


Now Open a terminal and type

$ ssh root@192.168.7.2

Now it will prompt a security warning  type 'yes' or click on 'yes'

Now it will ask for PASSWORD.  There is no password so press Enter




Monday, September 10, 2012

How to set Password in Raspberry Pi (Raspbian)

The Default Password of  Raspberry Pi image of Debian Squeeze, Wheezy is
        
           username: pi
           password: raspberry 
Now How to Change your password :
Type 

pi@raspberrypi: ~$ passwd

(current) UNIX password: raspberry   # default (Current) Password

Enter new UNIX password: newpassword   # Your New Password Type here

Retype new UNIX password: newpasssword   #Repeat Your New Password.



Saturday, September 5, 2009

Howto use Windows Shared HP printer in Ubuntu / Debian Linux (using samba)

Most of the Computer Labs in Industry and Education Institutions are equipped with Windows. So Printers are also connected to Windows machines. Here a Simple howto for sharing windows shared printers for Linux users. I have test with a HP1015 printer installed in an Windows XP machine and shared. My linux box is ubuntu 9.04 ( I also tested with ubuntu 8.04, 8.10 , debian 4.0 and 5.0).

First install samba

apt-get install samba

apt-get install smbfs

apt-get install cupsys

after this installations

open a browser and type

http://localhost:631/

you will get a cups administration page

select add printer

then type Name : anything
Location : anything
description : anything

now you will get a dropdown menu

select windows printer via samba

now there is text box Device URI

type smb://shibuscomputer/1015 ( see I have a shared hp 1015 printer at computer name called shibuscomupter and share name of printer is 1015 with permision to all)

after selecting uri u will get a page for selecting make

select your printer make in my case it is HP

next page select model HP Laserjet series PCL 4/5 CUPS v 1.2 (en)

now printer installation is over

you can make a test print now











Tuesday, September 30, 2008

Debian and Ubuntu Linux Package Management

Debian and Ubuntu Linux Package Management

Update package list

apt-get update

Update Full System

Apt-get upgrade

Install new software from package repository

Apt-get install pkg

Install new software from package file

dpkg -i pkg

Update existing software

apt-get install pkg

Remove unwanted software

apt-get remove pkg

Search by package name

apt-cache search pkg

Search by string

apt-cache search string

List installed packages

dpkg -l

List repositories

cat /etc/apt/sources.list

Add /Remove repository

edit /etc/apt/sources.list


Thursday, August 9, 2007

TTF fonts in debian etch

TTF font installation in etch is simple.

apt-get install xfstt

then copy ttf files to

/usr/share/fonts/truetype/

now it is ok

restart xfs (ctrl+alt+backspace)

you can install malayalam fonts in this way.

Wednesday, August 8, 2007

Webmin in debian etch

install packages
  1. access wemin/usermin official website (http://www.webmin.com/) and get the latest debian packages, or simply run:
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.350_all.deb
    wget http://prdownloads.sourceforge.net/webadmin/usermin_1.280_all.deb
  2. first install their dependent packages:
    apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl
  3. therefore you can install webmin/usermin package without error message:
    dpkg -i webmin_1.350_all.deb usermin_1.280_all.deb
  4. also update your rc*.d and so webmin/usermin will startup correctly, and able to manage by using rcconf:
    rm -rvf /etc/rc*d/S*webmin*
    rm -rvf /etc/rc*d/K*webmin*
    rm -rvf /etc/rc*d/S*usermin*
    rm -rvf /etc/rc*d/K*usermin*
    update-rc.d -f webmin defaults 99 01
    update-rc.d -f usermin defaults 99 01
  5. you can now log into your webmin interface by https://www.example.com:10000 for webmin, and https://www.example.com:20000 for usermin
some follow up and tips
  1. remember to set auto-logout: the original debian's webmin package come with 15min auto-logout as default setting. this is a very good idea for increase the security level.

    go to "Webmin -> Webmin Configuration -> Authentication", active "Auto-logout after..." and set to 15min (case of webmin), or "Webmin -> Usermin Configuration -> Authentication", active "Auto-logout after..." and set to 15min (case of usermin)

  2. remember to set IP access control: as like as the case of above, original debian's webmin package come with only 127.0.0.1 (localhost) restricted access to webmin as default setting.

    go to "Webmin -> Webmin Configuration -> IP Access Control", click "Only allow from listed addresses", set to 127.0.0.1 and 192.168.0.0/16 (optional, you should fill in your LAN network) (case of webmin), or "Webmin -> Usermin Configuration -> IP Access Control", click "Only allow from listed addresses", set to 127.0.0.1 and 192.168.0.0/16 (case of usermin)

more details http://edin.no-ip.com/html/?q=webmin_usermin_debian_etch_mini_howto