Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am following This Tutorial to make my Android an external monitor for my Ubuntu 12.04 computer.

How do I do the following:

Edit your vnc session file

$ vi ~/.vnc/xstartup

Comment out everything and put this at the end

gnome-session &

share|improve this question

1 Answer 1

up vote 4 down vote accepted

With sed and echo are 2 commands in terminal . I am not using vi (editor) I prefer the simplest nano (editor) but now we will use sed (stream editor) and echo (line displayer) combined with tee (reader) trough a pipe | .

sed 's/^/#/g' -i ~/.vnc/xstartup

echo 'gnome-session &' | tee -a ~/.vnc/xstartup

If the file is admin protected (needs privileges) then

sudo sed 's/^/#/g' -i ~/.vnc/xstartup

echo 'gnome-session &' |sudo tee -a ~/.vnc/xstartup

Thanks

share|improve this answer
    
Thank you. This did what I wanted. –  pgrytdal Oct 10 '12 at 20:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.