trick – create a live installable copy of your system June 21st, 2009
trick – create a live installable copy of your system
by gnudude » 2009-05-06 13:02
I made a folder to work in
mkdir work
changed to that folder
cd work
changed to root
su
told live-helper what I wanted to do
lh_config –bootstrap copy –debian-installer live
told live-helper to build the ISO
lh_build
when it is done binary.iso is the finished iso
and that was that….
how to install KDE on Debian June 21st, 2009
To install KDE on Debian you have several options.
1. Use the KDE Debian CD
2. Use a minimal install (e.g. netinstall) CD to install a base system then perform one of the following actions.
For a minimal KDE installation:
aptitude install kde-core xorg kdm
For a full KDE installation:
aptitude install kde xorg
For an installation of KDE analogous to the KDE CD including the desktop-base goodies (GIMP, Iceweasel, debian-specific artwork):
aptitude install kde-desktop
Alternatively you can boot a netinstall CD by feeding the following command at the boot prompt:
install tasks="kde-desktop, standard"
Or for the graphical installer
installgui tasks="kde-desktop, standard"
- apt-get could be used in place except when install kde-desktop as this is a task and requires aptitude or tasksel
Users for whom English is not a native language may want to install a localization package. The name of those packages has the form “kde-i18n-language“, where language is a code representing a locale which usually has two letters resembling or identical to the value of $LANG for the same language. For example, kde-i18n-fr for French.
It is unlikely that any KDE user will only use the packages installed by kde-core. People installing kde-core will usually add extra packages they want one by one. The main advantages of not installing kde is to save disk space (typically, a single-user system with kde-core and extra KDE packages installed manually can save about 300 MB) and installation time. Installing kde-desktop installs even more. It is more difficult to install only kde-core before getting a first touch with KDE, because many features will be missing. Installing kde the first time lets see the potential and eventually know that something is missing and should be possible to get if only kde-core is installed in a later installation.
However, if disk space is missing or some other reason makes one install only kde-core on a first installation, one may check the dependencies of kde to see what packages look useful and could be added. The kde metapackage depends only on other metapackages, such as kdeutils. One can look at the descriptions of the dependencies of the metapackages that the kde metapackage depends on and decide which ones should be installed. For example, kdeutils depends on ark, which is worth installing for most KDE users.
kde meta-package will install the following additional meta-packages which may also be selected individually with apt-get or aptitude:
kdeaccessibilitykdeaddons
kdeadmin
kdeartwork
kdeedu
kdegames
kdegraphics
kdemultimedia
kdenetwork
kdepim
kdetoys
kdeutils kdewebdev
courtesy http://wiki.debian.org/KdeDebInstall
How To Install VMware Server On Debian Sarge June 21st, 2009
Since Howtoforge.com is available and keeps tutorials up and active use thier website following this link
http://www.howtoforge.com/debian_sarge_vmware_server_howto
and for page 2
Howto: Install RPM files on Debian and Ubuntu June 21st, 2009
Some time you might find some applications are having only .rpm files but you want a .deb package for your debian,Ubuntu and other debian derived ditributions.If you cant find .deb debian package in any of the debian,ubuntu repositories or elsewhere, you can use the alien package converter to install the .rpm file.
Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats. If you want to use a package from another distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it.
Despite the large version number, alien is still (and will probably always be) rather experimental software. It has been used by many people for many years, but there are still many bugs and limitations.
Alien should not be used to replace important system packages, like sysvinit, shared libraries, or other things that are essential for the functioning of your system. Many of these packages are set up differently by Debian and Red Hat, and packages from the different distributions cannot be used interchangably. In general, if you cant uninstall the package without breaking your system, dont try to replace it with an alien version.
Install alien in debian
#apt-get install alien
This will install all the required packages.Now you can start converting your .rpm files to .deb packages.
Available Options for alien
Convert the package.rpm into a package.deb
#alien -d package-name.rpm
Convert the package.rpm into a package.deb, and install the generated package.
#alien -i package-name.rpm
If you want to keeps alien from changing the version number use the following command
#alien -k rpm-package-file.rpm
Example
Suppose we have a avg antivirus avg71lms-r30-a0782.i386.rpm file
To convert .rpm to debian
#alien -k avg71lms-r30-a0782.i386.rpm
Now you should be having avg71lms-r30-a0782.i386.deb file
To install .deb file
#dpkg -i avg71lms-r30-a0782.i386.deb
If you dont use -k option you should see avg71lms_r30-1_i386.deb file the difference is it will add 1
Install alien in Ubuntu
$sudo apt-get install alien
You can check the above section for available options
Example
Suppose we have a avg antivirus avg71lms-r30-a0782.i386.rpm file
To convert .rpm to debian
$sudo alien -k avg71lms-r30-a0782.i386.rpm
Now you should be having avg71lms-r30-a0782.i386.deb file
To install .deb file
$sudo dpkg -i avg71lms-r30-a0782.i386.deb
If you dont use -k option you should see avg71lms_r30-1_i386.deb file the difference is it will add 1
courtesy http://anhblog.net/pc-place/linux-unix/howto-install-rpm-files-on-debian-and-ubuntu/
Install Ampache audio streaming server on Debian 4.0 Etch June 21st, 2009
Ampache is a software that allow you to stream your audio files on Internet. Before choosing this tool, i’ve tried Jinzora and KPlaylist, but Jinzora is way too complex and KPlaylist way to simple
. Ampache is a great tool, simple of use, and with many functionnalities that fit me well. This article help you to install Ampache on Debian 4.0 Etch
Dependencies
First, you need a HTTP server with PHP support. You can for exemple use Lighttpd as described in my article Install Lighttpd and PHP 5 on Debian 4.0 Etch.
We add the Debian Multimedia repository in order to make Lake available:
/bin/echo "# Debian Multimedia Etch repository
deb http://www.debian-multimedia.org etch main" \
| /usr/bin/tee /etc/apt/sources.list.d/etch-debian-multimedia.list
We download the GPG key signing these repositories:
/usr/bin/gpg --keyserver pgp.mit.edu --recv-key 07DC563D1F41B907 /usr/bin/gpg -a --export 07DC563D1F41B907 | /usr/bin/apt-key add -
We update the list of available packages:
/usr/bin/apt-get update
We install the needed PHP modules, and additionnal software for file transcoding:
/usr/bin/apt-get install php5-mysql php5-xmlrpc mysql-client-5.0 flac \
mp3splt lame faad ffmpeg vorbis-tools
Install
We download the last Ampache version. In order to do this, choose the version you want to install:
VERSION=3.4
Download the Ampache sources:
/usr/bin/wget http://ampache.org/downloads/ampache-$VERSION.tar.gz \
--output-document=/tmp/ampache-$VERSION.tar.gz
Once the download complete, extract the file into the temporary folder:
/bin/tar --directory=/tmp -xzf /tmp/ampache-$VERSION.tar.gz
And move the created folder: :
/bin/mv /tmp/ampache-$VERSION /opt/ampache
Create a symbolic link to make Ampache available to the HTTP server:
/bin/ln -s /opt/ampache /var/www/ampache
We move configuration files to a place that fit them better:
/bin/mv /opt/ampache/config /etc/ampache /bin/ln -s /etc/ampache /opt/ampache/config
Once this done, we create the Ampache database. In order to do this, I encourage you to follow my howto MySQL for Debian 4.0 Etch.
Warning : If you have followed my howto, you can skip this lines. Otherwise, replace the bold text with the ones corresponding to your MySQL database:
MYSQL_DB=AMPACHE MYSQL_USERNAME=ampache MYSQL_USERPWD=ampache_password
Once the database created, you need to create the tables. This is done by:
/usr/bin/mysql --user=$MYSQL_USERNAME --password=$MYSQL_USERPWD $MYSQL_DB \
< /opt/ampache/sql/ampache.sql
You now need to update Ampache configuration. These command lines do the trick:
/bin/cp /etc/ampache/ampache.cfg.php.dist /etc/ampache/ampache.cfg.php
/bin/sed -i \
-e "s/;\(web_path[^=]*=\).*/\1 \"\/ampache\"/" \
-e "s/\(database_name =\).*/\1 \"$MYSQL_DB\"/" \
-e "s/\(database_username =\).*/\1 \"$MYSQL_USERNAME\"/" \
-e "s/\(database_password =\).*/\1 \"$MYSQL_USERPWD\"/" \
/etc/ampache/ampache.cfg.php
Once this done, you only need to create a admin account. This can be done by using this URL:
You can now delete the PHP file used to install Ampache:
/bin/rm /opt/ampache/install.php
Your Ampache install should be working now. You only need to place your audio files on your server, and configure the corresponding catalogs.
Files transcoding
In order to stream all kind of audio files, we configure Ampache to transcode into MP3 other audio file formats. First, we disable existing settings:
/bin/sed -i -e 's/^transcode_/;transcode_/g' /etc/ampache/ampache.cfg.php
And we insert the lines corresponding to our transcoding configuration:
echo ' ;###################################################### ; These are commands used to transcode non-streaming ; formats to the target file type for streaming. transcode_m4a = true transcode_m4a_target = mp3 transcode_flac = true transcode_flac_target = mp3 transcode_mp3 = false transcode_mp3_target = mp3 transcode_mpc = true transcode_mpc_target = mp3 transcode_MPC = true transcode_MPC_target = mp3 transcode_ogg = true transcode_ogg_target = mp3 transcode_wma = true transcode_wma_target = mp3 ; These are the commands that will be run to transcode the file transcode_cmd_flac = "flac -dc %FILE% | lame -q 2 -b %SAMPLE% -S - - " transcode_cmd_m4a = "faad -f 2 -w %FILE% | lame -r -b %SAMPLE% -S - -" transcode_cmd_mp3 = "mp3splt -qnf %FILE% %OFFSET% %EOF% -o - | lame --mp3input -q 2 -b %SAMPLE% -S - -" transcode_cmd_ogg = "oggdec -Q %FILE% -o - | lame -q 2 -b %SAMPLE% -S - -" transcode_cmd_wma = "ffmpeg -i %FILE% -f wav - | lame -q 2 -b %SAMPLE% -S - -" transcode_cmd_mpc = "ffmpeg -i %FILE% -f wav - | lame -q 2 -b %SAMPLE% -S - -" transcode_cmd_MPC = "ffmpeg -i %FILE% -f wav - | lame -q 2 -b %SAMPLE% -S - -" ' | /usr/bin/tee -a /etc/ampache/ampache.cfg.php
Going deeper
Music Player Daemon
It is possible to use Ampache to control a “MPD”. It allow you to use your Ampache server to play sound locally (aka. on its sound card). It is very usefull if you want to use one of your computers as a network controled Jukebox. I will not describe howto to setup such a thing, since i don’t need it, but I am willing to point you this feature.
Ampache bind mod_proxy
If you use Apache to gather all of your different sites on a same port, or for anyother reason, it is necessary to lightly edit Ampache.
- Edit the file /opt/ampache/lib/init.php.
- Replace this line
$results['web_path']Â Â Â Â Â Â Â Â Â Â Â = $http_type . $_SERVER['HTTP_HOST'] . $results['web_path'];
By the following line:
$results['web_path']Â Â Â Â Â Â Â Â Â Â Â = 'http://music.landure.fr'; // $http_type . $_SERVER['HTTP_HOST'] . $results['web_path'];
Where the bold text is your Ampache URL.
courtesy http://howto.landure.fr/gnu-linux/debian-4-0-etch-en/install-ampache-audio-streaming-server-on-debian-4-0-etch
