need help with many things

Asked by jagannath

hi all ,
i've the following questions :

1) i've installed ubuntu inside windows in some drive . the drive had some songs and documents. where should i go in ubuntu to see that documents ???also i've now given 11 gb for ubuntu installation... if needed san i extend it????

2)each time i go to a particular drive the mounted drive gets displayed on desktop .. what should i do to avoid it ??

3)i'm finding it very difficult to movi inside vim . pls help me with the movement keys.

4)i want all the c,c++,java program files to be opened in terminal directly . how can i do it ???

5)in terminal i'm unable to change the directory ... how to change dir to altogether a different drive ???

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

>i want all the c,c++,java program files to be opened in terminal directly . how can i do it ???
Either install gVim, and use that (easy), or (harder):

Create a .desktop file that runs this command as a shelll script like so,
-----8<--------------
[Desktop Entry]
Name=VimOpen
GenericName=VimOpen
TryExec=open-with-vim.sh
Exec=open-with-vim.sh
Icon=utilities-terminal
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
-----8<--------------

Also create the script to run
i.e. make file called open-with-vim.sh:
and set the "execute permission" (chmod u+x open-with-vim.sh)
-----8<--------------
#!/bin/bash
gnome-terminal --tab -e "vim $1"
-----8<--------------

and place these in /usr/share/applications/ and your /usr/local/bin respectively (eg sudo mv VimOpen.desktop /usr/share/applications/). Then in nautilus, choose "open with" then VimOpen

>5)in terminal i'm unable to change the directory ... how to change dir to altogether a different drive ???
Use "cd" to navigate the the location of the new drive, eg "cd /media/12345-67890/". Note that there is only ONE top level directory branch, "/", unlike windows which has multiple top level branches. Your other drives are likely located in /media/DRIVE-ID-VALUE/ , where DRIVE-ID-VALUE is the UUID of your disk.

Note that normally, you would just operate in your home folder for most things. I sometimes put large files on other drives, but keep everything else organised in my /home/mycae/ folder.

>i've installed ubuntu inside windows in some drive . the drive had some songs and documents. where should i >go in ubuntu to see that documents ???
/media/DRIVE-ID/ You can normally locate these in the left hand pane of your file-manager

>1) i've installed ubuntu inside windows in some drive . the drive had some songs and documents. where
>should i go in ubuntu to see that documents ???also i've now given 11 gb for ubuntu installation... if needed
>san i extend it????

Its possible, but I would recommend that if you find ubuntu worthwhile, you may want to consider a proper dual-boot configuration instead of a "WUBI" install that you have now.

Revision history for this message
jagannath (jagsowjagnath) said :
#2

thanks mycae this helped a lot to a starter like me ...

 one small doubt in it ... wat do u mean by dual boot configuration ??? do u mean having a seperate drive for ubuntu and installing it seperately instead of inside windows ...

actually i had tried to do so ... while installing fedora 10 ... in that all my hard disks got formatted and i lost all data ... so i fear that type of installation

Revision history for this message
Best mycae (mycae) said :
#3

>do u mean having a seperate drive for ubuntu and installing it seperately instead of inside
>windows ...

Yes, i mean partitioning your drive, such that ubuntu has its own separate area, rather than residing as a file inside a windows partition. Wubi was designed to avoid the formatting problem you mention - if it is more comfortable for you, thats fine .

I forgot to mention the guide for expanding a WUBI drive:

https://wiki.ubuntu.com/WubiGuide
Look under "How do I resize the virtual disks?"

Revision history for this message
jagannath (jagsowjagnath) said :
#4

thanks a lot ...