Posts Tagged problem

Can’t install rsync on new Debian 6 server setup

Just incase you’ve setup a new Debian server and are unable to install rsync because of the following error: E: Package ‘rsync’ has no installation candidate

it means that you’re missing a repo in your sources.list file.  So head over there and edit /etc/apt/sources.list and add the following:

deb http://http.us.debian.org/debian/ squeeze contrib non-free main

and you’re good to go!

 

 

 

Tags: , , , , ,

Me and Drupal : Chapter 1 (There could be sparks here)

Up until this point I have been managing remote teams with a smattering of very useful tools.  phpBB3 or YaBB for message boards, Dotproject for project management, MediaWiki for internal documents, TeamSpeak for our voice conferences.  My toolbox was built up our of trial and error and sometimes following the path of least resistance.  But today there is a package that has the potential wrap all of my tools up with a nice pretty bow, add on SVN /  git functionality and much more.  The only problem is that the learning curve is a bit steep to go head into a complicated multi-module drupal setup as I have tried before and was deterred after a few fruitless days. However this day I approach it with new vigor and over the next month I will not quit until I have this system functioning exactly as I want it because i know once I have learned what I need to learn and set it up the way it needs to be setup I will be left with a system of unrivaled efficiency, functionality and usability for me and my teams.

So I shall document my journey’s, making sure to note all the struggles along the way as there will be many in hopes that others will be able to save some of the blood, sweat and tears .

Today my first problem was the installation.  I got to the screen to enter my database name, mysql username and all of that good stuff and then when entered correctly it would just refresh that page, clearing all of the text boxes I just filled out.  Now if I entered anything in incorrectly it would tell me there was an error with this or that but when it was all kosher itwould just blank out the text fields and refresh the page.   Quite strange, and so after researching I found out that if you move the ./sites/default/default.settings.php files to .sites/default/settings.php as it asks you to it does what I just described.  It would seem that it needs that default.settings.php file AND a settings.php files in that directory to function properly.  So word to the wise, do a cp command instead of a mv command and save yourself the trouble

Tags: , , , , ,

Sansa MP3 player running Rockbox on Linux: Read only system

So I started getting this error today when trying to delete some files and load some new ones onto my Sansa MP3 player.  It would tell me that the file system was read only.  I tried a sudo chmod -R 777 but that didn’t work so off to google I went..

Finally found that by remounting the filesystem like this: sudo mount -o remount,rw /dev/sdd1 /media/~ it fixed it up in a jiffy.  Well those are my paths and my device names so it would obviously be different for you but hopefully that helps

Now if this above solution does not fix your problem try to manually umount the mp3 player and then remount it with the following command options:

sudo mount -a -t vfat /dev/sde1 /media/~ -o user,exec,dev,suid,rw,umask=000

This solution will also work for USB flash drives that are being mounted with either root only write privileges or as read-only file systems

Tags: , , , , , , , , ,

How to mount a USB External NTFS Hard Drive that won’t mount in Ubuntu

So I was having a problem with my external USB hard drive lately.  The USB connectors on this LG laptop are a bit shady so things get disconnected if you bump them and this would happen with my hard drive.. The problem being that if the Hard drive was disconnected like this and not properlyy unmounted that it wouldn’t come back up 50% of the time when I plugged it back in.

It would show up when I run fdisk -l and in dmesg but when I try to mount the drive it would return with the error ‘special device does not exist’.  The only way I could get it back online was to reboot the machine, until now! :)

I tried installed usbmount and pmount but neither fixed the problem.

After some research I discovered the MAKEDEV command.  So what I tried was to run MAKEDEV from inside of /dev/ and it would give me an error: “.udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.”

So I went on and looked into /dev/.udev/ and found a /failed/ directory which had a blocked file in there referring to the hard drive that wasn’t mounting.  For some reason I ran the MAKEDEV [device] command here and VIOLA, it worked.  Apparently it just needs to be run in a directory that doesn’t have a .udev subdirectory in it

So for me the command was MAKEDEV /dev/sdd and it created sdd1 through sdd10.  Not sure what the other ones are for but I was able to mount sdd1 properly and access my hard drive.  I mean this is a pretty backwards work around but I can access my hard drive without rebooting, so I’m good to go!

So to sum it up, if you have a device that isn’t mounting properly but you can see the device with #sudo fdisk -l then:

  1. try creating a temporary directory for your new mount points
  2. Then run MAKEDEV [device] inside of that directory.  So if the partition your trying to mount is say /dev/sda1 then you’ll want to run MAKEDEV /dev/sda and hopefully that gives you access without needing to reboot.

Tags: , , , , , , , , ,

Fixing ALSA underrun erorrs associated with PulseAudio (and typically Skype) in Ubuntu

So after running into this problem suddently and for no ‘apparent’ reason(although it became apparent later) I noticed the complete lack of real support docs online in regards to the ALSA underrun problem.  Hopefully I can rememdy this a little bit and help some people out.

Last week I noticed skype audio was getting really choppy, it was the equivalent of seeing the conversation through a strobe light.  Odd I thought but didn’t pay it too much heed, that was until the end of the week when the audio simply stopped all together and skype refused to close down normally.  I would have to manually kill the process in terminal after the sound cut out.  This problem was exclusive to skype, which made it even more frustrating as I could have youtube and/or music playing in exaile while skype was screwing the pooch.

It occured to me today that something indeed had been changed recently right before this problem started and that was me fiddling with pulse’s daemon.conf and enabling real-time scheduling.  I can’t remember what for but this was part of the problem.  In fact there is even a mention in pulseaudio’s man page in regards to the possibility of real-time scheduling causing problems which I’ll quote here:

Alternatively,  if the risk of locking up the machine is considered too
big to enable real-time scheduling,  high-priority  scheduling  can  be
enabled  instead  (i.e.  negative  nice  level). This can be enabled by
passing –high-priority (see above) when starting  PulseAudio  and  may
also  be  enabled  with  the approriate option in daemon.conf. Negative
nice levels can only be enabled when  the  appropriate  resource  limit

RLIMIT_NICE  is  set  (see setrlimit(2) for more information), possibly
configured in /etc/security/limits.conf. A resource limit of 31 (corre‐
sponding with nice level -11) is recommended.

At this point I got a little excited as the solution seemed within reach.  I hashed out real-time schedule and implemented high-priority scheduling, restarted pulseaudio and loaded up skype.  It started fine but when I made a test call I was once again plagued by ALSA underruns.

They key here was to adjust the nice level.  I incrementally went down from -11 all the way to 3 (as in plus 3 not -3), restarted pulseaudio, loaded skype and viola!  Problem solved.  The nice level might be different for you so maybe experiment with that a little bit.

Summary:

  • edit ~/.pulse/daemon.conf (or /etc/pulse/daemon.conf if you run as system)
  • Hash out realtime-scheduling and realtime-priority
  • Unhash high-priority and nice-level
  • set nice level to 3 (not -3 or -11 for that matter)

Update:  Bah, I am still seeing these under runs.  The severity of them has gone down as skype doesn’t completely cut out now and lock up but I am getting audio cutting in and out every 2-3 seconds when making a call via skypeout.

Searching around the skype forums I found this and this actually seems to have done the trick completely:

Edit your ~/.asoundrc file

# Part I directly from ALSA Dmix Wiki

pcm.skype {
type dmix
ipc_key 1024
slave {
pcm “hw:0,0″
period_time 0
period_size 1024
buffer_size 8192
#format “S32_LE”
#periods 128
rate 44100
}
}

pcm.dsp0 {
type plug
slave.pcm “skype”
}

# This following device can fool some applications into using pulseaudio
pcm.dsp1 {
type plug
slave.pcm “pulse”
}

ctl.mixer0 {
type hw
card 0
}

pcm.pulse { type pulse }
ctl.pulse { type pulse }
pcm.!default {
type pulse
}

ctl.!default {
type pulse
}

Tags: , , , , , , , , , , , , , , ,

Page optimized by WP Minify WordPress Plugin