This is an old revision of the document!


Solaris tips

Howto merge pdf documents

$ gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf *.pdf

Howto convert plain text file to pdf

$ pr -f <file> | a2ps -1 -m -B --borders=no -o - | ps2pdf - - > /tmp/pr.pdf

Howto disable launching X on /dev/console

Can't just disable gdm(1m), since it takes care of launching Xnewt for Sun Ray thin clients. Instead, disabled just primary ConsoleKit seat by setting Hidden attribute to true in /etc/ConsoleKit/seats.d/00-primary.seat configuration file:

$ grep Hidden /etc/ConsoleKit/seats.d/00-primary.seat
#Hidden=false
Hidden=true

More info in console-kit-daemon(1m) man page.

Create new Mercurial repository

$ cd /data/hg
$ mkdir elektro
$ cd elektro
$ hg init
notes/solaris_tips.1566196759.txt.gz · Last modified: 2019/08/19 08:39 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0