Ubuntu One – “Maximum Upload Speed”

This applies to my installation:  Ubuntu 10.04 (Lucid Lynx):

If you’re an Ubuntu One user like me you probably had the urge to complain about the fact that Ubuntu One, when uploading, sucks the life out of your internet bandwidth.  To the best of my knowledge they are aware, and have been aware for a while, but no patch as of yet.  The screen I am talking about, of course, is this one:

Ubuntu One Preferences

Luckily there is a work-around!  A simple one even 🙂

In a nutshell here are the steps:

  1. Remove Ubuntu One from the “Startup Applications Preferences”
  2. Install “trickle” from Synaptic Package Manager
  3. Add this command as a Startup Program in the “Startup Applications Preferences”(Note: The number below is KB/s)
    • trickle -u 40 /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  4. Logout & Login or Reboot

Detailed Steps:

  1. System –> Preferences –> Startup Applications:  Uncheck Ubuntu One
    • Startup Programs
  2. System –> Administration –> Synaptic Package Manager:  Type in trickle in the search, right-click package, and Mark for Installation
    • trickle
  3. System –> Preferences –> Startup Applications:  Click Add
    • Startup Programs
    • Add the following text to the Command:
      trickle -u 40 /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
      • Add Trickle To Startup
      • Click Add, and Trickle will be added to the Startup Applications
  4. Logout & Login or Reboot

Comments, questions, or corrections – always welcome 🙂

End of Line.

Advertisements

, ,

3 Comments

Copy Files from an Encrypted /home Directory

Ok it looks like I need to do a fresh install of Ubuntu 10.04.2 because of this issue.

But still I need to get some files off of my encrypted /home directory!

So after a bunch of searching, I found a solution!  So not a total loss.  I mean yeah I have to format (lame), but at least I learn how to recover my encrypted /home directory in case of catastrophe, like a Kernel panic  (-50 points Ubuntu).

All the credit goes to this guy’s (or gal’s) post on the Ubuntu Forums.  And he or she gives credit to someone else, and life goes on.

So I will be pretty much copying the post, but I wanted to add value on the parts where I was confused in hopes that it makes it easier for someone else 🙂

Let’s Begin!

I performed these steps on this machine:

Steps:

1.  Boot from Live CD

2.  Mount the hard drive or partition on which the encrypted home folder is stored. You can do this by browsing the Places menu; it will likely just be something like “100 GB Filesystem”, and it will be mounted to a directory similar to this “/media/04b67fb1-aafd-4082-aebc-493c509bdbe1”.  (just an example)

3.  Open a terminal window (Applications > Accessories > Terminal).

4.  Enter this:

sudo ecryptfs-add-passphrase –fnek

Note: At this point, you will be asked for your Passphrase. The Passphase is NOT the password you used to log into your computer.  The passphrase is that long-ass string of numbers and letters Ubuntu generates for you when you first log into your encrypted /home directory.  I hope you wrote it down. (example: 32by422a4b8e9x0x455uea97774x9e04)

5.  Now you will see output that looks like this:

Inserted auth tok with sig [9986ad986f986af7] into the user session keyring
Inserted auth tok with sig [76a9f69af69a86fa] into the user session keyring

Note: Copy the second string of characters in the brackets (yours will of course be different from the example I’ve provided) and make a note of it. You’ll need it to decrypt the names of your files. (Note: In a terminal window, Ctrl+Shift+C is copy and Ctrl+Shift+V is paste.)

6.  Create a folder on your Desktop to use as a mount point

mkdir Desktop/Mount

7.  Now your terminal should resemble this (remember Passphrase is to long-ass string I talked about above):

ubuntu@ubuntu:~$ sudo mount -t ecryptfs /media/04b67fb1-aafd-4082-aebc-493c509bdbe1/home/.ecryptfs/enter your username here/.Private Desktop/Mount
Passphrase:
Select cipher:
 1) aes:
 2) blowfish:
 3) des3_ede:
 4) twofish:
 5) cast6:
 6) cast5:
Selection [aes]:
Select key byes:
 1) 16
 2) 32
 3) 24
Selection [16]:
Enable plaintext passthrough (y/n) [n]:
Enable filename encryption (y/n) [n]: y
Filename Encryption Key (FNEK) Signature [9986ad986f986af7]: 76a9f69af69a86fa   (this was what you should have copied from above, paste it here)
Attempting to mount with the following options:
 ecryptfs_unlink_sigs
 ecryptfs_fnek_sig=76a9f69af69a86fa
 ecryptfs_key_bytes=16
 ecryptfs_cipher=aes
 ecryptfs_sig=9986ad986f986af7
Mounted eCryptfs
ubuntu@ubuntu:~$

Note: The very last thing you might be asked is if you are sure you want to mount.  If you think you entered the Passphrase wrong, or you think you messed up, type “no”.  Otherwise type “yes”.

8.  Ok, try to copy your files

  • Press Alt + F2 on the keyboard
  • Enter:  
    gksudo nautilus
  • Navigate to  “/home/ubuntu/Desktop/Mount”  and try and copy your files. If you cannot copy due to permissions, go to step 9

9.  Now that is mounted you’ll need to change permissions so you can copy the files

  • Press Alt + F2 on the keyboard
  • Enter:  
    gksudo gnome-terminal
  • In the terminal type:
sudo chown root -R /home/ubuntu/Desktop/Mount
sudo chmod 755 -R /home/ubuntu/Desktop/Mount
  • Try step 8, and you should be able to copy files if you were not able to earlier.

So that should do it! 🙂  If you have a better way, please comment 🙂

Good luck!

End of Line.

Leave a comment

Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Let’s be honest, am I totally screwed?

I rebooted my Ubuntu PC, because VirtualBox was locking up on me, and I get this wonderful message on a lovely black screen:

Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Now I have completely migrated to Ubuntu; I’m not dual-booting.  I am no Linux expert, nor am I high adept with Linux, but I’m not a moron either.  So like a good neighbour Google and the Open Source Community is there 🙂

If anyone can point me in the right direction, please comment.

Either way I will be posting updates, as I figure out what to do.

End of Line.

———————————-

Update:

From what I gather this issue may have to do with GRUB2.  So I followed the instructions at this link:

https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD

I tried all three methods mentioned for reinstalling GRUB2, unfortunately none of them solved the issue 😦

Since I need my PC up and running sooner than later, I am going to reinstall Ubuntu 10.04.2 – good thing I keep it all backed up on the cloud (thanks Deja Dup & Ubuntu One) 🙂

End of Line.

, ,

Leave a comment

Attempted to read or write protected memory.

Before I begin, here is my setup:

  • Running Windows 7 Pro 64-bit inside a VirtualBox 4.0.4, the HOST operating system is Ubuntu 10.04.2
  • Microsoft Visual Studio 2010 Version 10.0.30319.1
  • Microsoft .NET Framework Version 4.0.30319

So folks, wtf does that error mean?

Just minding my own business, trying out some C# ASP.Net MVC3 tutorials, when BAMM! WACK! ZOW! I get this error: “Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”

Attempted to read wright protected memory

I should mention it happens AT RANDOM.  I cannot narrow it down to one scenario that causes the issue.  I have also tried different MVC3 projects, and same thing occurs at random 😦

I tried to Google the issue, naturally, but no luck.  The most useful bit of advise I could find was to SWITCH TO IIS, instead of using Visual Studio Development Server.

Click here to see a screenshot for changing Visual Studio Project to use IIS.

This is a workaround that solved the issue for me, but if anyone knows the root cause please leave a comment.  I hate workarounds when I don’t know why they work.  But hey, I’m still going to use it 🙂

In the meantime, I hope this helps someone, cause I spent alot of time searching :/

End of Line.

, ,

2 Comments