pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 22:46 (CEST):
> Hello:
> 
> thanks for the replies.
> 
> I tried creating a script in /etc
> 
> # cat /etc/apm/suspend
> #!/bin/sh

I'd recommend "#!/bin/sh -e" for shebang; this way the shell (/bin/sh)
stops when an error occurs. 

> pkill -USR1 xidle

This will only work if xidle(1) is running; does it run? 
(run "pgrep xidle")

> and then I added this to my .xsession
> 
> $ cat .xsession
> xidle &
> 
> Still, when resuming, my session is exposed.
> 
> This is my .xinitrc:
> 
> xmodmap -e "keycode 22 = BackSpace BackSpace BackSpace BackSpace
> BackSpace BackSpace"
> xset -b
> exec startxfce4
> #exec cwm
> 
> What am I doing wrong?

No idea so far; are you starting X via startx(1) or via xdm(1)? You are
mixing .xsession (for xdm(1)) and .xinitrc (for startx(1)). 

Bye, Marcus

> 2016-04-09 18:37 GMT+02:00 Marcus MERIGHI <mcmer-open...@tor.at>:
> > Hello Pau,
> >
> > pau.amaro.seo...@gmail.com (Pau Amaro-Seoane), 2016.04.09 (Sat) 12:01 
> > (CEST):
> >> Dear all:
> >>
> >> I prefer to use stable releases of OpenBSD and use a /home encrypted
> >> and I was wondering whether it is possible to keep that partition from
> >> release to release. I mean, I would like to avoid the work of
> >> encrypting a huge partition every time that I update the OS.
> >
> > If you use bsd.rd (install kernel downloaded and booted) and select
> > "Upgrade" then your /home won't be newfs(8)ed.
> >
> > I have (on my single user notebook) /home unencrypted, my users home dir
> > encrypted but just 1GB and a user/data mount with the big one.
> >
> > This way you get quick access to your home dir when fsck(8) has to be
> > run.
> >
> > How do you unlock your encrypted /home before log in?
> > How do you fsck your encrypted /home before log in?
> > How do you mount your encrypted /home before log in?
> >
> >> I have seen this web page:
> >> http://<notrepeated>.com/posts/openbsd-workstation.html
> >> and I was wondering whether I could follow this to keep a separate 
> >> partition.
> >>
> >> If this can be done, what would be the steps when I update to 6.0? I
> >> would appreciate a dummy, step-by-step guide assuming that I am 5
> >> years old.
> >
> > See above. Use your OpenBSD installation to download bsd.rd of the
> > version you want. Move it to /bsd.rd. Reboot, enter "boot bsd.rd" at the
> > boot prompt. Follow the instructions. Select "Upgrade".
> >
> >> Another question I have is how to bind a key to xlock + zzz, so that I
> >
> > Which window manager? Stock fvwm?
> >
> >> can lock the screen before suspending, or how to force xlock to be run
> >> after resuming. The indications give in that page are not working for
> >> me.
> >
> > apmd(8) can run scripts on wakeup/resume/standby/...
> > But what you might really want is -startCmd of xlock(1).
> >
> > What about your encrypted partition when suspending?
> >
> > Bye, Marcus
> >
> >> 
> _______________________________________________
> Openbsd-newbies mailing list
> Openbsd-newbies@sfobug.theapt.org
> http://mailman.theapt.org/listinfo/openbsd-newbies
> 
> !DSPAM:57096bde169436131517175!
> 

-- 
https://www.tor.at/~mcmer/.signature

Ich untersage hiermit a) die Verwendung meiner personenbezogenen Daten
zu anderen Zwecken als den in diesem Vorgang gegenstaendlichen sowie b)
die Weitergabe meiner personenbezogenen Daten.  Die Nichtbefolgung
dieser Anweisung ist in Oesterreich gesetzeswidrig. Siehe hiezu das 
Datenschutzgesetz (DSG) 2000 idgF., zu finden u.a. unter:
http://ris.bka.gv.at/GeltendeFassung.wxe?Abfrage=Bundesnormen&Gesetzesnummer=10001597
_______________________________________________
Openbsd-newbies mailing list
Openbsd-newbies@sfobug.theapt.org
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to