- Checkout code
cd ~/temp/bochs-svn/
svn co http://svn.code.sf.net/p/bochs/code/trunk/bochs
cd bochs| #!/bin/bash | |
| # Usage: | |
| # Download this file | |
| # Put it in /bin or wherever you want, eg: `/bin/tmuxlogin` | |
| # Give it excutable permission, eg: `sudo chmod +x /bin/tmuxlogin` | |
| # Modify your `/etc/shells` and add `/bin/tmuxlogin` to it | |
| # Modify your `~/.tmux.conf` and add `set-option -g default-shell /bin/bash(or whatever shell you want)` to it | |
| # `chsh -s /bin/tmuxlogin` | |
| # Done! |
| This can be used as a starting point for developing your own image e.g. for running MirageOS on an Pi3 | |
| You will need an arm64 / aarch64 cross compiler. You can use e.g. the cross compiler shipped by Ubuntu or get the toolchain of your choice for your OS. | |
| apt-get install gcc-aarch64-linux-gnu | |
| Now we setup the SD card. We need to create two partitions like shown below | |
| Device Boot Start End Sectors Size Id Type | |
| 2018-03-13-raspbian-stretch-lite.img1 8192 93802 85611 41,8M c W95 FAT32 (LBA) |
| #!/bin/bash | |
| # See http://www.erebusbat.com/2015/08/tmux-login-wrapper-script/ | |
| # Inspired by https://github.com/nicknisi/dotfiles | |
| # abort if we're already inside a TMUX session | |
| [ "$TMUX" == "" ] || exit 0 | |
| export SHELL=/usr/local/bin/zsh | |
| export TERM=xterm-256color | |
| export PATH=/usr/local/bin:$PATH | |
| export COLUMNS=1 |
As configured in my dotfiles.
start new:
tmux
start new with session name: