Archive for April, 2009

/tmp folder permissions changing after reset / reboot in BackTrack 3 and 4

Posted in Uncategorized on April 29, 2009 by HydTech

KDE requires the /tmp directory to have the correct permissions (1777) for a user to log in or it will give you an error saying: “call to Inusertemp failed. temporary Directories Full?”. For this you have to change the folder permissions of /tmp by:
chmod 1777 /tmp

This will give permissions of drwxrwxrwt. One problem I was having with BackTrack was that after every reboot, the permission would get set back to dwrwxr_xr_x. I realized this was happening due to BackTrack using the aufs file system to mount root. The aufs or AnotherUnionFS is used on the live CD to make it appear as writeable but in reality the media is physically read only.

To eliminate this problem, open fstab:
kwrite /etc/fstab

And replace the aufs line with your device and the correct file system.
For example: /dev/sda8 / ext3 defaults 0 0

Advertisements

How to add new users to BackTrack 3

Posted in Uncategorized on April 27, 2009 by HydTech

After installing BackTrack, it is important that you change the default password for security reasons. Also, you might want to add a user to the system so you can avoid using the root login as you don’t want to screw things up accidentally.

To add a new user, open up a Konsole and type:

adduser

This will guide you through the process of adding a new user.

adduser

keep hitting enter for all default values and select a good password:

adduser1

your user is created but KDE still won’t let you log on because /tmp does not have the correct permissions. you will get an error saying “call to Inusertemp failed (temporary Directories Full?)”

To set the correct permissions type:
cd .. to go up one directory

chmod 1777 /tmp to set the correct permissions on the tmp dir. * see UPDATE *
adduser2

now you can logoff root and login with your new user.

check here to install packages using slapt-get.

* UPDATE * – I found out on reboot these permissions get reset. To make permanent changes see here.

How to Install OpenOffice 3.0.1 in BackTrack 3

Posted in Uncategorized on April 22, 2009 by HydTech

goto openoffice.org and download the version for linux.

untar:
tar -xvzf OOo_3.0.1_LinuxIntel_install_wJRE_en-US.tar.gz

cd into directory with all the rpm files:
cd OOO300_m15_native_packed-1_en-US.9379/RPMS

convert all rpms to tgz:
rpm2tgz *.rpm
This step will take a while.

Install all tgz using installpkg tool:
installpkg *.tgz

openoffice will be installed under /opt

Now we have to place it in the K menu.
Right click on the K and click Menu Editor.
goto File -> New Submenu -> type OpenOffice
Right click on OpenOffice Menu and select new item.
Add a name, description and in the “Command” field, add ‘/opt/openoffice.org3/program/soffice’
In “Work Path” add /opt/openoffice.org3/program
save and close

You can repeat the steps to add Writer, Calc, Math, Draw, Impress and Base

How to install Mozilla Thunderbird and Opera browser in Backtrack 3

Posted in Uncategorized on April 21, 2009 by HydTech

Check my previous post on how to install slapt-get in BackTrack 3.

Now, you can use slapt-get to install packages from the slackware repositories. To install mozilla-thunderbird:

Make sure it exists in the repositories:

slapt-get --search thunderbird

if you find it, use the install parameter to install:

slapt-get --install mozilla-thunderbird-2.0.0.21-i686-1

snapshot2

For Opera, goto http://www.opera.com/download and download the latest tar.gz for Slackware.

untar the file:
tar -xvzf opera-9.64.gcc4-shared-qt3.i386.tar.gz
go into the folder and run install.sh
untar
That’s it !

How to install BackTrack 3 or 4 to hard drive along with Windows XP, Ubuntu, Fedora, openSuse on Lenovo Thinkpad X60

Posted in Uncategorized on April 21, 2009 by HydTech

moved to http://hydtechblog.com/2009/04/21/how-to-install-backtrack-3-or-4-to-hard-drive-along-with-windows-xp-ubuntu-fedora-opensuse-on-lenovo-thinkpad-x60/

How to Install packages with slapt-get or gslapt in BackTrack 3

Posted in BackTrack, Linux (Ubuntu) on April 21, 2009 by HydTech

Once BackTrack is installed on the harddrive, open the menu and goto K -> BackTrack -> Penetration -> Fast Track
type:
./fast-track.py -i
snapshot
Enter the Fast-Track updates menu (1).
Update everything (9).
snapshot1

After the update finishes, select the Installation menu (8).
Install everything (8).
Go back to the Installation menu, select Install Slapt-Get (1)
Install Slapt-Get (2), then select update SlackWare (1).
Exit (10)

Now, you can use slapt-get to install packages from the slackware repositories. For example, if you want to install mozilla-thunderbird:
Make sure it exists in the repositories:
slapt-get --search thunderbird
if you find it, use the install parameter to install:
slapt-get --install mozilla-thunderbird-2.0.0.21-i686-1

snapshot2

you can also use the gui front-end for slapt-get, but it is broken by default in BT3. so let’s reinstall it:
slapt-get --install --reinstall gslapt

How To contribute to Ubuntu, report bugs at launchpad, find and install latest *.deb

Posted in Linux (Ubuntu) with tags , , , , , , , on April 2, 2009 by HydTech

Reporting bugs using launchpad:
http://www.freesoftwaremagazine.com/columns/ubuntu_help_reporting_bugs_using_launchpad

Finding and installing latest *.deb files:
http://www.freesoftwaremagazine.com/columns/weekly_tip_finding_installing_deb_files

Ways to contribute to Ubuntu:
http://meandubuntu.wordpress.com/2009/01/09/ways-you-can-contribute-to-ubuntu/

Become a GNOME translator:
http://adi.roiban.ro/2009/03/03/contribute-to-gnome-as-a-translator/

Another contributing thread:
http://ubuntuforums.org/showthread.php?t=896777

Ubuntu wiki about contributing:
https://wiki.ubuntu.com/ContributeToUbuntu