Add tun device to LXC Proxmox



  • Add tun device to LXC

    Shutdown container:

    Where 100 is the container ID

    pct shutdown 100
    

    Move into your container config file:

    vi /etc/pve/lxc/100.conf
    

    Add the following to the end of the file:

    Type lthe letter i to edit in vi

    i
    

    Add the following into the file:

    lxc.hook.autodev: /var/lib/lxc/100/tuntap
    lxc.cgroup.devices.allow = c 10:200 rwm
    

    Save changes and exit:

    Tap esc key to leave edit insert mode:

    Then, Write and Quit saving the changes

    :wq
    

    Create the tun device:

    vi /var/lib/lxc/100/tuntap
    

    Enter the following into the new file:

    #!/bin/bash
    cd ${LXC_ROOTFS_MOUNT}/dev
    mkdir net
    mknod net/tun c 10 200
    chmod 0666 net/tun
    

    Save and quit


    You are good to restart the container.

    Type :

    ip a
    

    To view the devices, remembering the tun device will not be available until you start a script such as openvpn. Or manually start the device for whatever reason.





Tmux Commands

screen and tmux

A comparison of the features (or more-so just a table of notes for accessing some of those features) for GNU screen and BSD-licensed tmux.

The formatting here is simple enough to understand (I would hope). ^ means ctrl+, so ^x is ctrl+x. M- means meta (generally left-alt or escape)+, so M-x is left-alt+x

It should be noted that this is no where near a full feature-set of either group. This - being a cheat-sheet - is just to point out the most very basic features to get you on the road.

Trust the developers and manpage writers more than me. This document is originally from 2009 when tmux was still new - since then both of these programs have had many updates and features added (not all of which have been dutifully noted here).

Action tmux screen
start a new session tmux OR
tmux new OR
tmux new-session
screen
re-attach a detached session tmux attach OR
tmux attach-session
screen-r
re-attach an attached session (detaching it from elsewhere) tmux attach -d OR
tmux attach-session -d
screen -dr
re-attach an attached session (keeping it attached elsewhere) tmux attach OR
tmux attach-session
screen -x
detach from currently attached session ^b d OR
^b :detach
^a ^d OR
^a :detach
rename-window to newname ^b , <newname> OR
^b :rename-window <newn>
^a A <newname>
list windows ^b w ^a w
list windows in chooseable menu ^a "
go to window # ^b # ^a #
go to last-active window ^b l ^a ^a
go to next window ^b n ^a n
go to previous window ^b p ^a p
see keybindings ^b ? ^a ?
list sessions ^b s OR
tmux ls OR
tmux list-sessions
screen -ls
toggle visual bell ^a ^g
create another window ^b c ^a c
exit current shell/window ^d ^d
split window/pane horizontally ^b " ^a S
split window/pane vertically ^b % ^a |
switch to other pane ^b o ^a <tab>
kill the current pane ^b x OR (logout/^D)
collapse the current pane/split (but leave processes running) ^a X
cycle location of panes ^b ^o
swap current pane with previous ^b {
swap current pane with next ^b }
show time ^b t
show numeric values of panes ^b q
toggle zoom-state of current pane (maximize/return current pane) ^b z
break the current pane out of its window (to form new window) ^b !
re-arrange current panels within same window (different layouts) ^b [space]
Kill the current window (and all panes within) ^b killw [target-window]
  • ?

    Hi there guys! I am wishing to extract some B2B leads for our B2B subdivision of our online vape company. Has anybody previously used the <a href=https://wowitloveithaveit.com/products/yoggys-money-vault-email-extractor-and-search-engine-scraper-software-harvester-yoggy>Yoggys Money Vault Email Scraper</a> for harvesting B2B Leads? Would you recommend it?

    read more
  • ?

    Hello there! I have stumbled upon quite a few comments and queries relating to our https://wowitloveithaveit.com/ - Mailing List and the missing specific niche markets. We have US Marketing Lead List for the majority of markets, featuring Pizza Restaurants & Shops, but it is tough to deal with every foreseeable business market for practical reasons. I am initiating a wishlist of all the sought after specialized niches. Drop me your industry niche market below and I will try to scrape the B2B leads for you and make them readily available on the online site. Thanks

    read more
});