Sunday 28 September 2008

How to speed up Ubuntu

http://ubuntuforums.org/showthread.php?t=89491

================

Problem with HAL

source:http://www.teknopipo.nl/telco/files/tag-ubuntu.html
=================================
HAL bug in Ubuntu
18/05/08 18:50 Filed in: network configuration
This weekend I finally pulled myself together and upgraded my home server to Ubuntu 8.04, also known as Hardy Hudson. After a seemingly painless upgrade process, I rebooted and logged in, and the system presented me with the following error message:

Internal error: HAL Failed to initialize

Annoying as this message may be, the biggest problem was that Hardy would no longer mount any of my external drives. After nosing around on the web, I've seen several suggested solutions, varying from tweaking etc/init.d scripts, reconfiguring HAL to completely reinstalling Ubuntu. The problem also occurs on earlier kernels. If I had to guess, I'd say the error is somehow related to the problems I've been having with an external USB drive from Freecom (400GB). Basicly I've been repartitioning and reformatting that thing in every format imaginable, but I can't seem to get it to behave properly... HAL means Hardware Abstraction Layer, and most people I've seen reporting the above error have some kind of issue with a faulty DVD drive that fails to mount, for example.

Of course the first thing I tried was to remove the external USB drive and reboot to see if that solved anything, and it didn't. Maybe my buggy drive messed up some configuration file or something, so I then tried the suggested solution to reinstall HAL which seemed to solve the problem to some extent. I no longer got the error, but my desktop failed to initialize properly, I was just getting a blank screen and a task bar. And after a reboot the error was back again, so not much luck there.

Another suggested solution was to sudo mkdir /var/run/PolicyKit, whatever the hell that means. I checked to see if that dir was there, and it was, so no need to run the mkdir.... but what I did notice, was that its ownership was set to polkituser:polkituser. After typing groups in a terminal, I noticed that my userid was not in the polkituser group, so I figured that was the problem. And it was. After I typed...

sudo usermod -a -G polkituser [myuserid]

...I relogged in and everything was working flawlessly. Don't forget the -a option or you'll fuck up your system. Out.

===================
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/212271

http://www.uluga.ubuntuforums.org/showthread.php?t=365442&page=3

===============
SOURCE:
http://www.danielhardy.com/blog/making-friends-with-hal/
As of late I have been having some trouble with HAL(Hardware Abstraction Layer). I
finally found the solution and decided I would post it here in case anyone else my need it. The symptoms of this problem are simple. When Gnome boots up you get an error stating “failed to initialize HAL”. There are many problems that can cause this error but the one that I keep running into was tricky to find but extremely easy to resolve.

It boils down to a boot order issue where dbus and HAL are scheduled to boot at the same time. The problem with this is that often HAL requires dbus to be up and running. To figure out if this is the specific cause you can take a look at the /etc/rc2.d/ folder. You simply want to make sure HAL’s three digit prefix comes after dbus’s. For example “S12dbus” followed by “S13hal”. If it doesn’t simply execute something like the following command in the terminal. Make sure you change it to match your system.

sudo mv /etc/rc2.d/S12hal /etc/rc2.d/S13hal

If you have ran into this problem I hope this will help you get it fixed.

Thursday 25 September 2008

How to join Ubuntu/Samba to a Windows 2003 Active Directory domain

SOURCE: http://www.onnoot.com/wiki/how_to_join_ubuntu_samba_to_a_windows_2003_active_directory_domain
==================
How to join Ubuntu/Samba to a Windows 2003 Active Directory domain

Ingredients:

*
A Windows network with an Active Directory server (like Windows Server 2003)
*
Ubuntu Linux 5.10 installed
*
TCP/IP setup properly (the Linux machine taking its address by DHCP from the Windows server)
*
No firewall yet on the Linux machine! First get it working, then secure it.

More info:

*
http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/domain-member.html
*
http://justlinux.com/forum/archive/index.php/t-118512.html

1. Installing

We assume that Ubuntu Linux has been installed.

Install the following packages with the Synaptic Package Manager. You may need to specify “universe” as an extra source for packages.

*
Samba (version 3):
o
samba
o
samba-common (installed by default)
o
smbclient (installed by default)
o
winbind
*
Kerberos:
o
krb5-config
o
krb5-user
*
... and any packages that might be needed to meet dependencies.

2. Edit configuration files

Edit the following configuration files. We assume the following:

*
The local DNS domain is mycompany.local
*
The Windows 2003 server is obelix.mycompany.local

/etc/samba/smb.conf

[global]
security = ADS
realm = MYCOMPANY.LOCAL
workgroup = mycompany
password server = obelix.mycompany.local
wins support = no
wins server = 10.0.20.202
invalid users = root
# Winbind settings
idmap uid = 10000-20000
idmap gid = 10000-20000
# For testing
debuglevel = 2

# A shared folder for testing purposes
[SharedFolder]
path = /home/onno2/Shared_Folder
available = yes
public = yes
writable = yes
force create mode = 0666
force directory mode = 0777

Make sure the path (/home/onno2/Shared_Folder or whatever you choose) exists and that the rights are set properly (chmod 777 or something similar)
/etc/krb5.conf

[libdefaults]
default_realm = MYCOMPANY.LOCAL
krb4_config = /etc/krb.conf
krb4_realms = /etc/krb.realms
kdc_timesync = 1
ccache_type = 4
forwardable = true
proxiable = true
# The following libdefaults parameters are only for Heimdal Kerberos.
v4_instance_resolve = false
v4_name_convert = {
host = {
rcmd = host
ftp = ftp
}
plain = {
something = something-else
}
}
[realms]
MYCOMPANY.LOCAL = {
kdc = obelix.mycompany.local
admin_server = obelix.mycompany.local
}
[domain_realm]
.mycompany.local = OBELIX.MYCOMPANY.LOCAL
mycompany.local = OBELIX.MYCOMPANY.LOCAL
[login]
krb4_convert = true
krb4_get_tickets = true

/etc/nsswitch

The only change here was adding winbind twice.

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat winbind
group: compat winbind
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis

3. Start or restart services

/etc/init.d/samba restart
/etc/init.d/winbind restart
4. Join domain

net ads join -U administrator If this doesn’t work, check the logs in Linux (/var/log/samba/*) and Windows.
5. Test your setup

testparm to check if your smb.conf has a correct syntax.
kinit onno@MYCOMPANY.LOCAL test if kerberos works properly.
wbinfo -u should give a list of users.
wbinfo -g should give a list of groups.
getent passwd should give a list of users in the passwd style.
getent group should give a list of groups.
ls -ltr /var/log/samba gives a list of log files, sorted by time of last change.
smbclient -L -U onno should give you a list of available shares.

If this all works properly, try to access the share (/home/onno2/Shared_Folder) from any Windows machine in the domain by using network neighbourhood

Tuesday 23 September 2008

Enabling USB support for VMware Server in Hardy Heron

SOURCE: http://maketecheasier.com/enabling-usb-support-for-vmware-server-in-hardy-heron/2008/05/05
===============================================

After installing VMware Server on Hardy heron, if you find that your virtual machine cannot detect any USB devices on the host, that is because Ubuntu has removed the support for /proc/bus/usb/*.

The following is the way to solve this issue:

Open up a terminal and type

gksu gedit /etc/init.d/mountdevsubfs.sh

In the window that pop up, scroll to line 40 and look for the following code:

#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb

Uncomment them by removing the ‘#’ infront of each line of the code.

Save and exit.

Restart the module

/etc/init.d/mountdevsubfs.sh start

Done. Your virtual machine should be able to detect USB device now.

---------

Monday 22 September 2008

WEB cracking with Intel 3945abg

-Download and install aircrack-ng rc1 (http://download.aircrack-ng.org/aircrack-ng-1.0-rc1.tar.gz)
-Download & install iw (http://www.aircrack-ng.org/doku.php?id=mac80211)
-Download compat wireless driver here (http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-old.tar.bz2)
-Test if your wireless card support injection ("aireplay-ng --test ")

Friday 19 September 2008

Wireless driver for Intel 3945abg on wireless cracking

http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-old.tar.bz2

Note: it is working on the hp nx6320.

Thursday 18 September 2008

Cannot power on Vmware machine

when the guest system is on an ntfs Hd partition, it can't be powered on.

Solution:
Set "mainMem.useNamedFile=FALSE" in the .vmx file

Monday 15 September 2008

Error when executing lvcreate: "/proc/misc: No entry for device-mapper found"

hen I opened the error, and at the top it said

/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.

Remember to load the modules into the kernel.

$ sudo modprobe dm_snapshot
$ sudo modprobe dm_mirror
$ sudo modprobe dm_crypt

Backup partition table

Copying Partition Tables with sfdisk
To backup or replicate a disk’s partition table, use sfdisk:
$ sudo sfdisk –d /dev/sda > sda-table Back up partition table to file
$ sudo sfdisk /dev/sda < sda-table Restore partition table from file
$ sudo sfdisk –d /dev/sda | sfdisk /dev/sdb Copy partition table from disk to disk

Friday 12 September 2008

Eject usb drive in ubuntu

sudo fuser -k /media/usbdrive

Thursday 11 September 2008

Install Logitech Quickcam Pro for Notebook

For Hardy (Ubuntu-8.04) and Gutsy (Ubuntu-7.10)
Code:

sudo apt-get install subversion build-essential linux-headers-$(uname -r) &&
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk &&
cd trunk &&
make &&
sudo cp -av /lib/modules/$(uname -r)/ubuntu/media/usbvideo/uvcvideo.ko /lib/modules &&
sudo install -v -m644 uvcvideo.ko /lib/modules/$(uname -r)/ubuntu/media/usbvideo/uvcvideo.ko &&
sudo depmod -ae $(uname -r)


REBOOT

--------------
SOURCE: http://ubuntuforums.org/showthread.php?t=593231

Tuesday 9 September 2008

Installing Metasploit

Installing Metasploit

Before installing metasploit we need to install the following packages:

$ sudo apt-get install ruby libruby rdoc

$ sudo apt-get install libyaml-ruby

$ sudo apt-get install libzlib-ruby

$ sudo apt-get install libopenssl-ruby

$ sudo apt-get install libdl-ruby

$ sudo apt-get install libreadline-ruby

$ sudo apt-get install libiconv-ruby

$ sudo apt-get install rubygems

Once the dependencies have been installed, we are ready to install metasploit.

We now need to download the metasploit 3.0. Use the following link for download:

http://framework.metasploit.com/msf/downloader/?id=framework-3.0.tar.gz

Accept the license.

The location (for download) is not important. After the download is complete we need to untar it:

$ tar -xvzf framework-3.0.tar.gz


Updating Metasploit

Before we run metasploit, its a good idea to update its database. Change to metasploit folder:

$ cd metasploit-3.0

Update:

$ svn update

Note: in case you don't have subversion installed use the following command:

$ sudo apt-get install subversion


Running Metasploit

To run metasploit use the following command:

$ ./msfconsole

Friday 5 September 2008

How to VMWare Server 1.0.6 and 2.0 RC1 in Ubuntu 8.04

http://ubuntuforums.org/showthread.php?t=779934

http://www.salatti.net/how-to-vmware-server-106-on-ubuntu-hardy-step-by-step/

Thursday 4 September 2008

Howto crack (or hack) a wireless network with Wired Equivalent Privacy (WEP)

Howto crack (or hack) a wireless network with Wired Equivalent Privacy (WEP)

September 27, 2006 at 20:22 · Tags: Crack, d-link, hack, linksys, Linux, OSX, security, Vista, WEP, Windows, wireless networking, xp

Aircrack-ng logo

WEP was intended to provide comparable confidentiality to a traditional wired network (in particular it does not protect users of the network from each other), hence the name. Several serious weaknesses were identified by cryptanalysts — any WEP key can be cracked with readily available software in two minutes or less — and WEP was superseded by Wi-Fi Protected Access (WPA) in 2003, and then by the full IEEE 802.11i standard (also known as WPA2) in 2004. Despite the weaknesses, WEP provides a level of security that can deter casual snooping. Wikipedia

It’s fairly easy to crack a WEP encrypted wireless network. Infact the WEP encryption has some serious flaws in its design, flaws that make it easy and fast to crack or hack.

Install aircrack-ng - on Debian Etch by:

sudo apt-get install aircrack-ng

Then start aircrack-ng to look for wireless networks:

sudo airodump-ng eth1

Then notice the channel number of the wireless network you want to crack.

Quit aircrack-ng and start it again with med specific channel number to collect packages faster:

sudo airodump-ng -c 4 -w dump eth1

Then wait and let it collect about 500K IVS and the try the do the actual crack:

sudo aircrack-ng -b 0a:0b:0c:0d:0e:0f dump-01.cap

The MAC after the -b option is the BSSID of the target and dump-01.cap the file containing the captured packets.
HACKING COMMUNITIES:
hackerthreads.org security • View topic - HELPFU... http://www.hackerthreads.org/viewtopic.php?f=1...
1 of 19 08/22/2008 06:05 PM
http://www.tgs-security.com
http://www.anomalous-security.org
http://www.governmentsecurity.org
http://www.brain-hack .org
http://www.hack erscenter.com/
http://www.houseofmaveric.com
http://www.cheatforums.tk
http://www.warindustries.com
http://www.humptyhump.com/index.php
TROJANING COMMUNITIES:
http://www.cruel-intentionz.com
http://www.evileyesoftware.com
http://www.nak edcrew.net
http://newbielair.baselair.com
http://www.plexusataxia.net/bbs/
http://evileyesoftware.com/forums/
http://nak edcrew.net/mboard//index.php
http://mosuck er.net
http://www.opensc.ws/
http://chasenet.org/community/
http://illmob.org
http://j3n7il.net/forum/index.php
http://lithiumrat.org/forums/
http://www.lommage.co.uk
http://www.elitec0ders.net/forum/
http://www.immortal-hack ers.com
http://www.critical-zone.com/
http://www.nuclearwinter.us/
http://nuclearwinter.mirrorz.com/
http://www.iamaphex.org/forums/
http://ilusion-free.com/
http://www.elitest.info/forums
http://www.cruel-intentionz.info/
http://ucc.elfnet.org/forum.php
http://gateofgod.com/forums
http://sinred.com/forums
http://digerati.sinred.com/forums/
http://euyulio.org/forums
http://www.censorednet.org/ipb/
NEED COMPUTER HELP? GO HERE: (One of my favorite sites)
http://forums.techguy.org
Just look at the statistics for the site:
Code: Select all
hackerthreads.org security • View topic - HELPFU... http://www.hackerthreads.org/viewtopic.php?f=1...
2 of 19 08/22/2008 06:05 PM
Threads: 321,134, Posts: 2,444,064, Members: 176,961
It's huge, your questions get answered within minutes.
http://www.securibox.net/phpBB2/portal.php
PROXIES:
http://www.proxysk y.com
http://www.samair.ru/xwww/proxy.htm
http://www.quickproxy.tk
http://www.onlinecheck er.freeproxy.ru/f ... _lists.php (small list, but updated every
hour, usually good proxies)
HACKING:
http://www.insecure.org (home of Nmap)
http://www.luck y-web.net
http://www.net-security.org
http://nouse.sytes.net/webdeface.html
http://nouse.sytes.net/computerhack ing.html
http://www.infosyssec.org/infosyssec/hackhow1.htm
http://whitehats.com/library/internic/index.html
http://www.sir.com/academics/gibbs/stud ... /guhl.html
LINUX:
http://www.userfriendly.org
http://www.linuxjournal.com/
http://www.linuxiso.org
http://www.distrowatch.com
http://www.linux.org
http://www.linuxquestions.org
http://www.madpenguin.org
http://www.happypenguin.org (great site for Linux games, many include source code!)
http://www.tlm-project.org (shameless plug, sorry
http://www.linmodems.org
http://www.linuxant.com (connexant windmodem drivers for linux)
http://www.linuxpack ages.net
http://www.linuxsecurity.com
EXPLOITS:
http://www.hoobie.net/security/exploits
http://www.dmoz.org/Computers/Hack ing/Exploits
http://www.exploits.org
hackerthreads.org security • View topic - HELPFU... http://www.hackerthreads.org/viewtopic.php?f=1...
3 of 19 08/22/2008 06:05 PM
http://www.k -otik .com/exploits
TELNET:
http://www.elhalf.com/forge.txt
http://www.tip.net.au/tip/help/htelnet.htm
http://www.walthowe.com/navnet/faq/telnet.html
http://www.icsd.k12.ny.us/infotech/faq/telnet.html
http://www.hack erthreads.org/phpbb/viewtopic.php?t=724
http://chiark .greenend.org.uk /~sgtatham/putty/
ASSEMBLY:
http://www.xs4all.nl/~smit/asm01001.htm
http://www.geocities.com/SiliconValley/ ... les01.html
http://brain-hack .org/forum/viewtopic.php?t=92
http://www.hack erthreads.org/phpbb/viewtopic.php?t=790
ASSEMBLERS:
http://eurosport.ifrance.com/joss/asmz.htm
NETWORKING:
http://www.homenethelp.com/web/howto/HomeNet-start.asp
http://punch.engr.wisc.edu/~orchard/net-tutorial/
http://www.winncom.com/html/wireless.shtml
http://www.lantronix.com/learning/tutorials/
http://docs.rinet.ru/TCP-IP/
C++:
http://www.cplusplus.com/doc/tutorial/
http://www.ecst.csuchico.edu/~beej/guide/net/html/
http://www.hotscripts.com/Detailed/11707.html
http://www.mysteries-megasite.com/linux/tutorials.html
http://cprogramming.com
http://cboard.cprogramming.com
http://www.bloodshed.net/devcpp.html
http://www.carbonize.co.uk /Tutorials/Cpp/lesson_1.php
MISC PROGRAMMING LINKS:
http://tutorials.beginners.co.uk /integr ... /187/vs_p/
http://stommel.tamu.edu/~baum/programming.html
http://www.programmingtutorials.com/main.asp
http://www.freeprogrammingresources.com/
hackerthreads.org security • View topic - HELPFU... http://www.hackerthreads.org/viewtopic.php?f=1...
4 of 19 08/22/2008 06:05 PM
http://www.vbtutor.net/vbtutor.html
http://plugin.laxmaniac/index.html
http://www.php.net
http://www.python.org
http://www.w3schools.com
http://www.osdir.com
http://www.angrycoder.com/
http://www.dotnetspider.com/
http://www.davesite.com/webstation/html/
http://devshed.com
http://forums.devshed.com
http://www.rohitab.com
SOFTWARE CRACKING/REVERSE ENGINEERING:
http://www.hnc3k .com/tutorialz.htm
http://www.hack erthreads.org/phpbb/viewtopic.php?t=757
http://www.t-gr.com/fotis/
BUFFER OVERFLOWS:
http://www.wbglink s.net/pages/reads/bofs/
http://www.elhalf.com/win32buffer.txt
NUMERAL RADIXES:
http://www.cplusplus.com/doc/papers/hex.html
HOW TO ASK QUESTIONS:
http://www.catb.org/~esr/faqs/smart-questions.html
http://nouse.united.net.kg/idiotguide.html
CUSTOM PCs, CASE MODS, OVERCLOCKING:
http://www.gruntville.com
http://www.infomaniak .it
http://www.CrazyPC.com
http://www.pctechtalk .com
http://www.extrememhz.com/
http://www.extrememhz.com/
http://www.extreme-modder.com/
http://www.maxitmag.co.uk /
http://www.kusanagiweb.com/
http://www.voidedwarranty.com/
http://www.comp-shop.com/
http://www.overclock ersworld.com/
http://www.twistedhardware.tk
http://www.xtremepccentral.com/
hackerthreads.org security • View topic - HELPFU... http://www.hackerthreads.org/viewtopic.php?f=1...
5 of 19 08/22/2008 06:05 PM
http://www.pcsynapse.com/
http://www.subzerotech.com/index/
http://www.modsynergy.com/
http://www.casemodworld.com/
http://www.oc-zone.com/
http://www.techtastic.ca/
http://www.xcsystems.com/
http://www.mypcmadness.com/
http://www.cybercpu.net/
LINKS WITH MORE LINKS:
http://www.project-hack .org/tutorials.html
http://fux0r.phathookups.com/textfiles/ (A SHIT LOAD of text files, some really
interesting ones in there, covering a mass of subjects, check it)
http://www.beginningtoseethelight.org/
Actually it contains few topics but with adetailed discussion
"newbies will panic seeing this "
For Network ing , ccna , ccnp and windows network ing :
http://www.net130.com
its chineese , though you will find it so easy to deal with it contains various educational
media concerning ccna,ccnp,.....oracle for example i found this inside it :
http://www.net130.com/ccnp-labs/index.htm
http://iws.ccccd.edu/sbutler/
cisco educational ppt slides " ccna,ccnp,....." , its great .
http://www.petri.co.il/
Anothe amazing site talk ing about windows operating system, security and various
other topics .
http://www.windowsnetwork ing.com/
learn every thing about windows network ing many articles and amazing information .
hackerthreads.org security • View topic - HELPFU... http://www.hackerthreads.org/viewtopic.php?f=1...
6 of 19 08/22/2008 06:05 PM
For Hack ing and Security :
http://whoppix.hack ingdefined.com/index.php/Demos
Awonderfull movies explaining hack ing ,web crack ing and even sniffing remote traffic
.
I guess the whole site is simple and rather fine .
http://www.americasleastwanted.com
some good tutorials in electronics and phreak ing .
http://www.theargon.com
An amazing archive containing encryption tutorials , tools , source codes you will love
it .
For emails
http://www.mailnation.net/
1000 GBs email with various advantages for free .
http://www.yousendit.com/
send up to 1gb file to any email .
For guys who are fond of mak ing their live windows distribution and editing their own
distributions .
http://www.reatogo.de/Reatogo_Downloads.htm
http://www.nu2.nu/pebuilder/
http://www.xppe.com/
http://pcfreak s.big-clan.net/bartpe/pebuilder.shtml
For programmers
http://www.exhedra.com/exhedra/planetsourcecode/cd.aspx
http://www.planet-source-code.com/
hackerthreads.org security • View topic - HELPFU... http://www.hackerthreads.org/viewtopic.php?f=1...
7 of 19 08/22/2008 06:05 PM
just choose alanguage and get many source codes for many projects this site is many
awards winning .
Who can live without book s ?!!!
http://www.blueportal.org
book s ............. many book s " needs registeration "
http://www.flashdance.cx/book s/
Hack ing Videos
===========
http://www.milw0rm.com/video/
http://www.forcehack er.com/videos.html
http://www.irongeek .com/i.php?page=secu ... llustrated
http://livesploit.com/resources.html
http://www.blackhat.com/html/bh-multime ... index.html
http://video.google.com/videosearch?hl= ... a=N&tab=wv