Howto Recover a Linux Root Password

This post is intended for users that forgot the root passwords or can’t use it due to other problems (corrupted file /etc/passwd or whatever). Can also be used to gain unauthorized to linux machines, but don’t do that.

What to do
Boot using a recovery CD or DVD.

Mount the drive

mount /mnt /dev/sda2

Replace the existing root password with an empty one

sed /^root/s/.*:root:/root::0:0:root:/ /mnt/etc/passwd

And reboot – and you are done ;-)

VN:F [1.8.5_1061]
Rating: 9.0/10 (2 votes cast)

Related posts:

  1. Howto: How to Reset the MySQL Root Password
  2. Recover (Crack) a password from a Microsoft Access Database (mdb)
  3. Crack or Recover Password Protected Excel Spreadsheet
  4. Crack or Recover Read-only Password Protected Word Document
  5. HackerGuide: Crack Password Encrypted Zip-files
  6. How to hack Windows password with Ophcrack
  7. Howto Create a libstdc++ Compat on Debian (e.g. libstdc++-libc6.2-2.so.3)
  8. Crack zip password with fcrackzip
  9. Password Manager – based on gnupg
  10. Crack Windows Password

Comments

Combine Multiple PDFs Into One File

From time to time it is very useful to combine multiple PDF documents into one file.

Install gs (ghostscript) and pdftk (tool for manipulating PDF documents)

sudo aptitude install gs pdftk

Now we will see one example, which shows how to combine a few pdf files; 1.pdf,2.pdf,3.pdf.

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined_pdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf

If you want to know more options available for gs command check the gs man page

VN:F [1.8.5_1061]
Rating: 10.0/10 (1 vote cast)

Related posts:

  1. Upgrading to Ubuntu 9.04
  2. Ubuntu Netboot and Netinstall with PXE
  3. Bash shortcuts tips and tricks
  4. Run Single Commands on a SSH-based Server
  5. dos2unix on Ubuntu and Debian
  6. The VMware house of cards
  7. Rethinking the GUI (Graphical User Interface) and the CLI (Command Line Interface)
  8. Crack pdf password with pdfcrack
  9. Track file downloads and outgoing links with Google Analytics
  10. How to mount bin / cue image files in Linux

Comments

Top 10 Free Windows 7 Applications

  • 7-Zip file archiver – a polished, quickly, and efficient file archiver. Supports the following formats, 7z, ZIP, GZIP, BZIP2, TAR, RAR, CAB, ISO, ARJ, LZH, CHM, MSI, WIM, Z, CPIO, RPM, DEB and NSIS.
  • Infra Recorder – User-friendly and lean recorder suite for CD / DVD / HD DVD / Blu-ray. Supports also creation of music CDs from MP3 files directly.
  • VLC Player – The best and most user-friendly film and video player. Simply a must have.
  • Launchy – A so called key-stroke launcher. Makes it smart and easy to start programs in Windows just like Quicksilver does it for Mac and Gnome Do for Gnome under Linux.
  • Paint.NET – Good, polished, and fast photo processing and editing program. Smarter and more user friendly than Adobe Photoshop ;-)
  • PDFCreator – Easy and quick program to create PDF files. PDFCreator easily creates PDFs from any Windows program. Use it like a printer in Word, StarCalc or any other Windows application.
  • Notepad++ – Wonderful and quick editor for text and various programming languages.
  • uTorrent – BitTorrent client used to download movies, software and music albums from the peer to peer net. The stuff for download can often be found on thepiratebay.org or torrentz.com.

  • Firefox – Quick and easy to use browser. A Must have on Windows 7.
  • Picasa – Easy and simple program for managing and storing photos and photo albums.
  • iTunes – super duper program managing music collections, it can handle tons of mp3 files ;-)
  • VirtualBox – easy and fast virtual machine that can be used to test Linux distributions, and to install windows inside another windows ;) – Fancy, fancy and quite usable.
  • OpenOffice – complete office suite containing; Word processing, Spreadsheets, Presentation editor, Drawing, Database programs and etc. A must have, and it works better than Microsoft Office.
  • Inkscape – Drawing program for drawing vector drawings (logos and such things).
  • Scribus – Polished, user-friendly DTP program, used to create brochures, catalogs, reports, articles, etc.
VN:F [1.8.5_1061]
Rating: 9.0/10 (1 vote cast)

Related posts:

  1. Seamless Windows Applications on Ubuntu Linux Using VirtualBox
  2. What is the coolest thing you can do using Linux that you can’t do with Windows or on a Mac?
  3. Windows Developers Begin Slow Defection to Linux
  4. Xen Howto: Install Windows
  5. Crack pdf password with pdfcrack
  6. Howto Crack and Remove Windows Media Video (WMV/ASF) and Audio (WMA) DRM License WMP with FairUse4WM and Mirakagi
  7. Top 5 Free Wallpaper Download Sites
  8. Apple Safari Browser on Windows
  9. Gnome System Monitor User Interface Rework
  10. Rethinking the GUI (Graphical User Interface) and the CLI (Command Line Interface)

Comments

Howto install HipHop for PHP on Ubuntu

HipHop is a source code transformer which transforms PHP source code into highly optimized C++ and then compiles it using g++.

Required packages

sudo apt-get install cmake g++ libboost-dev flex bison re2c libmysqlclient-dev libxml2-dev libmcrypt-dev libicu-dev openssl binutils-dev libcap-dev libgd2-xpm-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev git-core autoconf libtool libcurl4-openssl-dev libboost-system-dev libboost-program-options-dev libboost-filesystem-dev

Get the HipHop source-code

mkdir hiphop
cd hiphop
git clone git://github.com/facebook/hiphop-php
cd hiphop-php
export CMAKE_PREFIX_PATH=`/bin/pwd`/../
export HPHP_HOME=`/bin/pwd`
export HPHP_LIB=`/bin/pwd`/bin
git submodule init
git submodule update
cd ..

Building third-party libraries

libevent

wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar -xzvf libevent-1.4.13-stable.tar.gz
cd libevent-1.4.13-stable
cp ../hiphop-php/src/third_party/libevent.fb-changes.diff .
patch < libevent.fb-changes.diff
./configure --prefix=$CMAKE_PREFIX_PATH
make
make install
cd ..

ICU4

wget http://download.icu-project.org/files/icu4c/4.2.1/icu4c-4_2_1-src.tgz
tar -xvzf icu4c-4_2_1-src.tgz
cd icu/source
./configure --prefix=$CMAKE_PREFIX_PATH
make
make install
cd ../../

libCurl

wget http://curl.haxx.se/download/curl-7.20.0.tar.gz
tar -xvzf curl-7.20.0.tar.gz
cd curl-7.20.0
cp ../hiphop-php/src/third_party/libcurl.fb-changes.diff .
patch -p0 < libcurl.fb-changes.diff
./configure --prefix=$CMAKE_PREFIX_PATH
make
make install
cd ..

Build HipHop

cd hiphop-php
cmake .
make
VN:F [1.8.5_1061]
Rating: 8.0/10 (1 vote cast)

Related posts:

  1. Howto: Install Ruby and Rails on Debian or Ubuntu
  2. Ubuntu Howto: Install Oracle
  3. Ubuntu Howto: Install Sun Java
  4. Ubuntu Howto: Install Xen
  5. Howto Install Carwhisperer on Ubuntu 9.10
  6. Howto: Install Windows Vista Fonts in Ubuntu
  7. Ubuntu Howto: Install Ruby and Ruby on Rails
  8. Howto install Java on Debian Sarge
  9. Howto Install Oracle on Debian
  10. Howto: Create your own Debian or Ubuntu package repository

Comments (3)

What to Expect: Ubuntu 10.04 LTS: The Lucid Lynx

Ubuntu 10.04 Alpha 2 is available and comes with Linux kernel 2.6.32, KDE 4.4 RC1 and a significant faster boot process. The release is a “alpha” release, which means that it is not fully developed and therefore may contain errors and other obst. The final version of Ubuntu 10.04 LTS it planned to be released on the 29 April 2010.

Really cool stuff

  • PiTiVi included as default. PiTiVi is considered the most intuitive and featureful movie editor for the Linux desktop.
  • The boot process. The goal is to reach 10 seconds for booting with 10.04 aka Lucid. The adoption of Upstart is one of the techniques to make the goal come true.
  • Hal removal. The removal of the hal package makes Ubuntu faster to boot and faster to resume from suspend.
  • Kernel 2.6.32. The new kernel means 3D support for newer Radeon graphics chips, better use of power saving features offered by the latest hardware and numerous enhancements to KVM and Btrfs are some of the outstanding items among the many thousands of changes undertaken for the latest kernel version. Various other improvements should also make Linux 2.6.32 more reactive and as a result, feel faster.
VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

Related posts:

  1. Development Release: Ubuntu 8.10 Alpha 4
  2. Ubuntu Studio
  3. Ubuntu Howto: Install Xen
  4. Seamless Windows Applications on Ubuntu Linux Using VirtualBox
  5. Google’s new operating system: Chrome OS boots at 7 seconds
  6. iTunes on Linux (Ubuntu)
  7. Ubuntu Netboot and Netinstall with PXE
  8. Howto: Install Ruby and Rails on Debian or Ubuntu
  9. OpenVZ joins forces with Ubuntu
  10. Ubuntu Server Edition JeOS

Comments

Firefox Flash Interaction Bug: I Cannot Click In Flash Application e.g. Youtube

I experienced recently that I was unable to hit and click in flash based application using the mouse, which meant that I was forced to use the keyboard to navigate in all flash application – not a good user experience and very annoying. Adobe Flash does simply not register any mouse clicks (e.g. on YouTube, Google Analytics, etc.).

However I have researched on the bug, actually it was quite difficult to find anyone, who had experienced problem and reported it, also because the problem is hard to describe consistently. This fact was also clear, when I read the Ubuntu bug report.

The descriptions of the problem varies a lot: “Clicking on items in Flash player does nothing”, “I Cannot Click On Flash In Ubuntu”, “Flash does not register any clicks”, and “flash does not recognise mouse clicks”.

Solution

  • Hit ALT+F2 and enter
  • gksudo gedit /usr/lib/nspluginwrapper/i386/linux/npviewer
  • add the following line BEFORE the last line of text
  • export GDK_NATIVE_WINDOWS=1
  • Save.
  • Restart any applications using flash
VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

Related posts:

  1. Howto Install Fedora From a USB Flash Key Drive
  2. Beautiful and Efficient File Upload Using Flash and Ruby on Rails
  3. Fedora Core 5 Test 2 Flash demo
  4. WSJ: Sun to Use Flash Memory in Servers
  5. WSJ: Sun to Use Flash Memory in Servers
  6. Awareness: Web Application Security
  7. Development Release: Ubuntu 8.10 Alpha 4
  8. Howto Create a libstdc++ Compat on Debian (e.g. libstdc++-libc6.2-2.so.3)
  9. dos2unix on Ubuntu and Debian
  10. Knoppix 3.8 CeBIT Edition Flash demo

Comments (1)

Howto: Install Ruby and Rails on Debian or Ubuntu

Ruby on Rails – what the f…
Ruby on Rails, often shortened to Rails or RoR, is an open source web application framework for the Ruby programming language. It is intended to be used with an Agile development methodology that is used by web developers for rapid development.

Ruby on Rails is often installed using RubyGems, a package manager, which is included with Ruby. Many Linux distributions also support installation of Rails and its dependencies through their native package management system, anyway no matter the installation technique, installing Ruby on Rails on a Debian or Ubuntu distribution is plain sailing and very easy.

Installing Ruby on Rails using RubyGems

Install Ruby and RubyGems

sudo aptitude install ruby rubygems

As I wrote this post, there was a nasty bug in the Rails dependency notation for Rack, which means you’ll need to install version 1.0.1 of Rack instead of the default version, which is as of now version 1.1.0.

Install Rails

sudo gem install rack --version 1.0.1
sudo gem install rails

That’s all. You are done.

Installing Ruby on Rails using apt-get or aptitude

Install Ruby on Rails

sudo aptitude install rails

That’s all. You are done.

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

Related posts:

  1. Ubuntu Howto: Install Ruby and Ruby on Rails
  2. Howto Install Ruby and Ruby on Rails on Debian Etch 4.0
  3. Howto install Ruby on Rails on Fedora Core 5 (fc5)
  4. Howto Install Oracle on Debian
  5. Ubuntu Howto: Install Oracle
  6. Ubuntu and Ruby
  7. Great Ruby on Rails Sites and Blogs
  8. Beautiful and Efficient File Upload Using Flash and Ruby on Rails
  9. Ruby on Rails
  10. Spatial Plugins for Ruby on Rails

Comments

Howto: How to Reset the MySQL Root Password

The following procedure can be used to reset the password for any MySQL root accounts on Linux and Unix (*nix). The instructions assume that you have got the proper permissions on the host system.

Stop the MySQL daemon process

sudo /etc/init.d/mysql stop

Create a text file /home/me/mysql.sql and place the following statements in it. Replace the password with the password that you want to use

UPDATE mysql.user SET Password=PASSWORD('a_new_password') WHERE User='root';
FLUSH PRIVILEGES;

The UPDATE and FLUSH statements each must be written on a single line. The UPDATE statement resets the password for all existing root accounts, and the FLUSH statement tells the server to reload the grant tables into memory.

Start the MySQL server with the special –init-file option

mysqld_safe --init-file=/home/me/mysql.sql

Press Ctrl+C and then start the MySQL server again by /etc/init.d/mysql start and you are done.

VN:F [1.8.5_1061]
Rating: 0.0/10 (0 votes cast)

Related posts:

  1. Howto Recover a Linux Root Password
  2. Executing SQL Statements from a Text File
  3. Optimize MySQL for Low Memory Use
  4. MySQL Optimization and Performance Tips
  5. Howto: Resize Xen Loop Disk Image
  6. Optimize MySQL Performance With MySQLTuner
  7. How to hack Windows password with Ophcrack
  8. Crack Windows Password
  9. How to do MySQL replication (dual-master / multi-master)
  10. Crack or Recover Password Protected Excel Spreadsheet

Comments

« Previous entries Next Page » Next Page »