Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

15 July, 2012

Online music streaming service Spotify for Debian, Ubuntu, Mint Linux, other debian Linux

Spotify for Debian Ubuntu Linux

Online streaming service equal as I tunes, 
This is a preview build of Spotify for Linux. As a preview release this version is still unsupported, but we're running it ourselves.

So how do you get it? Spotify crew have packaged it for Debian Squeeze/Ubuntu.
follow instructions downunder

Debian, Ubuntu

# 1. Add this line to your list of repositories by
#    editing your /etc/apt/sources.list
deb http://repository.spotify.com stable non-free

# 2. If you want to verify the downloaded packages,
#    you will need to add our public key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59

# 3. Run apt-get update
sudo apt-get update

# 4. Install spotify!
sudo apt-get install spotify-client


22 May, 2012

dd (UNIX) (Linux) command in progress..

How to se progress with "dd" command


To get a progress report while dd is running, you need to open another virtual terminal, and then send a special USR1 signal to the dd process.

First, find out the process id of the dd process by running the following in the new virtual terminal.


@# pgrep -l '^dd$'
   8789 dd
@#


To send the USR1 signal to the dd prcoess:

@# kill -USR1 8789


Note that as soon as the USR1 signal is detected, 

dd will print out the current statistics to its STDERR.

@# dd if=/dev/random of=/dev/null bs=1K count=100
0+14 records in
0+14 records out
204 bytes (204 B) copied, 24.92 seconds, 0.0 kB/s


After reporting the status, dd will resume copying. You can repeat the above kill command any time you want to see the interim statistics. Alternatively, you can use the watch command to execute kill at a set interval.


@# watch -n 10 kill -USR1 8789

Learning dd commands:
cloning exampel could be like this,


@# dd if=/home/marcusik/Downloads/debian-live-8.2.0-amd64-cinnamon-desktop.iso of=/dev/sdg bs=1M conv=notrunc,noerror

and to see how far process came...
  @# sudo pgrep -l '^dd$'
XXXX

@# sudo watch -n 5 kill -USR1 XXXX

04 February, 2010

Newsgroups Ubuntu (Linux) Guide

Newsgroups Ubuntu (Linux) Guide

In this guide we'll be setting up everything we need to successfully use the newsgroups on an Ubuntu installed Linux box. Our starting point will be a fresh install of Ubuntu 8.0.4:

Fresh Ubuntu Install
Step 1 - Install/Configure Newsreader - Download Files
Head over to the Synaptic Package Manager and install Klibido. If you plan on using the newsgroups for more than downloading, you may want to install the more full featured Pan newsreader instead, but for our purposes Klibido does a fine job. The Synaptic Package Manager will probably want to install some dependency packages as well, make sure you let it!
Make sure you set your download directory so you know where stuff winds up. BTW: you do this for every new file sharing program you use right? k, just making sure you're not a loser newb or something: 'i downloaded it, but i have no idea where it went?' is so played out and annoying.
Klibido runs the Preferences setup on first load


Klibido will say it can't find the files in your database that it hasn't created yet (can't the programmers put in a first run exception? is it that hard??) - you should dutifully click yes to recreate them - NOW.
Click Server on top of the now open Klibido program window (maximize the program if it started small as hell like mine did) and then click New Server... to reach the add server screen. Guess what you do here? You add your server details (duh!). At this point I certainly hope you've read through the rest of this guide already and know what a server is and why you need a really good one. If not, no problem.
Now you have your newsreader all set and ready to go. WooHoo! Now go find an NZB file to begin downloading from the newsgroups. Here is where Klibido (and Pan) are lacking compared to Windows readers -- the program cannot be launched using the nzb file and automatically start downloading. So what you have to do is save the NZB file (try using your download directory) and then load it into your news reader once you load it. Click on File then Download .nzb in Klibido or Import NZB Files... in Pan. Once the NZB is loaded, the news reader gets to work and downloads all the files in the archive:
Klibido downloading an NZB set


Step 2 - Install PyPar (PAR/PAR2 Utility) - Check Archive for errors
Back to Synaptic Package Manager we go, this time to install PyPar2. When you select it, it will alert you to install the par2 package if you haven't already done so, this is necessary. Run PyPar2 by going to Applications then Other to find PyPar2. After it loads, select the par2 file for the archive:
PyPar2 load par2 file window
Then let 'er rip:
PyPar2 checking files


After PyPar2 has finished performing it's magic, you will have a complete archive set, and you're ready to put it all together in the next step.
Step 3 - Install rar (Rar Utility) - Restore archive to original state
Back to (guess where?) Synaptic Package Manager we go, this time to install rar. rar is a simple install (no dependencies). After you have installed it browse to your download folder (you remember that folder right?) and right click on the beginning rar file and select Extract Here to restore the archive:
Restoring a rar archive


After it finishes you will have in your directory the archive as it was originally (you may want to now delete all the par and rar files). The world is yours! have fun.

31 May, 2009

How to record rip streaming net radio in Ubuntu Debian Linux easy steps

How to record streaming net radio in Ubuntu Debian Linux easy way. 
You kan do it from textmode or if you have Gnome desktop, use GNOME Terminal, 
and change to directory [You could 'mkdir' (make directory)] you want to stream to.
then you need to install 'streamripper'
$: sudo apt-get install streamripper

Here is how to use: 'streamripper (URL)' to rip,
just replace (url) with your stream,
and streamripper will be separating each song to own file and naming the files, if information is available. If you type:

$: streamripper (URL) -r 

then you will create a local relay on http://localhost:8000 
or relay port:XXXX be shown when ripping start.

You can then use that on your music player so you don't need to have 2 connections open to the web radio, to listen & rip at the same time.
If you don't want to have tons of folders everytime you rip, type:

$: streamripper (URL) -s

then all ripping will be save in that directory you standing in.

You can use
$: streamripper (URL) -a

to rip into a single file, and '-d' allows selecting directory for more options. 
$: man streamripper ... will tell more.

For a GUI way, 

$: sudo apt-get install streamtuner

It will appear in your menus, and allows you to browse large selection of web radio streams and just hit record button to record the stream with streamripper.
ripping will look like this, have fun.... :)

27 May, 2009

How To Install VMWareServer2 on Ubuntu 9.04

How To Install VMWareServer2 on Ubuntu 9.04

The VMWare team finally decided to make an Ubuntu friendly version of their software, and made installation relatively easy!
They removed the VMWare server console and instead change to Web browser easy to use management system! That means friendly to use for you and me!

So lets get startet to install.
This is what you need to do to install VMWare Server 2 on Ubuntu 9.04:

Note: If you using ubuntu server and doesn't have a GUI, you need to register for the download, and then download it to your Desktop machine, any folder you want.

Now, to the install steps:

1. Install the necesarry prerequisites

$ sudo apt-get install linux-headers-`uname -r` build-essential xinetd

2. Now change into the directory where you want your VMWare TAR ball to be. I saved mine in /home/morphus.dk/vm

$ cd /home/yourusername/vm

Note: if your didn't make a directory yet, you do it like this:

$ mkdir vm
now you have a directory name "vm"
then copy your VMware tarball to that "vm" directory,like this

$ cp whereeveryourare/VMware-server-*.tar.gz VMware-server-*.tar.gz

then change directory to "vm" or what ever you have call it, like this

$ cd whereeveryouare/vm

3. Now Extract the TAR ball and run the installer

$ tar xvfz VMware-server-*.tar.gz

$ cd vmware-server-distrib

$ sudo ./vmware-install.pl

4. You can hit enter for all of the defaults, except when asked for a name of an alternate administrator. For that enter your username.
If you don't, you will have to reset the root password as that is the default administrator for VMWare Server,
when asked for the direcrory of virtual machines, you have the option of saving them in a different directory. I for instance like to save mine in /home/morphus.dk/vm.
5. Near the end, you will have to enter your serial number which you received when you first registered for the download.
6. Done! Now you are ready to login! You can login to the web console by browsing to

Log in to VMserver2:

  1. http://servername:8222
  2. or http://localhost:8222 (or hvat ever port you set, thru installation)

After building your first machine, you can view it through the web console in Firefox after installing the correct plugins which you will be prompted for in the web console.
That is it! Seriously! Can you believe it? In just about all previous Ubuntu versions, and VMWare Server versions it has been 1.5 bitches to install. This time it is really really easy!
After you installing it, and have any comments, let me know what you think!

22 September, 2008

How to download bittorrent file in Terminal on Ubuntu ???



How to download thru bittorrent in terminal, on Ubuntu ? it's simpel..
open terminal. (if you don't have bittorrent installed yet.)
type:
:~$ sudo apt-get install bittorrent
after installation is finish.
change to directory you want download to

download a torrent file from the web ,
eks. wget file.torrent
it will download to that directory you are in,
then type:
:~$ btdownloadcurses file.torrent
and download will begin. have fun

if you have some comment please write...

14 August, 2008

How to record streaming net radio in Ubuntu / Linux

How to record streaming net radio

The script below enables easy recording of an internet stream. Copy and paste the following into a file called: rec Make it executable, and then use sudo to move it to /usr/bin.

The command works like this: rec http://XX.XXX.X.XXX jazz, where http://xx.. is the IP of the station you want to record. The file will be saved as /home//jazz.mp3


Code:

#!/bin/bash
#
# script to record MP3 broadcast stream
# The command is all on one line ending with a semi-colon
#
# $1 is the station
# $2 is the name of the music
#
#Replace with your user name

/usr/bin/mplayer $1 -dumpstream -dumpfile
/home//${2}.mp3 -vc dummy -vo null ;


.....that's all...enjoy...