Chovy’s Blog

Mounting a Samba Share and Amarok

Sat, September 8, 2007 — Category: Linux

Getting Amarok to play streaming MP3 over fish:// or smb:// protocols can be done by simply mounting the remote filesystem to the local drive.

I had some difficulties with streaming mp3 over fish:// protocol and the smb:// protocal from Ubuntu. I knew there was a way to mount the remote samba share locally on my Ubuntu filesystem.

First, you’ll have to download the necessary applications: smbfs and smbclient. For the purposes below, I have changed my remote host (the samba server) to “foo”.


root@localhost:~# apt-get install smbclient

Then you’ll have to create a “mount point” that will be on the local filesystem to access the remote filesystem. It is similar to mounting a dvd or cd-rom drive on ubuntu (typically under /mnt/dvd or /mnt/cdrom).


root@localhost:~# mkdir -p /x/foo

Now that we have a mount point and the smbclient software installed, try getting a listing of all available shares on the server named “foo”.


root@localhost:/x/foo# smbclient -L foo -U%
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.24]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        HPDeskJet6122   Printer   HP DeskJet 6122 Network Printer
        share           Disk      Public Share
        IPC$            IPC       IPC Service (spring)
        HPOfficeJet4110 Printer   WinXP
        hpoffice-4110   Printer   HP OfficeJet 4110 hpijs
        hp_deskjet_6122_USB_1 Printer   hp deskjet 6122
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.24]

        Server               Comment
        ---------            -------
        FOO               foo

        Workgroup            Master
        ---------            -------
        WORKGROUP            FOO

The following command will actually mount the remote share dubbed “share” from remote server “foo” to the local path “/x/foo”. You should be prompted for your samba password on the host “foo”.


root@localhost:/x/foo# smbmount //foo/share /x/foo/ -o username=foouser,uid=1000,mask=000

You can now browse all the shared files on your local host by looking in /x/foo/.

  • Post Mounting a Samba Share and Amarok to del.icio.us
  • Post Mounting a Samba Share and Amarok to digg
  • Post Mounting a Samba Share and Amarok to Furl
  • Add Mounting a Samba Share and Amarok to YahooMyWeb
  • Simpify!
  • Post Mounting a Samba Share and Amarok to shadows
  • Post Mounting a Samba Share and Amarok to Spurl
  • Post Mounting a Samba Share and Amarok to BuddyMarks
  • Submit Mounting a Samba Share and Amarok to Slashdot

Enable Screensavers to Automically Start for KDE Desktop

Sat, August 11, 2007 — Category: Linux

How to enable the screensaver to automatically start and with hotkeys in KDE / Kubuntu.

Thanks to this tip, I was able to finally resolve my issue of KDE screensavers not automatically starting, or working with the hotkey enabled.

It makes perfect sense in hindsight.

The solution is to simply enable “Power saving features” from the Control Center in KDE.

To enable a “hotkey”, you can click “Advanced” for a particular screensaver (ie: Electric Sheep), and specify which corner you want to activate the screen saver.

Update: It appears that when using with a KVM switch that the resolution is not saved after KDE does a “power down” of the monitor. A bummer since I do not have a solution at this time.

  • Post Enable Screensavers to Automically Start for KDE Desktop to del.icio.us
  • Post Enable Screensavers to Automically Start for KDE Desktop to digg
  • Post Enable Screensavers to Automically Start for KDE Desktop to Furl
  • Add Enable Screensavers to Automically Start for KDE Desktop to YahooMyWeb
  • Simpify!
  • Post Enable Screensavers to Automically Start for KDE Desktop to shadows
  • Post Enable Screensavers to Automically Start for KDE Desktop to Spurl
  • Post Enable Screensavers to Automically Start for KDE Desktop to BuddyMarks
  • Submit Enable Screensavers to Automically Start for KDE Desktop to Slashdot

Installing ‘cpuid’ on Gentoo

Sat, July 28, 2007 — Category: Linux

There is a great utility for discovering information about your CPU on Linux called ‘cpuid’….along with step-by-step process of ebuilds from unofficial build scripts on Gentoo.

Ever find yourself having to lookup up which CPU chipset you have installed on your PC? Forget?…too tired to take apart your PC?…or simply threw away the box? There’s a great little program called “cpuid” which divulges information about the guts of your CPU.

I find myself having to look up receipts on Newegg from time-to-time in order to ascertain which driver my hardware requires, especially with Linux-based operating systems, where a handy Windows Installation CD is useless.

With Gentoo Linux, there are many build flags that are available to you as well as Kernel config settings (w/all Linux distros) that can take advantage of your specific hardware.

Once installed, you’ll find a wealth of information as in this sample output of a few relavant lines from ‘cpuid’:


$ cpuid

CPU:
   vendor_id = "AuthenticAMD"
   version information (1/eax):
      processor type  = primary processor (0)
      family          = Intel Pentium 4/Pentium D/Pentium Extreme Edition/Celeron/Xeon/Xeon MP/Itanium2, AMD Athlon 64/Athlon XP-M/Opteron/Sempron/Turion (15)
      model           = 0xc (12)
      stepping id     = 0x0 (0)
      extended family = 0x0 (0)
      extended model  = 0x1 (1)
      (simple synth)  = AMD Athlon 64 (Winchester DH8-D0) / Sempron (Palermo DH8-D0) / mobile Athlon 64 (Oakville DH8-D0) / mobile Sempron (Palermo DH8-D0) / mobile Athlon XP-M (Winchester DH8-D0), 754-pin, 90nm
...
   extended processor signature (0x80000001/eax):
      generation     = AMD Athlon 64/Opteron/Sempron/Turion (15)
      model          = 0xc (12)
      stepping       = 0x0 (0)
      (simple synth) = AMD Athlon 64 (Winchester DH8-D0) / Sempron (Palermo DH8-D0) / mobile Athlon 64 (Oakville DH8-D0) / mobile Sempron (Palermo DH8-D0) / mobile Athlon XP-M (Winchester DH8-D0), 754-pin, 90nm
   extended feature flags (0x80000001/edx):
...
   brand = "AMD Sempron(tm) Processor 3000+"
...
  (multi-processing synth): none
  (synth) = AMD Sempron (Palermo DH8-D0), 754-pin, 90nm Processor 3000+

As of this writing, ‘cpuid’ has yet to become an official ebuild, but you can download the test ebuild script and follow the Gentoo-specific instructions instructions for using local portage ebuilds that have are still in the testing phase.

Here are the simpler installation procedures via apt-get for Debian-based systems:


$ apt-get install cpuid

Coming soon: Instructions for installing 3rd party ebuild scripts on Gentoo.

  • Post Installing ‘cpuid’ on Gentoo to del.icio.us
  • Post Installing ‘cpuid’ on Gentoo to digg
  • Post Installing ‘cpuid’ on Gentoo to Furl
  • Add Installing ‘cpuid’ on Gentoo to YahooMyWeb
  • Simpify!
  • Post Installing ‘cpuid’ on Gentoo to shadows
  • Post Installing ‘cpuid’ on Gentoo to Spurl
  • Post Installing ‘cpuid’ on Gentoo to BuddyMarks
  • Submit Installing ‘cpuid’ on Gentoo to Slashdot
Next Page »
 
Keyword Advertisers:
SEO Directory SEO Links Free Link Directory Shopping Submission Directory Gardening Tips Political Forum Search Engine Optimization Search Engine Marketing Audio Video Directory SEO Forum Web Development Blog Organic SEO Wiki Web Development Consulting

Learn more about purchasing keyword text link ads on this site.