Friday Apr 10, 2009

VirtualBox Guest Additions ISO Download?

I have never realized how difficult it is to find the download page for the VirtualBox Guest additions, it is not accessible from the wiki, at this time... After some time spent on Google, here is the answer:

If you need to download an ISO image of VirtualBox Guest Additions, go to:

http://download.virtualbox.org/virtualbox/

... and navigate to desired folder. The ISO image should be listed there.

Here goes the direct link for 2.2: http://download.virtualbox.org/virtualbox/2.2.0/VBoxGuestAdditions_2.2.0.iso

Thursday Mar 26, 2009

"sudo echo" does not work together in Ubuntu (another "waste of time issue")

Sometimes, you need to deal with a really time-wasting issue. I think it happens even more often if you work in the IT industry. You know the resolution must be simple, but all your attempts failed. So you try to search the web, looking for a plain sentence that will lead you out of that mess...

If you want to write some text to a file that needs a root privileges, you do it this way:

echo "Text I want to write" | sudo tee /path/to/file > /dev/null

or (updated after reading discussion below):

sudo sh -c 'echo "Text I want to write" > /path/to/file'

If you just want to append some text, you do it this way:

echo "Text I want to write" | sudo tee -a /path/to/file > /dev/null

or (updated after reading discussion below):

sudo sh -c 'echo "Text I want to write" >> /path/to/file'

This won't work:

sudo echo "Text I want to write" > /path/to/file

Saturday Jan 31, 2009

SCP and path with spaces? (another "waste of time issue")

Sometimes, you need to deal with a really time-wasting issue. I think it happens even more often if you work in the IT industry. You know the resolution must be simple, but all your attempts failed. So you try to search the web, looking for a plain sentence that will lead you out of that mess...

If you want to copy a file using SCP and the remote path contains spaces, you do it this way:

scp -r username@servername:"/some/path\\\\ with\\\\ spaces" .

Everything you need to do is to enclose the path in double quotes and use double backslash on spaces...

Search

Categories
Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today