March 13, 2010 at 16:55
· Tags: /etc/passwd, Crack, Debian, hack, Linux, recover, root, root password, Ubuntu
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:
- Howto: How to Reset the MySQL Root Password
- Recover (Crack) a password from a Microsoft Access Database (mdb)
- Crack or Recover Password Protected Excel Spreadsheet
- Crack or Recover Read-only Password Protected Word Document
- HackerGuide: Crack Password Encrypted Zip-files
- How to hack Windows password with Ophcrack
- Howto Create a libstdc++ Compat on Debian (e.g. libstdc++-libc6.2-2.so.3)
- Crack zip password with fcrackzip
- Password Manager – based on gnupg
- Crack Windows Password
Permalink
March 13, 2010 at 16:44
· Tags: combine, Debian, Ghostscript, Linux, pdf, pdftk, Ubuntu
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:
- Upgrading to Ubuntu 9.04
- Ubuntu Netboot and Netinstall with PXE
- Bash shortcuts tips and tricks
- Run Single Commands on a SSH-based Server
- dos2unix on Ubuntu and Debian
- The VMware house of cards
- Rethinking the GUI (Graphical User Interface) and the CLI (Command Line Interface)
- Crack pdf password with pdfcrack
- Track file downloads and outgoing links with Google Analytics
- How to mount bin / cue image files in Linux
Permalink
February 28, 2010 at 20:42
· Tags: 7-zip, 7z, Adobe Illustrator, Adobe Photoshop, alternative, Apple, applications, bittorrent, Debian, Fedora, Firefox, Gnome, GNOME Do, IE, IE alternative, Infra Recorder, Inkscape, Internet Explorer, Internet Explorer alternative, iTunes, Launchy, Linux, Microsoft, Notepad++, Open Source, Open Standards, OpenOffice, OSX, Paint.NET, PDFCreator, Picasa, quicksilver, Scribus, TOP10, Ubuntu, Usability, uTorrent, virtualbox, Vista, VLC, VLC Player, Windows, Windows 7, xp
Permalink
February 23, 2010 at 20:33
· Tags: apache, compile, facebook, gcc, hiphop, LAMP, llvm, performance, PHP, Ubuntu, Zend
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:
- Howto: Install Ruby and Rails on Debian or Ubuntu
- Ubuntu Howto: Install Oracle
- Ubuntu Howto: Install Sun Java
- Ubuntu Howto: Install Xen
- Howto Install Carwhisperer on Ubuntu 9.10
- Howto: Install Windows Vista Fonts in Ubuntu
- Ubuntu Howto: Install Ruby and Ruby on Rails
- Howto install Java on Debian Sarge
- Howto Install Oracle on Debian
- Howto: Create your own Debian or Ubuntu package repository
Permalink
February 20, 2010 at 16:26
· Tags: kernel, LTS, Lucid Lynx, Ubuntu, Ubuntu 10.04
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:
- Development Release: Ubuntu 8.10 Alpha 4
- Ubuntu Studio
- Ubuntu Howto: Install Xen
- Seamless Windows Applications on Ubuntu Linux Using VirtualBox
- Google’s new operating system: Chrome OS boots at 7 seconds
- iTunes on Linux (Ubuntu)
- Ubuntu Netboot and Netinstall with PXE
- Howto: Install Ruby and Rails on Debian or Ubuntu
- OpenVZ joins forces with Ubuntu
- Ubuntu Server Edition JeOS
Permalink
February 14, 2010 at 12:20
· Tags: Adobe Flash, bug, Chrome, Firefox, flash, Google Analytics, Ubuntu, 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:
- Howto Install Fedora From a USB Flash Key Drive
- Beautiful and Efficient File Upload Using Flash and Ruby on Rails
- Fedora Core 5 Test 2 Flash demo
- WSJ: Sun to Use Flash Memory in Servers
- WSJ: Sun to Use Flash Memory in Servers
- Awareness: Web Application Security
- Development Release: Ubuntu 8.10 Alpha 4
- Howto Create a libstdc++ Compat on Debian (e.g. libstdc++-libc6.2-2.so.3)
- dos2unix on Ubuntu and Debian
- Knoppix 3.8 CeBIT Edition Flash demo
Permalink
February 9, 2010 at 20:35
· Tags: apt-get, deb, Debian, Debian package, etch, gem, gems, lenny, Rails, RoR, Ruby, Ruby on Rails, rubygems, 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:
- Ubuntu Howto: Install Ruby and Ruby on Rails
- Howto Install Ruby and Ruby on Rails on Debian Etch 4.0
- Howto install Ruby on Rails on Fedora Core 5 (fc5)
- Howto Install Oracle on Debian
- Ubuntu Howto: Install Oracle
- Ubuntu and Ruby
- Great Ruby on Rails Sites and Blogs
- Beautiful and Efficient File Upload Using Flash and Ruby on Rails
- Ruby on Rails
- Spatial Plugins for Ruby on Rails
Permalink
February 9, 2010 at 20:20
· Tags: Debian, howto, Linux, MySQL, password, reset, Ubuntu
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:
- Howto Recover a Linux Root Password
- Executing SQL Statements from a Text File
- Optimize MySQL for Low Memory Use
- MySQL Optimization and Performance Tips
- Howto: Resize Xen Loop Disk Image
- Optimize MySQL Performance With MySQLTuner
- How to hack Windows password with Ophcrack
- Crack Windows Password
- How to do MySQL replication (dual-master / multi-master)
- Crack or Recover Password Protected Excel Spreadsheet
Permalink
« Previous entries Next Page » Next Page »