LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-15-2012, 03:56 PM   #1
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 47

Rep: Reputation: 16
Linux Mint - vnc4server - start full mate session


Running Linux Mint, 12 or 13.. probably 12.

Headless box, with Mate.

When I run vnc4server and connect to it, everything works fine, but it opens a slim x window manager session with a terminal.

I want it to start a full desktop session. I tried uncommented the 2 lines in .vnc/xstartup as directed in the file, but that didn't work: it failed because /etc/X11/xinit/xinitrc wasn't executable, so i modified the exec bit and then it still didn't work as expected. It was a very minimal session with only the desktop icons, no nice session colors and no panel.

also tried adding to ~/.vnc/xstartup :

gnome-session &
gnome-panel &

But to no avail.

How can I get this working as I would like?

/edit: I know i tried it using gnome-session etc but i want it to run mate, thanks
running:
$ mate-session &
$ mate-panel &

from a terminal, with the DISPLAY var pointed at the vnc server gives me close to the desired result (i suppose i would want a more robust session), but i cannot use synaptic for example, because it attempts to get auth through the terminal, and i need a cleaner setup than this.

this also has the side-effect of not replacing the existing window manager, so please help me
~/.vnc/xstartup (notice the 2 commented lines, i tried uncommenting but left orig here)
Quote:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
Modifying the file to this seems to give me the result i want,

Quote:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
mate-session &
mate-panel &
If you know how to make vnc4server use the system default that would be ideal this way I won't need to change the script if i switch environments

Last edited by themrrobert; 11-15-2012 at 04:40 PM.
 
Old 11-27-2012, 03:41 PM   #2
themrrobert
Member
 
Registered: Feb 2007
Distribution: Debian Sid
Posts: 47

Original Poster
Rep: Reputation: 16
Marking as solved, solution is in the original post.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
toshiba laptop and linux mint with mate ms_chevis Linux - Laptop and Netbook 5 11-09-2012 02:50 PM
Linux Mint 13 (Mate) -- Customizing Icons Ineed2know Linux Mint 8 10-26-2012 07:46 PM
Linux Mint 13: MATE or XFCE Or KDE (dpi)? wearetheborg Linux Mint 3 09-03-2012 01:05 PM
[SOLVED] Installing Mate 1.2 in Linux Mint 12 Lisa dsschanze Linux Mint 0 06-20-2012 06:45 AM
LXer: Linux Mint 12 MATE Review LXer Syndicated Linux News 0 12-03-2011 02:11 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration