File: sdm.config

package info (click to toggle)
sdm 0.4.0a-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 188 kB
  • ctags: 4
  • sloc: sh: 68; makefile: 66
file content (72 lines) | stat: -rw-r--r-- 1,976 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# /etc/sdm/sdm.config
# if present, /etc/sdm/sdm.config.$hostname will override these values

# autologin will attempt to automatically log in
autologin=no

# username for login. defaults to hostname.
user=

# ssh key to use for passwordless login. must have permissions set to u+rw
# and og-rwx. must be configured in the user's .ssh/authorized_keys file
# on the server.
key=

# the name of the server.  must be present in the terminal's /etc/hosts 
# file, as well as an appropriate entry in the /root/.ssh/known_hosts
server=

# alternate server to use for anonymous logins
anon_server=

# window manager or other command to execute.
command=

# ssh options. -X is needed for X11 forwarding, sdm's magic bean.
sshopts="-X -T"

# default X server, such as /usr/bin/X11/X-lessdisks for lessdisks.
# /usr/bin/X11/X is the default.
xserver=

# options that are passed to xsetroot, which controls the
# background color and/or images
xsetroot="-solid black"

# login text, defaults to "Welcome to $server"
login_text=

# icons must be in xpm format
login_icon=

# sdm-session.  could also set to /etc/X11/Xsession
sdmsession=sdm-session

SSH_ASKPASS=/usr/bin/sdm-ssh-askpass

# justification: -center, -left, -right
justify="-left"

# custom getLogin
#getLogin() {
#  if [ -x "$(which Xdialog)" ]; then
#    user_wm_server=$(Xdialog --stdout $icon --3inputsbox \
#      "$login_text" 0 0 username "$user" "window manager" \
#      "$command" server "$server")

#    status="$?"
#    case $status in
#      0) ;;
#      1) xmessage -center "login cancelled. $status"
#        echo "login cancelled. $status"
#        exit 1 ;;
#      255) xmessage -center "login failed, misconfigured getLogin function? $status"
#        echo "login failed, misconfigured getLogin function? $status"
#        exit 1 ;;
#    esac

#    user=$(echo $user_wm_server | cut -d / -f 1)
#    command=$(echo $user_wm_server | cut -d / -f 2)
#    server=$(echo $user_wm_server | cut -d / -f 3)
#  fi
#}