Benutzer:Bogomips

Aus wiki.archlinux.de
Version vom 16. November 2017, 11:46 Uhr von Bogomips (Diskussion | Beiträge) (ssh von host zu vboxguest)

Mein virtuelles Gehirn...

/etc/systemd/system/peelock.service

[Unit]
Description=Lock X session using slock

[Service]
User=john
Environment=DISPLAY=:0
ExecStart=/usr/bin/slock

[Install]
WantedBy=sleep.target 


/usr/share/X11/xorg.conf.d/20-intel.conf

# to make the display work again after sleep.
# first find out the bus ID for vga
# lspci | grep VGA
Section "Device"
        Identifier      "Intel Graphics"
        Driver          "intel"
        Option          "Backlight" "intel_backlight"
        BusID           "PCI:0:2:0"
EndSection

SSH von Host zu virtualbox-guest

settings>network>attached to NAT>advanced>Portforwarding
HostIP 127.0.0.1
HostPort 3456 (z.B.)
GuestIP 10.0.2.15 (ip a)
GuestPort 22 (/etc/ssh/sshd.conf)
ssh -p 3456 $USER@localhost

ODER

settings>network>attached to Bridged Adapter
ip a
ssh $USER@GuestIP