Quickly Add/Remove Multiple packages with apt-get (command line hackery)

This is a simply yet effective way I personally add/remove packages in ubuntu when I change distro's and need to reinstall everything other than aptoncd which I have an article for, my site search will bring it up searching for "aptoncd". Basically the idea is to add all your favorite packages to a text file and install them all with a simple command as well as removing them:

simply make a text file with packages you like after you add the right repositories, I simply:

echo "deb repository.com repo/">>/etc/apt/sources.list

to add repositories via the terminal
Now make a list like this:
pidgin
opera
firefox
and-any-package you need, save it in a safe location named aptfiles.txt
Now to simply restore/install your list do:
cat aptfiles.txt | xargs sudo apt-get -y install
Now you can also make a list to remove files you dont need named apt-remove.txt
Do the same:
cat apt-remove.txt | xargs sudo apt-get -y remove

I hope you enjoy this simple apt-get trick as much as I do, feel free to add any tips/tricks of your own in the comments.
d e f c o n

Expand full post here...

Comments

Howto Search And Replace Text in files Recursively on Ubuntu Linux


I just found a new tool called regexxer, im sure it has been around for a while but I just discovered it.
regexxer is a nifty GUI search/replace tool featuring Perl-style regular expressions. If you need project-wide substitution and you’re tired of hacking sed command lines together, then you should definitely give it a try.
simply apt-get install regexxer

Expand full post here...

Comments

Remaster And Clone your Ubuntu Install to a live cd

Remastersys will 'remaster' your existing Ubuntu based distro into a live cd/DVD. Tools like PCLinuxOS's mklivecd have been around a while and proved to be very popular but are tricky to get working with the newer releases of debian/ubuntu, so some guy (apologies, forgot your name) over at Linux Mint (an ubuntu-based distribution) made this really cool tool. And although it has only really been in popular use since about March this year, it has already been compared to the maturity of mklivecd.
Install:
Add the Linux Mint repo to your /etc/apt/sources.list
echo "deb http://www.linuxmint.com/repository romeo/" >>/etc/apt/sources.list
do a "sudo apt-get update"
then:
"sudo apt-get install remastersys" and it should install fine.

Then simply type "sudo remastersys" to get the list of options, which include:
backup - backs up your system including your /home folder with your users on it.

dist - omits the /home folder thus making it a distributable cd that you can give to your friends.

clean - removes the temporary folder that was created, including the new iso so burn it and copy it elsewhere before you run "sudo remastersys clean"

Expand full post here...

Comments

Ubuntu Gutsy Beta Release & Download Site

Well the long awaited Ubuntu Gutsy Gibbon Beta is released with a TON of bug fixes,
Check it out and please post the bug fixes on launchpad!
Ubuntu Gutsy Gibbon Download Sites

Download

Get it while it's hot. ISOs and torrents are available at:

Local mirrors are also available:

Europe

Asia/Pacific

Africa

North America

More info from Ubuntu.com
please post bugs here
be sure to check for updates hourly...
-defcon

Expand full post here...

Comments

Howto Easily Upgrade Dell BIOS in Ubuntu

You should always upgrade your bios like you do software because it provides underlying support for your hardware, this is a quick & easy howto to guide you through the process...

The Dell firmware-tools project provides easy method of BIOS and firmware update.

Packages for firmware-tools and firmware-addon-dell for Debian and Ubuntu are under construction. Here is the main firmware-tools page: BIOS and Firmware Updates

BIOS Update Process for Debian/Ubuntu:


Install libsmbios

# apt-get update (not always necessary)
# apt-get install libsmbios-bin

Get the System ID

# getSystemId
Libsmbios: 0.12.1
System ID: 0x019D
Service Tag: J5TJV71
Express Service Code: 41710831021
Product Name: Dimension 3000
BIOS Version: A03
Vendor: Dell Computer Corporation
Is Dell: 1

Download the latest BIOS ".HDR" file for this system.
Go here: http://linux.dell.com/repo/software/bios-hdrs/
The directory will be named: system_bios_ven_0x1028_dev_SYSTEM_ID_version_BIOS_VERSION. Go into this directory and download the file, "bios.hdr".
ctrl-f and search for your system id, mine is 0x019D; and grab the latest version
load the dell_rbu driver

# modprobe dell_rbu

Update the bios

# dellBiosUpdate -u -f ./bios.hdr-2.3.2
Supported RBU type for this system: (MONOLITHIC)
Using RBU v2 driver. Initializing Driver.
Setting RBU type in v2 driver to: MONOLITHIC
Prep driver for data load.
Writing RBU data (4096bytes/dot): ............................
..............................................................
.......................
Notify driver data is finished.
Activate CMOS bit to notify BIOS that update is ready on next boot.
Update staged sucessfully. BIOS update will occur on next reboot.

Reboot the system

save your work and type:
sudo reboot
Once you boot up, your system will auto-clear your bios and update the bios

Expand full post here...

Comments

Next Generation Optimization for Ubuntu!

Well, prefetching isnt a new topic but there is possibility that it can be optimized into the next generation of computing...

I found an interesting Google SoC Project page that shows some promise, ive been searching around for prefetching and ReadyBoost solutions for Ubuntu and ran accross this...

From here:
In todays computer systems the main bottleneck is not CPU but disk access which is several orders of magnitude slower than CPU and memory. In such circumstances the way to improve application performance is to prefetch data it needs from disk before it even requests it and it is the point of prefetching techniques.
The example of prefetching solution is Windows prefetcher.


Here is a little bit from their thesis:

"In this thesis we develop preload, a daemon that prefetches binaries and shared libraries
from the hard disk to main memory on desktop computer systems, to achieve faster
application start-up times. Preload is adaptive: it monitors applications that the user
runs, and by analyzing this data, predicts what applications she might run in the near
future, and fetches those binaries and their dependencies into memory.
We build a Markov-based probabilistic model capturing the correlation between every
two applications on the system. The model is then used to infer the probability that each
application may be started in the near future. These probabilities are used to choose
files to prefetch into the main memory. Special care is taken to not degrade system
performance and only prefetch when enough resources are available.
Preload is implemented as a user-space application running on Linux 2.6 systems."

Howto test optimizations:
*Warning* This is experimental and I have not tested this yet, I am about to once im done posting this,
This may or may not be correct, let me know of any issues!

The following is an edited version of there wiki located here

Testing Boot Prefetching and Applications Prefetching

Introduction

First testing version of kernel with automatic boot prefetching and tracing is available. This version is precompiled for Debian-based systems (tested on Ubuntu Gutsy, other distributions might not work). The kernel is standard Ubuntu kernel with these prefetch patches.
Standard disclaimer applies: this is experimental version, it might damage your system use at your own risk and only on systems where you have backups.
*This Requires Ubuntu Gutsy*
Installation
In order to use kernel with prefetching:
Download kernel linux-image deb
Download linux-headers.deb
Install linux-image deb package
Install linux-headers deb package
Remove readahead package using: sudo apt-get remove --purge readahead -
please note that this will cause removing (x/k/edu)ubuntu-desktop package.
Download userspace prefetch support deb and install it using:
dpkg -i prefetch*.deb
Now reboot and select "kernel 2.6.22.6pf.3" during boot.
Uninstallation
In order to remove kernel with prefetching:
Reboot into standard (non-prefetching) kernel.
Remove prefetch userspace support files using apt-get remove --purge prefetch
Install readahead and (x/k/edu)ubuntu-desktop package.
Remove linux-image package with prefetching support (with "pf" in name).
Resources:
Launchpad Project
Summer Of Code 2007 Progress
Development Discussions
Google Code Page

Expand full post here...

Comments

Ubuntu ReadyBoost for Desktops and Laptops!

With these simple directions you'll be able to use a USB pen prive as an additional swap. As a result, the pen drive will be used in the same way Windows Vista does through the ReadyBoost functionality.

1) Plug the pen drive in your usb slot, usually in front of your tower or side/back of your laptop.
2) Ubuntu should auto-mount the device (usually in /media/usbdisk*), umount the device (ie., sudo umount /media/usbdisk);
3) Find your usb device in your terminal by typing sudo df -h; in this example we will use /dev/sda1
4) sudo mkswap /dev/sda1 (assuming /dev/sda1 is the correct device for the connected usb device)
5) sudo swapon -p 32767 /dev/sda1

Ok now you are using the usb device for swap; when your ram is exhausted it will start using your usb device for ram

To verify that everything is working correctly do a;
cat /proc/swaps
This is the output I recieve on my Desktop;
/dev/sda5 partition 1646620 33952 -1

Just a note:
You will not recieve the same performance as ram, it all depends on the speed of your usb disk, you will notice a big difference in running games, development studio's, audio/video editing and memory hogs like firefox/openoffice.

To turn ReadyBoost for Ubuntu off in a terminal type:
sudo swapoff /dev/sda1

Expand full post here...

Comments

OpenOffice.org OpenXML Translator for Ubuntu

The OpenXML Translator provides support for opening and saving Microsoft* OpenXML-formatted word processing documents (.docx) in OpenOffice.org. So now we all can use the docx extention *yay* although im not very happy about this, id rather have hundreds of companies use *.odf and do away with this addon all together but... This is hot for those that like to use Microsh!t document formats...

Install:

1. echo "deb http://ubuntu.org.ua/ getdeb/" >>/etc/apt/sources.list
2. apt-get update
3. apt-get install odf-converter

or simply download here

Note:You must restart OpenOffice Writer to get the option available on the Load/Save document dialogs.

If you need support for windows or SUSE® Linux Enterprise, SUSE Linux, and openSUSE check out the developer's download site here

Expand full post here...

Comments

Introducing ioSunbird Apple iCal for Ubuntu!



My friend Luca Cappelletti is kicking ass rolling out yet another fine release for mobile or non-root users or people that just want to download a program and start running it without wasting time installing a thing.

ioMozilla Sunbird® is a cross-platform calendar application, built upon Mozilla Toolkit. Our goal is to bring Mozilla-style ease-of-use to your calendar, without tying you to a particular storage solution.

pic by markcarson.com

Luca has told me he has modified Sunbird to have the ease of use and look of Apple iCal, stay tuned for screenshots from me! Or beat me to it and post em :)

Easy install:
Simply grab ioSunbird here
chmod +x ioCalendarSunbird0.5-feisty_InfodomesticObjects0.8.6
or simply right click on the file to change properties to executable.
mv oCalendarSunbird0.5-feisty_InfodomesticObjects0.8.6 ioCalendarSunbird
or right click rename :)
Then double click or ./ioCalendarSunbird

Expand full post here...

Comments

Introducing ioGftp 2.0.18-feisty


Check this out, same great Gftp client but without the headache of installing, this is another InfomesticObjects Linux Release.

Benefits:
Easily access ftp sites on the go or run gftp without installing at a computer with no root privileges.

Here is Gftp's Main Features:

  • Distributed under the terms of the GNU Public License Agreement
  • Written in C and has a text interface and a GTK+ 1.2/2.x interface
  • Supports the FTP, FTPS (control connection only), HTTP, HTTPS, SSH and FSP protocols
  • FTP and HTTP proxy server support
  • Supports FXP file transfers (transferring files between 2 remote servers via FTP)
  • Supports UNIX, EPLF, Novell, MacOS, VMS, MVS and NT (DOS) style directory listings
  • Bookmarks menu to allow you to quickly connect to remote sites

  • First grab ioGftp here
    chmod +x ioGftp2.0.18-feisty_InfodomesticObjects0.8.7
    or right click change permissions to executable
    mv ioGftp2.0.18-feisty_InfodomesticObjects0.8.7 ioGftp
    ./ioGftp
    or simply double click to run
    thats it enjoy :)

    Expand full post here...

    Comments

    Introducing ioOpera 9.2.3


    ioOpera9.23 is a recompilation of Opera for Infodomestic Objects Linux. It is developed and tested under Ubuntu Linux, and can be run with just one click without installation on your system."

    Benefits:
    Faster than Opera
    Same as Opera
    None-root Users can download and run Opera
    Secure
    Something new
    Same benefits of Opera just no install needed

    ioOpera is secure as well, since it runs in ram, so you dont have to worrie about people sn00ping your browser history. Apon reboot all history is gone.
    Howto:
    Download here
    chmod +x ioOpera9.23_InfodomesticObjects0.8.7
    mv ioOpera9.23_InfodomesticObjects0.8.7 ioOpera
    ./ioOpera
    or simply double click to run :)

    Expand full post here...

    Comments

    Introducing ioPidgin 2.2


    ioPidgin is the same great application for non-root users or people that dont like to install all the libraries and compile from scratch. You dont have to apt-get a thing. This one simple file is all you need and dont worrie about installing since it is already installed in the file :)


    "ioPidgin is a recompilation of Pidgin 2.2 for Infodomestic Objects Linux. It is developed and tested under Ubuntu Linux, and can be run with just one click without installation on your system."

    ioPidgin is secure as well, since it runs in ram.

    Howto:
    Download here
    chmod +x
    ioPidgin2.2-feisty_InfodomesticObjects0.8.7
    mv ioPidgin2.2-feisty_InfodomesticObjects0.8.7 ioPidgin
    ./ioPidgin
    or double click on the executable :)

    check out my screenshot

    Expand full post here...

    Comments

    Introducing ioAmarok 1.47


    Wow, I just found another truly unique application that runs fast as hell right from memory and does not require root access to install, so you non-root users can download this single file and you dont have to install a thing, it runs straight from ram and /tmp and believe it or not, it is faster than amarok because it is all pre-linked. No compiling, installing or anything is necessary.

    This is for mobile users that use flash drives as well...
    "Does not require KDElibs nor
    QTlibs nor any mp3/4 adaptor."!

    "ioAmarok is a recompilation of Amarok 1.47 for Infodomestic Objects Linux. It is developed and tested under Ubuntu Linux, and can be run with just one click without installation on your system."
    ioAmarok is secure as well, since it runs in ram.

    Howto:
    Download here
    chmod +x ioAmarok1.4.7-feisty_InfodomesticObjects0.8.7
    mv ioAmarok1.4.7-feisty_InfodomesticObjects0.8.7 ioAmarok
    ./ioAmarok

    Expand full post here...

    Comments

    Recover Forgotten Ubuntu Password without reinstalling

    If you forgot you password for your ubuntu system you can recover using the following steps

    Turn your computer on.

    Press ESC at the grub prompt.

    Press e for edit.

    Highlight the line that begins kernel ………, press e

    Go to the very end of the line, add rw init=/bin/bash

    press enter, then press b to boot your system.

    Your system will boot up to a passwordless root shell.

    Type in passwd username

    Set your password.

    Type in reboot

    If this doesnt work you can alternatively try this:

    Turn on your computer, and as soon as you the Press Esc to enter grub message, press the escape key.

    Select the option that says (recovery mode).

    Your PC will boot into a shell. Once you get a command prompt, type "passwd username" where the username is your username.

    Enter a new password when prompted, and again when prompted again

    Type reboot to reboot your system

    Another way is to boot into the system via a live cd open up Applications->Accessories->Terminal
    then mount your ubuntu drive if its on /dev/sda1 do this:
    mount /dev/sda1/ /media/sda1
    Then we chroot into the system:
    chroot /media/sda1
    passwd user
    Now change the password, and reboot your box!

    Expand full post here...

    Comments

    Upgrade to the Latest Kernel.org Kernel with 1 click in Ubuntu

    Now, a short description. KernelCheck is a project that is designed to easily build the latest kernel for your distribution using the instructions provided in the Master Kernel Thread. This automated process is a fork of AutoKernel by Robert Wolterman (xtacocorex), Timothy Janssen (mentok), and Kristof Verbeken (PinguinZ). KernelCheck is currently under the GNU Public License.

    Installation

    1. Download KernelCheck

      Download it here (recommended)
      OR
      Code:
      wget http://kcheck.sourceforge.net/pool/latest-stable/kernelcheck-latest.tar.gz
    2. Unpack the archive
      Code:
      tar -xzf kernelcheck-*.tar.gz
    3. Install KernelCheck
      Code:
      cd kernelcheck-*
      Code:
      sudo python setup.py install
    4. Use it
      Code:
      kernelcheck

    Notes on KernelCheck

    KernelCheck can be used for several purposes:
    1. Comparing your kernel with the latest from kernel.org
    2. Making fun of the Master Kernel Thread because it might be outdated
    3. Automatically downloading, compiling, and installing the latest kernel
    KernelCheck can install either the latest stable kernel, or the latest stable prepatch. Usually the prepatch is less stable than the kernel, but it is still widely used.

    Usage

    KernelCheck can be used in a variety of ways, most commonly by opening a terminal and typing in
    Code:
    kernelcheck
    If the program started correctly, a dialog box like the one below should appear:


    If you click yes, after a few moments one like the one below should appear:


    The 'Build Latest Kernel' button will download, compile, and install the latest stable kernel from kernel.org. By selecting the checkbox 'Apply prepatch instead of normal patch', it will apply the listed prepatch (development).

    The 'Check for Program Updates' button will go to the KernelCheck website and parse finger_banner2 for the latest version of KernelCheck. If you are running the latest version, it will say so, and if you are not, it will ask you to update.

    You can edit the /usr/bin/kernelcheck files to your needs, changing anything you like, because my program is under the GNU Public License Version 3 released June 2007.

    KernelCheck 1.0.5 has been released!

    Changelog (Key features only):
    • Added safe halt support (signal trapping) in both stages
    • Added network test (thanks to walkerk)
    • Added support for background processes
    • KernelCheck will not freeze anymore EXCEPT on security updates
    • Added security update ability

    The 'Check for Updates' button in KernelCheck 1.0.4 (or patched 1.0.3r1) should automatically detect this upgrade. This has been tested with version 1.0.4.

    Download at SF.net, or the download page.

    Post questions, comments, etc. here.

    Expand full post here...

    Comments

    Introducing Linux Multimedia Studio For Ubuntu!


    Damn!, just found a sweet application on getdeb.net, its truly chillin for you dj's out there and people that like to mess around with beats like I do. It looks like you can now create great music with Ubuntu Linux. Check it...

    LMMS aims to be a free alternative to popular (but commercial and closed- source) programs like FruityLoops, Cubase and Logic giving you the ability of producing music with your computer by creating cool loops, synthesizing and mixing sounds, arranging samples, having more fun with your MIDI-keyboard and much more...

    How to Install:
    1. open up a terminal
    2. sudo -s
    3. echo "deb http://ubuntu.org.ua/ getdeb/" >> /etc/apt/sources.list
    4. apt-get install lmms
    5. Launch

    Or if you want the latest version grab the subversion installation instructions here
    Resources:
    Wiki & tips/tricks

    Expand full post here...

    Comments

    Play videos within *.rar files without unpacking/extracting them in Ubuntu

    If you download your movies and tv series only as scene releases, then you'll have to extract the release's video file from its multiple rar files. That can take some time... Not a horrible long time. You can live with it... But I learned a cool thing and thought I could share it just because I have nothing better to do...

    You'll need the packages "unrar" and "vlc" (or "mplayer" or any other video player you may prefer).
    Write this in a terminal if you haven't got the required packages:

    Code:

    sudo apt-get install unrar vlc
    The command to use:
    Code:

    unrar p -inul /example/path/to/Some.Scene.Release/some.sr.r00 | vlc -
    What the command does:
    unrar = starts unrar
    p = outputs the extraction data of the file
    -inul = disables error messages
    /example/path/to/Some.Scene.Release/some.sr.r00 = path to one of the scene release's rar files
    | vlc - = pipes the output of the extraction into vlc that starts to play the output, and therefore plays the video file that is within the rar files. Don't forget the ending "-", or it won't work. You can use another video player if you want, just replace "vlc" with what you want. I have only tested this with vlc and mplayer.

    One bad thing with this trick is that you can only pause and play the file, but not rewind or fast forward.


    I only write "rarvideo somerarfile.r00". How to do that:

    Open ~/.bashrc in a text edior, using for example this command:
    Code:

    gedit ~/.bashrc
    Paste this somewhere in the file, I did it in the top of the file:
    Code:

    PATH=$PATH:$HOME/bin
    Close and save the file.
    (This makes your Bash looking in the ~/bin folder for executeable files.)

    Make a folder in your home folder called "bin":
    Code:

    mkdir ~/bin
    Make and open in a text editor a file called "rarvideo" in ~/bin:
    Code:

    gedit ~/bin/rarvideo
    and paste this into it:
    Code:

    #! /bin/sh
    unrar p -inul $1 | vlc -

    Close and save the file.

    Make the file executeable with this command:
    Code:

    chmod u+x ~/bin/rarvideo
    You probably have to restart Bash, so in the terminal, type:
    Code:

    bash
    ...and now you can use the command "rarvideo somerarfile.r00"!
    you can also right click a rar file in nautilus and choose "open with" and type in rarvideo


    Expand full post here...

    Comments

    Howto install the subversion mplayer + gmplayer + all the codecs.

    This guide intends to show how to successfully compile a fully featured svn mplayer with all the codecs and with the GUI player gmplayer. It is a bit of a difficult one so make a cup of tea and get your keyboard ready!!

    Firstly install subversion, compiling tools and checkinstall and secondly download the svn mplayer plus the full codec pack:

    Code:

    $ sudo apt-get install build-essential checkinstall subversion
    $ cd Desktop
    $ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
    $ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2

    So far so good? Next to decompress the codec package and copy all them to the appropriate location. Make sure you are still on the Desktop and:

    Code:

    $ tar xjvf all-20061022.tar.bz2
    $ sudo mkdir /usr/local/lib/codecs/
    $ sudo cp $HOME/Desktop/all-20061022/*.* /usr/local/lib/codecs/

    Next comes quite a large download of development files. These are required so that when mplayer is compiled you will pick up a huge amount of functionality. Don't be surprised if more are suggested, or if you already have some on your system:

    Code:

    $ sudo apt-get install liblame-dev libdvdread3-dev libdvdnav-dev libogg-dev \
    libvorbis-dev libxv-dev libtheora-dev libpng12-dev libmpcdec-dev \
    libcdparanoia0-dev libxinerama-dev x11proto-xinerama-dev libjpeg62-dev \
    libgdk-pixbuf-dev libfreetype6-dev libexpat1-dev libfontconfig1-dev \
    libcaca-dev libfaac-dev libmp4v2-dev libaa1-dev libavcodec-dev \
    libavifile-0.7-dev libsdl1.2-dev libesd0-dev libfaad2-dev libice-dev \
    libmatroska-dev libmad0-dev libmp4v2-dev libmikmod2-dev libpostproc-dev \
    libspeex-dev libxvidcore4-dev libxvidcore4 avifile-xvid-plugin \
    avifile-divx-plugin ladspa-sdk libsvga1-dev libsvga1 libungif4-dev \
    libungif4g libenca-dev libdfb++-0.9-22 libdfb++-dev libdirectfb-0.9-22 \
    libdirectfb-dev libavformat-dev libfame-0.9 libfame-dev zlib1g-dev \
    liblivemedia-dev libfribidi-dev libdvdnav4 libdvdplay0 libasound2-dev \
    libdv4-dev libpopt-dev zlib1g-dev xlibs-dev libflac++-dev libflac-dev \
    liboggflac++-dev liboggflac-dev toolame ttf-bitstream-vera \
    libdbus-glib-1-dev libx264-dev libggi2-dev libxvmc-dev libxxf86vm-dev \
    libxxf86dga-dev libfontconfig-dev libartsc0-dev libglu-dev \
    libglu1-mesa-dev libdts-dev libdvdread-dev libdv-dev libpng3-dev \
    libpng12-dev libsmbclient-dev gawk sharutils libaudiofile-dev liblzo-dev \
    libc6-dev libggimisc2 libggimisc2-dev libggiwmh0 libggiwmh0-dev \
    libatk1.0-dev libcairo2-dev libgtk2.0-dev libpango1.0-dev \
    libxcursor-dev libxfixes-dev x11proto-fixes-dev liba52-0.7.4-dev

    I hope you still have some hard disk space left because the next task is to compile the svn mplayer and after that setup the OSD and the GUI:

    Code:

    $ cd $HOME/Desktop/mplayer/
    $ ./configure \
    --prefix=/usr/local \
    --enable-largefiles \
    --enable-gui \
    --codecsdir=/usr/local/lib/codecs
    $ make && sudo checkinstall -D

    Watch carefully for checkinstall to complain a little when making the .deb file, you may need to manually change the name and version (sections 2 and 3 of the .deb creation menu) to keep it happy. The next step is to place a font for the OSD (On Screen Display) and subtitles:

    Code:

    $ mkdir $HOME/.mplayer/
    $ sudo cp /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf

    And finally to set up a skin for the GUI. Can I say that I rarely use the GUI but in the spirit of generosity, Gentle Reader, I have included the directions on this page for a basic skin and access to gmplayer, the GUI version of mplayer. So, you now need to download a skin, decompress it and then place it in the appropriate directory:

    Code:

    $ cd Desktop
    $ wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
    $ tar xjvf Blue-1.7.tar.bz2
    $ mkdir $HOME/.mplayer/skins/default/
    $ cp $HOME/Desktop/Blue/*.* $HOME/.mplayer/skins/default/

    And you have successfully installed the svn mplayer! Start both from the command line, the CLI version with the command mplayer and the GUI with gmplayer. And remember: "Have fun!".
    original credits for this here

    Expand full post here...

    Comments

    How To Mount Your iPhone Filesystem On Ubuntu

    Do you want to browse your iPhones’ filesystem on your Ubuntu machine? Follow these instructions and you’ll have it working in no time flat.

    This article assumes your iPhone is “out of jail” and has Installer.app installed. If you have not already gotten this part taken care of, click here for steps you need to follow first.

    1. Install SSH on your phone by the following proceedure:
    2. Tap the Installer on your home screen.
    3. Install the following utilities:
    * Community Sources
    * BSD Subsystem
    * OpenSSH
    4. Once your iPhone has these installed, find your IP address by going into Settings, Wi-Fi and then click the blue arrow next to the network your iPhone and your Ubuntu machine are on.
    5. Turn off Auto-Lock on your iPhone, which will interrupt the OpenSSH server by going into Settings, General and Auto-Lock. Set Auto-Lock to never.
    6. Now, on your Ubuntu machine, simply click on Places, Connect to Server and follow these screenshots:
    7.











    8.










    9.













    10.













    You’re in! Now upload ringtones, compile hello world, slice dice and serve http via apache - whatever floats your boat.

    Original Credits for this article go to:
    www.fsckin.com



    Expand full post here...

    Comments

    Advanced lsof Usage in Ubuntu or any linux Operating system

    lsof

    lsof is the Linux/Unix über-tool. I use it most for getting network connection related information from a system, but that's just the beginning for this amazing and little-known application. The tool is aptly called lsof because it "lists open files". And remember, in Unix just about everything (including a network socket) is a file.



    ** lsof is also the Linux/Unix command with the most switches. It has so many it has to use both pluses and minuses.

    usage: [-?abhlnNoOPRstUvV] [+|-c c] [+|-d s] [+D D] [+|-f[cgG]]
    [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+|-M] [-o [o]]
    [-p s] [+|-r [t]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]

    As you can see, lsof has a truly staggering number of options. You can use it to get information about devices on your system, what a given user is touching at any given point, or even what files or network connectivity a process is using. lsof replaces my need for both netstat and ps entirely. It has everthing I get from those tools and much, much more.

    Show Your Network Connections
    Show all connections with -i
    lsof -i

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    dhcpcd 6061 root 4u IPv4 4510 UDP *:bootpc
    sshd 7703 root 3u IPv6 6499 TCP *:ssh (LISTEN)
    sshd 7892 root 3u IPv6 6757 TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)


    Show only TCP (works the same for UDP)
    lsof -iTCP

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    sshd 7703 root 3u IPv6 6499 TCP *:ssh (LISTEN)
    sshd 7892 root 3u IPv6 6757 TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)


    -i :port shows all networking related to a given port
    lsof -i :22

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    sshd 7703 root 3u IPv6 6499 TCP *:ssh (LISTEN)
    sshd 7892 root 3u IPv6 6757 TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)


    To show connections to a specific host, use @host
    lsof -i@192.168.1.5

    sshd 7892 root 3u IPv6 6757 TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)


    Show connections based on the host and the port using @host:port
    lsof -i@192.168.1.5:22

    sshd 7892 root 3u IPv6 6757 TCP 10.10.1.5:ssh->192.168.1.5:49901 (ESTABLISHED)


    Grepping for "LISTEN" shows what ports your system is waiting for connections on
    lsof -i| grep LISTEN

    iTunes 400 daniel 16u IPv4 0x4575228 0t0 TCP *:daap (LISTEN)


    Grepping for "ESTABLISHED" shows current active connections
    lsof -i| grep ESTABLISHED

    firefox-b 169 daniel 49u IPv4 0t0 TCP 1.2.3.3:1863->1.2.3.4:http (ESTABLISHED)



    Working with Users, Processes, and Files

    You can also get information on various users, processes, and files on your system using lsof:
    Show what a given user has open using -u
    lsof -u daniel

    -- snipped --
    Dock 155 daniel txt REG 14,2 2798436 823208 /usr/lib/libicucore.A.dylib
    Dock 155 daniel txt REG 14,2 1580212 823126 /usr/lib/libobjc.A.dylib
    Dock 155 daniel txt REG 14,2 2934184 823498 /usr/lib/libstdc++.6.0.4.dylib
    Dock 155 daniel txt REG 14,2 132008 823505 /usr/lib/libgcc_s.1.dylib
    Dock 155 daniel txt REG 14,2 212160 823214 /usr/lib/libauto.dylib
    -- snipped --


    See what files and network connections a command is using with -c
    lsof -c syslog-ng

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    syslog-ng 7547 root cwd DIR 3,3 4096 2 /
    syslog-ng 7547 root rtd DIR 3,3 4096 2 /
    syslog-ng 7547 root txt REG 3,3 113524 1064970 /usr/sbin/syslog-ng
    syslog-ng 7547 root mem REG 0,0 0 [heap]
    syslog-ng 7547 root mem REG 3,3 105435 850412 /lib/libpthread-2.4.so
    syslog-ng 7547 root mem REG 3,3 1197180 850396 /lib/libc-2.4.so
    syslog-ng 7547 root mem REG 3,3 59868 850413 /lib/libresolv-2.4.so
    syslog-ng 7547 root mem REG 3,3 72784 850404 /lib/libnsl-2.4.so
    syslog-ng 7547 root mem REG 3,3 32040 850414 /lib/librt-2.4.so
    syslog-ng 7547 root mem REG 3,3 126163 850385 /lib/ld-2.4.so
    -- snipped --


    Pointing to a file shows what's interacting with that file
    lsof /var/log/messages

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    syslog-ng 7547 root 4w REG 3,3 217309 834024 /var/log/messages


    The -p switch lets you see what a given process ID has open, which is good for learning more about unknown processes
    lsof -p 10075

    -- snipped --
    sshd 10068 root mem REG 3,3 34808 850407 /lib/libnss_files-2.4.so
    sshd 10068 root mem REG 3,3 34924 850409 /lib/libnss_nis-2.4.so
    sshd 10068 root mem REG 3,3 26596 850405 /lib/libnss_compat-2.4.so
    sshd 10068 root mem REG 3,3 200152 509940 /usr/lib/libssl.so.0.9.7
    sshd 10068 root mem REG 3,3 46216 510014 /usr/lib/liblber-2.3
    sshd 10068 root mem REG 3,3 59868 850413 /lib/libresolv-2.4.so
    sshd 10068 root mem REG 3,3 1197180 850396 /lib/libc-2.4.so
    sshd 10068 root mem REG 3,3 22168 850398 /lib/libcrypt-2.4.so
    sshd 10068 root mem REG 3,3 72784 850404 /lib/libnsl-2.4.so
    sshd 10068 root mem REG 3,3 70632 850417 /lib/libz.so.1.2.3
    sshd 10068 root mem REG 3,3 9992 850416 /lib/libutil-2.4.so
    -- snipped --


    The -t option returns just a PID
    lsof -t -c Mail

    350

    ps aux | grep Mail

    daniel 350 0.0 1.5 405980 31452 ?? S Mon07PM 2:50.28 /Applications/Mail.app



    Advanced Usage

    Using-a allows you to combine search terms, so the query below says, "show me everything running as daniel connected to 1.1.1.1"
    lsof -a -u daniel -i @1.1.1.1

    bkdr 1893 daniel 3u IPv6 3456 TCP 10.10.1.10:1234->1.1.1.1:31337 (ESTABLISHED)


    Using the -t and -c options together you can HUP processes
    kill -HUP `lsof -t -c sshd`

    You can also use the -t with -u to kill everything a user has open
    kill -9 `lsof -t -u daniel`

    lsof +L1 shows you all open files that have a link count less than 1, often indicative of a cracker trying to hide something
    lsof +L1

    (hopefully nothing)



    Conclusion

    This primer just scratches the surface of lsof's functionality. For a full reference, run man lsof or check out the online version. I hope this has been useful to you, and as always, comments and corrections are welcomed.


    References

    The lsof man page:
    http://www.netadmintools.com/html/lsof.man.html



    The original information for this is from: http://dmiessler.com/study/lsof/

    Expand full post here...

    Comments

    Easy linux hosting on Ubuntu Feisty Fawn with Easy Hosting Control Panel

    Hey I dont do my own hosting but I found out a great hosting solution for ubuntu, check it out and let me know what you think..

    Easy Hosting Control Panel is designed for hosting of multiple domains on single machine.
    It uses LAMP(LinuxApacheMysqlPhp).
    Its aim:easily installable,easy usage, non-complex,functional.

    Why use a control panel? Because hosting a domain in an ubuntu/linux system requires many settings to be done. hosting control panel makes these tasks easy, with webbased interface.
    hosting means putting web pages on the internet for general use, as you do now..

    ehcp is the first control panel in this field with its unique features such as: complete php based, object oriented, opensource and free. even install is using php, so it is extremely easy to learn and extensible..

    There are many free hosting control panels, but none of them have these features. some have non-opensource code, some other then php, some is not object oriented..

    ehcp is in beta stage. there are many things to do. but the main skeleton is built in a straight forward way.

    version 0.18.1 released !

    feature overview:

    * php and apt-get based simple install,
    * automatically installs and works: dns, apache, mysql, ftp, email, domains,
    * most easy install: copy & paste in console and watch
    * ready to use after install - at ubuntu
    * adodb and phpmyadmin included
    * object oriented programming using php,
    * easily extendable/modifiable...


    future plans:
    * reseller implementation (soon),
    * subdomain implementation(soon),
    * server/services status,
    * different language support.. (currently english/turkish mixed)
    * plugin system using php
    * auto detection of apt-get and install if not present...

    Installation:
    simply copy and paste followin in your root console,

    wget http://www.ehcp.net/ehcp_0.18.1.tgz
    tar -zxvf ehcp_0.18.1.tgz
    cd ehcp
    ./install.sh

    You may find additional information at following project sites:
    home page: www.ehcp.net
    http://freshmeat.net/projects/ehcp/
    http://www.sourceforge.net/projects/ehcp
    http://code.google.com/p/ehcp/

    http://www.ubuntuforums.org/forumdisplay.php?f=180
    http://www.freewebhostingtalk.com/showthread.php?t=4191
    http://www.webhostingtalk.com/showth...hreadid=519724
    http://forum.iyibirisi.com/viewforum.php?f=3
    http://forum.iyibirisi.com/viewforum.php?f=15

    ehcp hosting control panel primarily supports ubuntu, tested on ubuntu 7.04lts
    but virtually work on any other linux distributions with apt-get installed as well.

    currently it supports linux'es only with apt-get.

    in future, i will also add a feature so that it will detect and install apt-get automatically if not present. this is not the case now.

    but. the control panel will always be focused and tested on ubuntu.
    Ubuntu will be the primary platform for it.
    in fact this is natural because Ubuntu is so easy to maintain...

    you can find demo at: http://www.ehcp.net/demo
    since it is demo, daemon is not running, if it runs, demo becomes real...
    demo username: admin
    pass: 1234


    here is the developers information for your info/questions:
    msn/email: bvidinli@iyibirisi.com
    gmail/skype/yahoo: bvidinli

    you may also find some info here:
    http://forum.iyibirisi.com/viewforum.php?f=3
    http://forum.iyibirisi.com/viewforum.php?f=15

    Expand full post here...

    Comments

    Howto: Extend the Life of Your Thinkpad's Battery (tp_smapi) on Ubuntu Feisty and Gutsy

    You may or may not be aware that lithium ion batteries (like those present in the newer Thinkpad models) survive best when kept charged between 30%-85%. They should not be kept fully charged, and should be left off for long periods of time charged to ~%40. See here for more tips on Thinkpad battery treatment.

    One way to extend the life of your Thinkpad's battery is to control the way it charges -- that is, to make sure that you keep it in the 30%-85% charged range whenever possible. This is possible easily and quickly through the tp_smapi kernel module.

    (1) Download the tp_smapi code here. For the examples presented here, let's assume that you download the tarball to your home directory (~/):

    Code:

    wget http://easynews.dl.sourceforge.net/sourceforge/tpctl/tp_smapi-0.32.tgz ~/tp_smapi-0.32.tgz
    (2) Make sure that you have the necessary pre-requisites installed. You must have the necessary compiler and build tools (build-essentials), and the kernel source code for your kernel (linux-source-`uname -r`). For the example below, it is assumed that you are using the newest kernel in the repository:

    Code:

    sudo aptitude install build-essential linux-source-2.6.22
    (2b) If you haven't gotten and extracted the kernel source code before, goto /usr/src, and extract the kernel source you got from the above step (which should be in a file called linux-source-2.6.22.tar.bz2):

    Code:

    sudo -s
    cd /usr/src
    tar -xjf linux-source-2.6.22.tar.bz2

    This should extract the source to linux-source-2.6.22. Be patient... decompressing bzip2 files takes forever! (If you'd care to speed it up, however, there is a program in the Ubuntu repositories called pbzip2 which can decompress it with multiple threads, taking advantage of both CPU cores.)

    (2c) Now go into /lib/modules/`uname -r`. Both the "build" and "source" symbollic links should point to your source folder. You can check this by observing the output of ln -l, or just create it this way with the following:

    Code:

    sudo -s
    rm -i /lib/modules/`uname -r`/source /lib/modules/`uname -r`/build
    ln -s /usr/src/linux-source-2.6.22 /lib/modules/`uname -r`/source
    ln -s /usr/src/linux-source-2.6.22 /lib/modules/`uname -r`/build

    (3) Extract the tp_smapi code:

    Code:

    tar -xzf ~/tp_smapi-0.32.tgz
    (4) Change to the new directory, make and install tp_smapi:

    Code:

    cd tp_smapi-0.32 && make && sudo make install
    Should you want to use HDAPS (the IBM Active Protection System Linux Drive) in the future, include the HDAPS module in your build:

    Code:

    cd tp_smapi-0.32 && make && sudo make install HDAPS=1
    (5) Make sure that the tp_smapi module is loaded upon startup:

    Code:

    sudo -s;
    echo "tp_smapi" >> /etc/modules

    (6) Now reboot, or load the tp_smapi module:

    Code:

    sudo modprobe tp_smapi
    (7) To set the charge thresholds, edit the following files:

    Quote:

    /sys/devices/platform/smapi/BAT0/start_charge_thre sh
    /sys/devices/platform/smapi/BAT0/stop_charge_thres h
    For example, to keep the charge constantly varying between 30 and 85% while plugged into AC, use the following commands:

    Code:

    sudo -s;
    echo "30" > /sys/devices/platform/smapi/BAT0/start_charge_thresh;
    echo "85" > /sys/devices/platform/smapi/BAT0/stop_charge_thresh;

    This may interfere with your ACPI battery charge reports, since it will technically report "charged" at 30% battery (even though it will continue to cycle between 30 and 85 while plugged in). Thus, for those who use a system monitor (such as Conky or GKrellM), the following may be a more practical solution:

    Code:

    sudo -s;
    echo "81" > /sys/devices/platform/smapi/BAT0/start_charge_thresh;
    echo "85" > /sys/devices/platform/smapi/BAT0/stop_charge_thresh;

    This will keep the charge below 85% when charged.

    Hope this helps! Most of this information has come from here. Please let me know if you have any problems.

    Expand full post here...

    Comments

    Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories

    This tutorial provides step-by-step instructions on how to install Xen on an Ubuntu Feisty Fawn (Ubuntu 7.04) server system (i386). You can find all the software used here in the Ubuntu repositories, so no external files or compilation are needed.

    Xen lets you create guest operating systems (*nix operating systems like Linux and FreeBSD), so called "virtual machines" or domUs, under a host operating system (dom0). Using Xen you can separate your applications into different virtual machines that are totally independent from each other (e.g. a virtual machine for a mail server, a virtual machine for a high-traffic web site, another virtual machine that serves your customers' web sites, a virtual machine for DNS, etc.), but still use the same hardware. This saves money, and what is even more important, it's more secure. If the virtual machine of your DNS server gets hacked, it has no effect on your other virtual machines. Plus, you can move virtual machines from one Xen server to the next one.



    I will use Ubuntu Feisty Fawn (i386) for the host OS (dom0) and Ubuntu Dapper Drake and Ubuntu Edgy Eft for the guest operating systems (domU).

    This howto is meant as a practical guide; it does not cover the theoretical backgrounds. They are treated in a lot of other documents in the web.

    This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!


    1 Install The Ubuntu Feisty Fawn Host System (dom0)

    You can install the host system (dom0) as shown in the chapters one to seven of this tutorial: http://www.howtoforge.com/perfect_setup_ubuntu704 (of course, you don't have to do this if you already have an Ubuntu 7.04 host system that you want to use).

    Make sure that the root account is enabled, because we must run all the steps from this tutorial as root user. Also, if you want to use vi as your text editor (as suggested by this tutorial), you should run

    apt-get install vim-full

    The vim-full package makes sure that the vi text editor behaves as expected (without vim-full, you might experience some strange behaviour in the vi text editor).

    dom0's FQDN in this example will be server1.example.com. server1.example.com's IP address will be 192.168.0.100 in this tutorial, and the gateway I use is 192.168.0.1, so the virtual machines will have to use that one, too.

    2 Install Xen

    To install Xen and all needed dependencies, all we have to do is run the following command:

    apt-get install ubuntu-xen-server

    This will also install the xen-tools package which we use later on to create virtual machines.

    Now we edit /etc/xen/xend-config.sxp. Comment out the (network-script network-dummy) line and add (network-script network-bridge) right above the (vif-script vif-bridge) line, like this:

    vi /etc/xen/xend-config.sxp

    [...]
    #(network-script network-dummy)
    [...]
    (network-script network-bridge)
    (vif-script vif-bridge)
    [...]

    We also need to add the loop module to the kernel every time we boot our system, so edit /etc/modules and add the loop module at the end of the file:

    vi /etc/modules

    [...]
    loop max_loop=64

    Now take a look at the /boot directory to see which kernels and ramdisks are installed:

    ls -l /boot/

    root@server1:~# ls -l /boot/
    total 18780
    -rw-r--r-- 1 root root 414210 2007-04-15 10:19 abi-2.6.20-15-server
    -rw-r--r-- 1 root root 72726 2007-04-05 08:08 config-2.6.19-4-server
    -rw-r--r-- 1 root root 83298 2007-04-15 08:33 config-2.6.20-15-server
    drwxr-xr-x 2 root root 4096 2007-06-25 22:00 grub
    -rw-r--r-- 1 root root 6325928 2007-06-25 21:56 initrd.img-2.6.19-4-server
    -rw-r--r-- 1 root root 6802658 2007-06-25 23:10 initrd.img-2.6.20-15-server
    -rw-r--r-- 1 root root 94600 2006-10-20 13:44 memtest86+.bin
    -rw-r--r-- 1 root root 783333 2007-04-05 08:08 System.map-2.6.19-4-server
    -rw-r--r-- 1 root root 812139 2007-04-15 10:20 System.map-2.6.20-15-server
    -rw-r--r-- 1 root root 1726726 2007-04-05 08:08 vmlinuz-2.6.19-4-server
    -rw-r--r-- 1 root root 1763308 2007-04-15 10:19 vmlinuz-2.6.20-15-server
    -rw-r--r-- 1 root root 259025 2007-03-24 17:03 xen-3.0-i386-pae.gz
    root@server1:~#

    The /boot/vmlinuz-2.6.19-4-server kernel is the Xen kernel that got installed together with the ubuntu-xen-server package, and /boot/initrd.img-2.6.19-4-server is its ramdisk. We will need these soon.

    I want to store my virtual machines in the /home/xen directory, therefore I create it now:

    mkdir /home/xen

    We will use xen-tools to create virtual machines. xen-tools make it very easy to create virtual machines - please read this tutorial to learn more: http://www.howtoforge.com/xen_tools_xen_shell_argo. As mentioned before, the xen-tools package got installed together with the ubuntu-xen-server package.

    Now we edit /etc/xen-tools/xen-tools.conf. This file contains the default values that are used by the xen-create-image script unless you specify other values on the command line. I changed the following values and left the rest untouched:

    vi /etc/xen-tools/xen-tools.conf

    [...]
    dir = /home/xen

    dist = edgy

    gateway = 192.168.0.1
    netmask = 255.255.255.0

    passwd = 1

    kernel = /boot/vmlinuz-2.6.19-4-server
    initrd = /boot/initrd.img-2.6.19-4-server

    mirror = http://de.archive.ubuntu.com/ubuntu/
    [...]

    The dist line holds the default distribution that you want to install in a virtual machine. Although a comment in the /etc/xen-tools/xen-tools.conf mentions that at this time the only supported Ubuntu flavour is Dapper Drake (dapper), Edgy Eft (edgy) works as well (Feisty Fawn aka feisty does not at this time).

    The kernel line must contain our Xen kernel, and the initrd line its ramdisk.

    The passwd = 1 line makes that you can specify a root password when you create a new guest domain. In the mirror line specify an Ubuntu mirror close to you.

    Make sure you specify a gateway and netmask. If you don't, and you don't specify a gateway and netmask on the command line when using xen-create-image, your guest domains won't have networking even if you specified an IP address!

    Now reboot the system:

    shutdown -r now

    If your system reboots without problems, then everything is fine!

    Run

    uname -r

    and your new Xen kernel should show up:

    root@server1:~# uname -r
    2.6.19-4-server
    root@server1:~#

    3 Creating Virtual Machines (domU)

    Now let's create our first guest domain, xen1.example.com, running Dapper Drake (dapper) with the IP address 192.168.0.101:

    xen-create-image --hostname=xen1.example.com --size=2Gb --swap=256Mb --ide \
    --ip=192.168.0.101 --netmask=255.255.255.0 --gateway=192.168.0.1 --force \
    --dir=/home/xen --memory=64Mb --arch=i386 --kernel=/boot/vmlinuz-2.6.19-4-server \
    --initrd=/boot/initrd.img-2.6.19-4-server --debootstrap --dist=dapper \
    --mirror=http://de.archive.ubuntu.com/ubuntu/ --passwd

    A lot of switches are unnecessary here because we specified the same details in /etc/xen-tools/xen-tools.conf but it shows that you can specify the desired settings either on the command line or in /etc/xen-tools/xen-tools.conf. Please make sure that you specify --ide, otherwise your virtual machine might not boot!

    (To learn more about the available options, take a look at the xen-create-image man page:

    man xen-create-image

    The xen-create-image command will now create the xen1.example.com virtual machine for us. This can take a few minutes. The output should be similar to this one:

    root@server1:~# xen-create-image --hostname=xen1.example.com --size=2Gb --swap=256Mb --ide \
    > --ip=192.168.0.101 --netmask=255.255.255.0 --gateway=192.168.0.1 --force \
    > --dir=/home/xen --memory=64Mb --arch=i386 --kernel=/boot/vmlinuz-2.6.19-4-server \
    > --initrd=/boot/initrd.img-2.6.19-4-server --debootstrap --dist=dapper \
    > --mirror=http://de.archive.ubuntu.com/ubuntu/ --passwd

    General Infomation
    --------------------
    Hostname : xen1.example.com
    Distribution : dapper
    Fileystem Type : ext3

    Size Information
    ----------------
    Image size : 2Gb
    Swap size : 256Mb
    Image type : sparse
    Memory size : 64Mb
    Kernel path : /boot/vmlinuz-2.6.19-4-server
    Initrd path : /boot/initrd.img-2.6.19-4-server

    Networking Information
    ----------------------
    IP Address 1 : 192.168.0.101
    Netmask : 255.255.255.0
    Gateway : 192.168.0.1


    Creating swap image: /home/xen/domains/xen1.example.com/swap.img
    Done

    Creating disk image: /home/xen/domains/xen1.example.com/disk.img
    Done

    Creating ext3 filesystem on /home/xen/domains/xen1.example.com/disk.img
    Done

    Installing your system with debootstrap mirror http://de.archive.ubuntu.com/ubuntu/
    Done

    Running hooks
    Done

    No role script specified. Skipping

    Creating Xen configuration file
    Done
    Setting up root password
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully
    All done


    Logfile produced at:
    /var/log/xen-tools/xen1.example.com.log
    root@server1:~#

    There should now be a xen1.example.com configuration file - /etc/xen/xen1.example.com.cfg. Take a look at it to become familiar with virtual machines configuration files:

    cat /etc/xen/xen1.example.com.cfg


    #
    # Configuration file for the Xen instance xen1.example.com, created on
    # Tue Jun 26 12:50:50 2007.
    #


    #
    # Kernel + memory size
    #
    kernel = '/boot/vmlinuz-2.6.19-4-server'


    ramdisk = '/boot/initrd.img-2.6.19-4-server'

    memory = '64'


    #
    # Disk device(s).
    #
    root = '/dev/hda1 ro'

    disk = [ 'file:/home/xen/domains/xen1.example.com/disk.img,hda1,w', 'file:/home/xen/domains/xen1.example.com/swap.img,hda2,w' ]

    #
    # Hostname
    #
    name = 'xen1.example.com'


    #
    # Networking
    #
    vif = [ 'ip=192.168.0.101' ]

    #
    # Behaviour
    #
    on_poweroff = 'destroy'
    on_reboot = 'restart'
    on_crash = 'restart'

    To start the virtual machine, run

    xm create /etc/xen/xen1.example.com.cfg

    Run

    xm console xen1.example.com

    to log in on that virtual machine (type CTRL+] if you are at the console, or CTRL+5 if you're using PuTTY to go back to dom0), or use an SSH client to connect to it (192.168.0.101).

    To get a list of running virtual machines, type

    xm list

    The output should look like this:

    root@server1:~# xm list
    Name ID Mem(MiB) VCPUs State Time(s)
    Domain-0 0 327 1 r----- 687.7
    xen1.example.com 1 64 1 -b---- 22.4
    root@server1:~#

    To shut down xen1.example.com, do this:

    xm shutdown xen1.example.com

    If you want vm01 to start automatically at the next boot of the system, then do this:

    ln -s /etc/xen/xen1.example.com.cfg /etc/xen/auto

    Here are the most important Xen commands:

    xm create -c /path/to/config - Start a virtual machine.
    xm shutdown - Stop a virtual machine.
    xm destroy - Stop a virtual machine immediately without shutting it down. It's as if you switch off the power button.
    xm list - List all running systems.
    xm console - Log in on a virtual machine.
    xm help - List of all commands.

    Let's create a second vm, xen2.example.com with the IP address 192.168.0.102 and Edgy Eft (edgy) as the operating system:

    xen-create-image --hostname=xen2.example.com --size=2Gb --swap=256Mb --ide \
    --ip=192.168.0.102 --netmask=255.255.255.0 --gateway=192.168.0.1 --force \
    --dir=/home/xen --memory=64Mb --arch=i386 --kernel=/boot/vmlinuz-2.6.19-4-server \
    --initrd=/boot/initrd.img-2.6.19-4-server --debootstrap --dist=edgy \
    --mirror=http://de.archive.ubuntu.com/ubuntu/ --passwd

    Afterwards, you can start xen2.example.com like this:

    xm create /etc/xen/xen2.example.com.cfg

    and shut it down like this:

    xm shutdown xen2.example.com

    A list of all virtual machines that were created with the xen-create-image command is available under

    xen-list-images

    root@server1:~# xen-list-images
    Name: xen1.example.com
    Memory: 64
    IP: 192.168.0.101

    Name: xen2.example.com
    Memory: 64
    IP: 192.168.0.102
    root@server1:~#

    To learn more about what you can do with xen-tools, take a look at this tutorial: http://www.howtoforge.com/xen_tools_xen_shell_argo

    4 Links


    Expand full post here...

    Comments

    How To Install VMware Server On Ubuntu 7.04 (Feisty Fawn)

    This tutorial provides step-by-step instructions about how to install the free VMware Server on an Ubuntu 7.04 (Feisty Fawn) system. With VMware Server you can create and run guest operating systems ("virtual machines") such as Linux, Windows, FreeBSD, etc. under a host operating system. This has the benefit that you can run multiple operating systems on the same hardware which saves a lot of money, and you can move virtual machines from one VMware Server to the next one (or to a system that has the VMware Player which is also free).

    Build Environment

    Make sure you have the needed build environment and tools to compile the vmware modules for the kernel.

    aptitude install linux-headers-`uname -r` build-essential

    aptitude install xinetd

    Downloading VMware Server

    Vmware Server can be downloaded from:

    http://www.vmware.com/download/server/

    After accepting the EULA grab the vmware server .tgz file (around 102MB).

    Note: As of right now VMware Server won't compile correctly on Feisty without patching the vmmon file.

    Patch information can be found here: http://www.vmware.com/community/thread.jspa?messageID=76957&tstart=0

    The patch can be downloaded here: http://ftp.cvut.cz/vmware/vmware-any-any-update109.tar.gz

    Installing VMware Server

    Untar the VMware Server package:


    tar -xzf /Path/To/VMware-server-1.0.3-xxx.tar.gz

    Change into the install directory:

    cd vmware-server-distrib

    Run the installer:

    sudo vmware-install.pl

    Choose defaults to questions until it asks:

    Before running VMware Server for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this program to invoke the command for you now? [yes]

    Enter no and quit the install. To install the patch cd back to your start directory:

    cd ..

    Untar the patch:

    tar xvzf /Path/To/vmware-any-any-update109.tar.gz

    Enter the directory:

    cd vmware-any-any-update109

    Run the patch script:

    sudo ./runme.pl

    It should prompt you to run vmware-config.pl, choose yes at this time. If it doesn't you can always run the config script manually:

    sudo vmware-config.pl

    Again you can hit enter to choose the defaults to all the questions, though you will probably want to manually choose which networking features you want. To access the server run

    vmware

    for the VMware Server Console.


    Expand full post here...

    Comments

    Setup and Spoof Deluge Bittorrent Client for Private torrent Trackers


    Ok i am a member of sceneaccess.org a private bittorrent site for the underground scene, and I was stuck using transmission which is a decent client but I prefer Deluge. Here is a simple howto, to setup Deluge to spoof the client id to uTorrent...


    First thing open up a Terminal and sudo -s and enter your sudo password

    Then download Deluge to your home directory from here

    Now we gotta download the correct libraries and tools to compile Deluge, copy/paste this:

    apt-get install g++ make python-all-dev python-all python-dbus python-gtk2 python-xdg python-support libboost-dev libboost-thread-dev libboost-date-time-dev libboost-filesystem-dev libboost-serialization-dev libssl-dev zlib1g-dev


    Ok now extract Deluge:

    tar zxvf deluge-0.5.5.tar.gz


    Change dir to deluge:
    cd deluge-0.5.5


    Now here is the hackery, the editing of deluge_core.cpp in the src/ directory
    or if your lazy scroll to the bottom for the file... :)
    gedit src/deluge_core.cpp

    press ctrl I to goto line 357
    It looks like:
    M_ses = new session(fingerprint(client_ID, v1, v2, v3, v4));"

    Now we replace the line with this:
    M_ses = new session(fingerprint("UT", 1, 6, 1, 0));" (for uTorrent 1.6.1.0)";
    Save it!
    ctrl S
    Exit ctrl Q

    Lets make it:
    type:
    make
    Wait for it to compile
    then install it:
    make install

    Run it!
    press alt F2 and type in deluge
    Thats it, your sp00fed! :)

    Download deluge_core.cpp sp00fed edition for deluge 0.5.5


    Expand full post here...

    Comments

    Linux at Dell


    Here is an interesting & fun video about the dell linux relationship :)

    Expand full post here...

    Comments

    OpenOffice 2.3 Released (direct download)

    It seems OpenOffice.org has released a new version of there powerful software, their release candidate 3 is 2.3 according to there developer site. Here is a few download locations...
    Direct Download Here
    Download Linux rpm Here
    Download Linux rpm with jre Here
    Download Winblows Version Here
    Download Winblows Version with jre Here
    Release Notes

    Expand full post here...

    Comments

    Pidgin 2.2.0 package released for Ubuntu Feisty


    This release incorporate improvements from Google Summer of Code 2007, Myspace IM, and bug fixes.

    This release includes enhancement on the XMPP protocol made by Andreas Monitzer during the Google Summer of Code for Adium, more information can be found on Adium page.

    Another feature I really enjoy is the ability to revert to the old gaim layout. For instance, a new entry in the menu Buddy->Show allows you to show protocol icons in the buddy list, right-clicking the empty space in the formatting toolbar allows you to toggle back to the old "ungrouped" version.

    Yet, much more is shipped with this release of pidgin. Here is the complete changelog:

    Version 2.2.0 (09/13/2007):
    http://developer.pidgin.im/query?status=closed&milestone=2.2.0

    Libpurple:
    * New protocol plugin: MySpaceIM (Jeff Connelly, Google Summer of
    Code)
    * XMPP enhancements. See
    http://www.adiumx.com/blog/2007/07/soc-xmpp-update.php (Andreas
    Monitzer, Google Summer of Code for Adium)
    * Certificate management. Libpurple will validate certificates on
    SSL-encrypted protocols (William Ehlhardt, Google Summer of Code)
    * Some adjustments were made to fix sending messages when using
    the MSN HTTP method. (Laszlo Pandy)
    * Yahoo! Chat is fixed.
    * Some AIM file transfer issues between Pidgin and other clients
    have been fixed. (Kyryll A Mirnenko)
    * Properly restore idle status and time for AIM and ICQ accounts
    when they reconnect after being disconnected.

    Pidgin:
    * Insert Horizontal Rules and Strikethrough text from toolbar.
    * Option to show protocol icons in the buddy list, from the
    Buddies > Show menu. (Justin Heiner)
    * Ability to build with native, non-X11 GTK+ on OSX. (Anders
    Hasselqvist)
    * Remember the 'Enable Sounds' setting for a conversation.
    * Right-clicking the empty space in the formatting toolbar
    allows you to toggle back to the old "ungrouped" version.
    * Protocols supporting account registration via Pidgin now show
    a descriptive checkbox instead of a vague "Register" button.
    * Fixed a bug where a tab would be shown on single conversations
    when tabs were disabled.

    Finch:
    * Per-conversation mute and logging options (accessible from the menu).

    To download and install add these two lines to System-> Administration-> Software Sources-> Third Party Software:
    deb http://repository.debuntu.org/ feisty multiverse
    deb-src http://repository.debuntu.org/ feisty multiverse

    Then refresh Synaptic or sudo apt-get update && apt-get install pidgin
    There ya go :)

    Expand full post here...

    Comments

    Export Pictures to Picasa, Flickr,SmugMug,23hq,web album with Ubuntu


    I have searched all over the web for an application/hack to do this and I finally found something since google's picasa doesnt do it yet which is sad...

    Download F-Spot Here
    open a terminal where you downloaded f-spot
    apt-get install sqlite
    dpkg -i f-spot*.deb
    Then go to Applications-> Graphics-> F-Spot Photo Manager
    Click on import to import your pictures, and select the picture album location.
    Then once its done importing, you can then export pictures.

    First to do this you must select the pictures you want exported by holding in ctrl and selecting the pictures with your mouse.

    Then click File-> Export-> PicasaWeb...

    Click Add next to gallery, and enter your picasa/google username and password.
    Click OK

    Now you can add album's, and export the photo's you selected, you can make them public or private when you click ok to export

    Expand full post here...

    Comments

    Make your WPA Uncrackable and Unhackable On Ubuntu or any OS

    I have known about this page for quite a while now, I think I decided not to share it because I hack peoples wep/wpa networks lol.. But anyways this site generates completely random Ultra High Security passwords that are generated just for you, the site never gives the same password twice and uses some extremely advanced scrambling technology to generate these passphrases.

    Wep is easily crackable but if you use a stronger/longer password it may take longer to crack.

    As for WPA, using an ultra secure password is pretty much uncrackable to my knowledge.

    "Every time this page is displayed, our server generates a unique set of custom, high quality, cryptographic-strength password strings which are safe for you to use:"

    Here is a c/p from the site
    What makes these perfect and safe?

    Every one is completely random (maximum entropy) without any pattern, and the cryptographically-strong pseudo random number generator we use guarantees that no similar strings will ever be produced again.

    Also, because this page will only allow itself to be displayed over a snoop-proof and proxy-proof high-security SSL connection, and it is marked as having expired back in 1999, this page which was custom generated just now for you will not be cached or visible to anyone else.

    Therefore, these password strings are just for you. No one else can ever see them or get them. You may safely take these strings as they are, or use chunks from several to build your own if you prefer, or do whatever you want with them. Each set displayed are totally, uniquely yours — forever.

    The "Application Notes" section below discusses various aspects of using these random passwords for locking down wireless WEP and WPA networks, for use as VPN shared secrets, as well as for other purposes.

    The "Techie Details" section at the end describes exactly how these super-strong maximum-entropy passwords are generated (to satisfy the uber-geek inside you).

    Generate your Ultra Secure Password Here

    Expand full post here...

    Comments

    Dell releases custom Ubuntu 7.04 ISOs with drivers and fixes

    Dell has released a custom "remastered" Ubuntu 7.04 installation CD ISO that can be used to install Ubuntu on an Inspiron 1420 or 530. The ISO automatically installs all of the drivers and fixes that are required to make Ubuntu fully functional on those systems.

    Dell laptops with Ubuntu preinstalled currently ship with a regular Ubuntu 7.04 installation CD that can be used to reinstall the operating system from scratch after reformatting. Unfortunately, the default Ubuntu installation does not include the best drivers so dell has a new remastered custom ubuntu cd just for you.

    The "remastered" installation ISO could also be used by Inspiron 1420 and 530 owners who didn't buy their laptops with Ubuntu preinstalled, but wish to install it themselves...

    Dell Remastered Ubuntu 7.04 ISO

    Dell Linux Engineering team has a remastered copy of the Ubuntu 7.04 Live CD available for download. It includes native system hardware support and many of the fixes listed below. The media will help you get the system installed and running with the necessary drivers.

    The media has been created specifically to resolve issues on the following system:

    • Inspiron E1505N
    • Inspiron 1420N
    • Inspiron 530N

    Download Dell Ubuntu Image

    DISCLAIMER: These images are both unofficial Dell recovery media. They are not officially Dell-supported. Do not call Dell Technical support with questions about this image, or software installed by this image, as they will not be able to help you. To get help, please send an email to the Dell linux-desktops mailing list.

    • Latest Dell Install DVD Image
    • Latest Dell Install CD Image


    NOTE: After installation, be sure to update to the latest system software.


    NOTE: The CD image has been modified to remove components such as OpenOffice to make room for additional Dell specific drivers and fixes.



    Expand full post here...

    Comments

    Ubuntu VS Fedora on Google Trends

    ubuntu fedora
    It seems fedora is loosing popularity and Ubuntu is rapidly gaining popularity, although fedora has been around and has a bit of seniority since it is sponsored by Red Hat Linux. I used to run Red Hat Linux and I loved it, although Ubuntu's Simplicity, configurability, stability, speed, and ease of use completely got me. It takes me 25 minutes to completely reinstall Ubuntu and have all my applications restored via AptOnCD. Ubuntu is also headed by a very Intelligent & Inspiring Person, Mark Shuttleworth
    Ubuntu has great leadership and a great community, I hope everyone gets to be a part of it someday.

    Expand full post here...

    Comments

    Ubuntu VS PcLinuxOS on Google Trends


    pclinuxos ubuntu

    I really dont see why distrowatch.org is reporting that PCLinuxOS is more popular, id think the worlds top search engine stats should be actively on Distrowatch.org instead of their pathetic rating system, check out these stats!

    Expand full post here...

    Comments

    Clicky Web Analytics