[Thinkpad Tablet General] workdowg:
This is just a sample GUI setup for a simple localhost SSH/Xserver-Xsdl setup. I'm using LXDE because it is fast,

uses Openbox and I can easily modify window borders, scrollbars and such for the touch screen.

Once your GUI is setup, you can also get a vncserver running to access from your PC...

Prerequites for a localhost X11 session:

- Unlocked bootloader - See Here

- Linux base installed - See Here

- Install an ssh client (I use JuiceSSH) and Xserver-Xsdl from the PlayStore

- Knowledge of your distro's Linux command line and package management (apt-get, pacman, installpkg, etc) - See the internet ;)

Root user access it great but I definitely use a normal user, with sudo privileges, for everyday X stuff. I'm keeping it general because for

some reason people like other distro's beside Arch. :silly:

PREP - Adding some Android access groups and a normal non-root user:

- Update your distro

- Install sudo

- Getting your user the right permissions, add the following from ssh:

groupadd -g 3001 aid_net_bt_admin
groupadd -g 3002 aid_net_bt
groupadd -g 3003 aid_inet
groupadd -g 3004 aid_net_raw
groupadd -g 3005 aid_net_admin
groupadd -g 3006 aid_net_bw_stats
groupadd -g 3007 aid_net_bw_acct
groupadd -g 3008 aid_net_bt_stack
groupadd -g 1015 sdcard_rw
groupadd -g 1028 sdcard_r

- Add normal user

useradd -a -g users -G aid_net_bt_admin,aid_net_bt,aid_inet,aid_net_raw,aid_net_admin,aid_net_bw_stats,aid_net_bw_acct,aid_net_bt_stack,sdcard_rw,sdcard_r -s /bin/bash username

- Add a password to the user

passwd username

- Install LXDE group, xorg-server, pulseaudio, pavucontrol (check your distro's package names)

- For terminal apps (ie LXterminal) to run correctly and some makepkg issues add the following (bold below) to /etc/init.stage2

just before the export statement

-- NOTE - BE VERY CAFEFULL WITH THIS FILE OR YOU WILL NOT BOOT TO ANDROID

- READ SOFTBRICK

...
busybox mount -o bind /android/dev/socket /dev/socket

[B]mount -o remount,mode=620,gid=5 /dev/pts
ln -s /proc/self/fd /android/dev/fd[/B]

export PATH=/sbin:/usr/sbin:/bin:/usr/bin

BONUS PREP:

To make life a little easier on the touch screen I have made the following changes:

1 - Increase scrollbar width, edit or add the following to ~/.gtk-2.0.mine

style "wide-scrollbar-style"
{
GtkScrollbar::slider_width = 24
}
widget_class "*Scrollbar" style "wide-scrollbar-style"

2 - Increase window borders, copy a theme directory you want from /usr/share/themes/ to ~/.local/share/themes/, then edit your new (copied) themerc

!!General

window.handle.width: 0
window.client.padding.width: 0
window.client.padding.height: 0
border.Width: 20
padding.width: 3
menu.overlap: 2

3 - Increase window control icons, in the same new theme directory use a graphics editor to scale the .xbm icons from

10x10px to 16x16px (to start)

4 - Once you have LXDE up and running you can right click on the panel and adjust the size your panel and icons

RUNNING Xserver-Xsdl THE FIRST TIME:

- Start Xserver-Xsdl and download the extra fonts

- Select "Change Device Configuration" and change the following:

-- Mouse emulation>Mouse emulation mode>Tablet​

-- Mouse emulation>Advance features> uncheck Reletive mouse movement (laptop mode)​

- At the "Tap Screen to Change" screen select "Native" and then x0.7 dpi to start with (you can change this

everytime to get the best for you)

HERE WE GO:

- Get Xserver-Xsdl running and waiting (blue screen with PC ssh connection information)

- Start or switch to your ssh client as your normal user

- Type the following (or make it a script, I did):

export PULSE_SERVER=tcp:localhost:4712
env DISPLAY=localhost:0 startlxde

(Using 'env" makes the ssh session unusable until you logout of the X session)

- Select Xserver-Xsdl from recents or the notification bar and PROFIT

Anytime you logout or force-close Xserver-Xsdl you will need to follow steps 1-3

Thank you.