User:Matthewbauer/Kiosk user

From ArchWiki
Revision as of 19:39, 23 May 2015 by Alad (talk | contribs) (Alad moved page Create a Kiosk User to User:Matthewbauer/Kiosk user without leaving a redirect: 2009 script, no content)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sometimes it's nice to have a gmail user to give people without accounts on your computer a quick way to access their Gmail account (this can be easily modified to use Yahoo or any other service) this is easy as Linux is so configurable.

#!/bin/sh
sudo useradd -p password gmail
sudo cat /etc/shadow | sed "s|gmail:.*:\([0-9]*\):\([0-9]*\):\([0-9]*\):\([0-9]*\):::|gmail::\1:\2:\3:\4:::|" | sudo tee  /etc/shadow # Remove password from gmail user.
sudo pacman -S ratpoison
pacman -S uzbl-tabbed
cd /home/gmail
echo "exec ratpoison" > .xinitrc
echo "exec uzbl-browser google.com/mail" > .ratpoisonrc
mkdir -p .config/uzbl
echo "set always_insert_mode = 1" > .config/uzbl/config

And that should be it, you can now login with your login manager as gmail and go straight to your gmail.