Why did I not know about this until now?
https://github.com/tmux-plugins/tmux-resurrect
It restores all windows, all panes, all ssh sessions.
Why did I not know about this until now?
https://github.com/tmux-plugins/tmux-resurrect
It restores all windows, all panes, all ssh sessions.
# invisible separators
set-option -g pane-border-fg black
set-option -g pane-border-bg black
set-option -g pane-active-border-fg black
set-option -g pane-active-border-bg black
set -g pane-border-style bg=black,fg=black
set -g pane-active-border-style bg=black,fg=black
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider :virtualbox do |vb|
vb.customize ["storagectl", :id, "--add", "sata", "--name", "SATA" , "--portcount", 2, "--hostiocache", "on"]
end
(1..3).each do |i|
config.vm.define "server#{i}" do |node|
node.vm.hostname = "server#{i}"
node.vm.box = "hfm4/centos7"
config.vm.box_check_update = true
node.vm.network :public_network, ip: "10.1.1.#{i}", netmask: '255.255.255.0'
node.vm.network :public_network, ip: "10.1.2.#{i}", netmask: '255.255.255.0'
node.vm.network :public_network, ip: "10.1.3.#{i}", netmask: '255.255.255.0'
config.vm.provider "virtualbox" do |v|
v.name = "server#{i}"
v.memory = 512
v.cpus = 1
v.customize ['createhd', '--filename', "server_#{i}a.vdi", '--size', 8192 ]
v.customize ['createhd', '--filename', "server_#{i}b.vdi", '--size', 8192 ]
v.customize ['storageattach', :id, '--storagectl', 'SATA', '--port', 1, '--device', 0, \
'--type', 'hdd', '--medium', "./server_#{i}a.vdi"]
v.customize ['storageattach', :id, '--storagectl', 'SATA', '--port', 2, '--device', 0, \
'--type', 'hdd', '--medium', "./server_#{i}b.vdi"]
end
end
end
end
root@gwen:/etc/bind# tail -2 named.conf.local
zone "facebook.com" { type master; file "/etc/bind/db.block"; };
zone "twitter.com" { type master; file "/etc/bind/db.block"; };
root@gwen:/etc/bind# cat db.block
$TTL 24h
@ IN SOA ns1.antwerp.local. paul.cobbaut.gmail.com. (
2012082800 86400 300 604800 3600 )
@ IN NS ns1.antwerp.local.
@ IN A 127.0.0.1
* IN A 127.0.0.1
cu -l /dev/ttyS0 -s 9600 cu -l /dev/ttyS0 -s 19200 cu -l /dev/ttyS0 -s 115200 cu -o -l /dev/ttyS0 -s 9600 cu -o -l /dev/ttyS0 -s 19200 cu -o -l /dev/ttyS0 -s 115200 screen -l /dev/ttyS0 9600 screen -l /dev/ttyS0 9600 8N1 screen -l /dev/ttyS0 19200 screen -l /dev/ttyS0 38400 screen -l /dev/ttyS0 115200
aptitude install iscsitarget aptitude install iscsitarget-dkms (Debian 6)
root@debby6:/etc/iet# cat ietd.conf Target iqn.2010-02.be.linux-training:storage.lun1 IncomingUser isuser hunter2 OutgoingUser Lun 0 Path=/iscsi/lun1.img,Type=fileio Alias LUN1
dd if=/dev/zero of=/iscsi/lun1.img count= bs=
root@debby6:/etc/iet# cat initiators.allow iqn.2010-02.be.linux-training:storage.lun1
root@debby6:/etc/iet# cat /proc/net/iet/session tid:1 name:iqn.2010-02.be.linux-training:storage.lun1The iSCSI Initiator
aptitude install open-iscsi
root@ubu1104:/etc/iscsi# iscsiadm -m discovery -t st -p debby6 192.168.1.31:3260,1 iqn.2010-02.be.linux-training:storage.lun2
root@ubu1104:/etc/iscsi# iscsiadm -m node --targetname "iqn.2010-02.be.linux-training:storage.lun1" --portal "debby6:3260" --op=update --name node.session.auth.authmethod --value=CHAP root@ubu1104:/etc/iscsi# iscsiadm -m node --targetname "iqn.2010-02.be.linux-training:storage.lun1" --portal "debby6:3260" --op=update --name node.session.auth.username --value=isuser root@ubu1104:/etc/iscsi# iscsiadm -m node --targetname "iqn.2010-02.be.linux-training:storage.lun1" --portal "debby6:3260" --op=update --name node.session.auth.password --value=hunter2
$ hcitool scan
Scanning ...
00:16:53:08:XX:XX Julie
00:16:53:0B:XX:XX Mercedes
$ cat /etc/bluetooth/rfcomm.conf
rfcomm0 {
bind yes;
device 00:16:53:0B:XX:XX;
channel 1;
comment "Mercedes";
}
rfcomm1 {
bind yes;
device 00:16:53:08:XX:XX;
channel 1;
comment "Julie";
}
# rfcomm release all && rfcomm bind all && rfcomm
rfcomm0: 00:16:53:0B:XX:XX channel 1 clean
rfcomm1: 00:16:53:08:XX:XX channel 2 clean
$ cat /home/paul/nxt.dat
BTH::JULIE=BTH::JULIE::00:16:53:08:XX:XX::5
BTH::MERCEDES=BTH::MERCEDES::00:16:53:0B:XX:XX::5
nbc foo.nbc -O=bar.rxe
nbc -b -d -S=BTH::Julie bar.rxe
root@mac:~# history | grep 'aptitude install'
11 aptitude install nvidia-settings nvidia-bl-dkms \
pommed vim nfs-common wicd
45 aptitude install azureus wesnoth chromium-browser
104 aptitude install virtualbox-4.0
139 aptitude install wireshark wireshark-gnome
152 aptitude install gimp
173 aptitude install openssh-server
180 aptitude install pdfedit
201 aptitude install ttf-bitstream-vera
206 aptitude install unrar
219 aptitude install imagemagick
220 history | grep 'aptitude install'
fop -xml $xmlfile -xsl $XSLFILE -pdf $pdffiletakes about 40 seconds on Debian on an old Pentium 4.
paul@deb503:/usr/lib/jvm$ ls -l
total 4.0K
lrwxrwxrwx 1 root root 8 2010-01-15 22:51 default-java -> java-gcj
drwxr-xr-x 5 root root 4.0K 2009-10-28 14:16 java-1.5.0-gcj-4.3-1.5.0.0
lrwxrwxrwx 1 root root 26 2009-10-28 14:16 java-gcj -> java-1.5.0-gcj-4.3-1.5.0.0
paul@deb503:~/lt$ ls -l /usr/lib/jvm/
total 8.0K
lrwxrwxrwx 1 root root 14 2010-02-16 12:17 default-java -> java-1.5.0-sun
drwxr-xr-x 5 root root 4.0K 2009-10-28 14:16 java-1.5.0-gcj-4.3-1.5.0.0
lrwxrwxrwx 1 root root 23 2010-02-16 12:15 java-1.5.0-sun -> java-1.5.0-sun-1.5.0.17
drwxr-xr-x 6 root root 4.0K 2010-02-16 12:15 java-1.5.0-sun-1.5.0.17
lrwxrwxrwx 1 root root 26 2009-10-28 14:16 java-gcj -> java-1.5.0-gcj-4.3-1.5.0.0
root@sol10u8 export# zoneadm -z debianzone boot
root@sol10u8 export# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
7 debianzone running /export/debianzone lx shared
- zoneldap installed /export/zoneldap native shared
- zonedns installed /export/zonedns native excl
- lx-zone installed /export/lx-zone lx shared
- zonejs configured /export/zonejs native shared
root@sol10u8 export#
debianzone:~# uname -a
Linux debianzone 2.4.21 BrandZ fake linux i686 GNU/Linux
debianzone:~# ping 192.168.1.1
WARNING: setsockopt(ICMP_FILTER): Protocol not available
Do you have CONFIG_SOCKET in your kernel?WARNING: your kernel is veeery old. No problems.
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
Warning: no SO_TIMESTAMP support, falling back to SIOCGSTAMP
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=3.56 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.77 ms
debianzone:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
debianzone:~# route add -net 127.0.0.0
SIOCADDRT: Invalid argument
debianzone:~# route add -net 192.168.1.0 dev eth0
SIOCADDRT: Invalid argument
debianzone:~# route add default gateway 192.168.1.1
SIOCADDRT: Invalid argument
debianzone:~#
for i in *.JPG
do
convert -resize 1280x1024 $i 1280_$i
done