Difference between revisions of "User:Matthewbauer/Kiosk user"

From ArchWiki
Jump to: navigation, search
(Created page with '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 a…')
 
Line 1: Line 1:
 
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.
 
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.
  
[code]#!/bin/sh
+
<source>#!/bin/sh
 
sudo useradd -p password gmail
 
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 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.
Line 10: Line 10:
 
echo "exec uzbl-browser google.com/mail" > .ratpoisonrc
 
echo "exec uzbl-browser google.com/mail" > .ratpoisonrc
 
mkdir -p .config/uzbl
 
mkdir -p .config/uzbl
echo "set always_insert_mode = 1" > .config/uzbl/config[/code
+
echo "set always_insert_mode = 1" > .config/uzbl/config</source>
  
 
And that should be it, you can now login with your login manager as gmail with the password: password and go straight to your gmail.
 
And that should be it, you can now login with your login manager as gmail with the password: password and go straight to your gmail.

Revision as of 22:45, 13 December 2009

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.

<source>#!/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 yaourt -S uzbl-git 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</source>

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