senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. matoken (matoken@gnusocial.matoken.org)'s status on Saturday, 06-Jul-2019 00:56:07 JST matoken matoken
    Linux でいい感じにロックできる physlock

    "muennich/physlock: Lightweight linux console locking tool" https://github.com/muennich/physlock

    こんな感じで叩くとコンソールもXもロックされてMagickSysrq も無効に出来るしKernel message も抑制される
    $ physlock -s -m -p "lock!"

    でもスクリーンセーバーとか画面スリープとか出来ないのでどうにかしたい
    In conversation Saturday, 06-Jul-2019 00:56:07 JST from gnusocial.matoken.org permalink

    Attachments

    1. muennich/physlock
      from GitHub
      Lightweight linux console locking tool. Contribute to muennich/physlock development by creating an account on GitHub.
    • matoken (matoken@gnusocial.matoken.org)'s status on Saturday, 06-Jul-2019 00:57:00 JST matoken matoken
      in reply to
      physlock 実行前後に任意のコマンドが実行できる感じのPR が来ていた

      "Allow running of arbitrary commands before and after authentication by DexterLB · Pull Request #79 · muennich/physlock" https://github.com/muennich/physlock/pull/79
      In conversation Saturday, 06-Jul-2019 00:57:00 JST permalink

      Attachments

      1. Allow running of arbitrary commands before and after authentication by DexterLB · Pull Request #79 · muennich/physlock
        from GitHub
        Let the user execute any command just before and after authenticating. This allows for things like printing a different prompt each time, showing something just after unlocking, etc - within physlo...
    • matoken (matoken@gnusocial.matoken.org)'s status on Saturday, 06-Jul-2019 00:57:41 JST matoken matoken
      in reply to
      これを使えばスクリーンセーバーを動かしたりできそう
      In conversation Saturday, 06-Jul-2019 00:57:41 JST permalink
    • matoken (matoken@gnusocial.matoken.org)'s status on Saturday, 06-Jul-2019 00:58:21 JST matoken matoken
      in reply to
      てことでsource 入手してPR のpatch 当てる

      $ sudo apt-get build-dep physlock
      $ git clone https://github.com/muennich/physlock
      $ cd physlock
      $ wget https://github.com/muennich/physlock/pull/79.patch
      $ patch -p1 < ./79.patch
      $ make
      $ sudo chown root.root ./physlock
      $ sudo chmod u+s ./physlock
      $ ./physlock -h
      usage: physlock [-dhLlmsbanv] [-p MSG]
      In conversation Saturday, 06-Jul-2019 00:58:21 JST permalink

      Attachments

      1. muennich/physlock
        from GitHub
        Lightweight linux console locking tool. Contribute to muennich/physlock development by creating an account on GitHub.

      2. Invalid filename.
    • matoken (matoken@gnusocial.matoken.org)'s status on Saturday, 06-Jul-2019 00:59:16 JST matoken matoken
      in reply to
      -b, -a, -n が増えている

      $ git diff README.md
      diff --git a/README.md b/README.md
      index bc25ca3..563e734 100644
      --- a/README.md
      +++ b/README.md
      @@ -57,6 +57,9 @@ The following command-line arguments are supported:
      -l only lock console switching
      -L only enable console switching
      -m mute kernel messages on console while physlock is running
      + -b CMD execute CMD before the password prompt
      + -a CMD execute CMD after successfully authenticating
      + -n don't actually authenticate: just execute commands
      -p MSG Display MSG before the password prompt
      -s disable sysrq key while physlock is running
      -v print version information and exit
      In conversation Saturday, 06-Jul-2019 00:59:16 JST permalink
    • matoken (matoken@gnusocial.matoken.org)'s status on Saturday, 06-Jul-2019 01:00:00 JST matoken matoken
      in reply to
      てことでスクリーンセーバーとか
      $ ./physlock -b 'xscreensaver-command -demo 8'

      画面スリープとか
      $ ./physlock -b 'xset dpms force standby'

      うまく動かない(◞‸◟)
      In conversation Saturday, 06-Jul-2019 01:00:00 JST permalink
    • matoken (matoken@gnusocial.matoken.org)'s status on Saturday, 06-Jul-2019 01:01:07 JST matoken matoken
      in reply to
      多分画面がphyslock に乗っ取られていてしまっている
      In conversation Saturday, 06-Jul-2019 01:01:07 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.