Skip to content

Instantly share code, notes, and snippets.

@rschuman
Last active July 26, 2018 12:51
Show Gist options
  • Select an option

  • Save rschuman/6168833 to your computer and use it in GitHub Desktop.

Select an option

Save rschuman/6168833 to your computer and use it in GitHub Desktop.

Revisions

  1. Robert Schuman revised this gist Jul 26, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ Compile libevent:
    $ cd ~/downloads
    $ tar zxvf libevent2.tar.gz
    $ cd /libevent-2.x.xx-stable
    $ ./configure --prefix=$HOME/local
    $ ./configure --prefix=/usr/local
    $ make
    $ make install
    ```
  2. Robert Schuman revised this gist May 17, 2014. 1 changed file with 16 additions and 0 deletions.
    16 changes: 16 additions & 0 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,7 @@ Downloads:
    - tmux: http://sourceforge.net/projects/tmux/files/latest/download?source=files

    Yum Packages:

    - gcc
    - kernel-devel
    - make
    @@ -14,6 +15,7 @@ Yum Packages:
    ### Installation for all Users

    Download the latest libevent2 and tmux:

    ```bash
    $ sudo su -
    $ mkdir ~/downloads && cd ~/downloads
    @@ -22,11 +24,13 @@ $ curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -
    ```

    Install dependencies:

    ```bash
    $ yum install gcc kernel-devel make ncurses-devel
    ```

    Compile libevent:

    ```bash
    $ cd ~/downloads
    $ tar zxvf libevent2.tar.gz
    @@ -37,6 +41,7 @@ $ make install
    ```

    Compile tmux:

    ```bash
    $ cd ~/downloads
    $ tar zxvf tmux.tar.gz
    @@ -49,6 +54,7 @@ $ make install
    ### Installation for a Single User

    Download the latest libevent2 and tmux:

    ```bash
    $ sudo su - <user_name>
    $ mkdir ~/local # local folder for libevent, tmux dependencies, binaries, etc.
    @@ -58,11 +64,13 @@ $ curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -
    ```

    Install dependencies (you will need sudo privileges):

    ```bash
    $ sudo yum install gcc kernel-devel make ncurses-devel
    ```

    Compile libevent:

    ```bash
    $ cd ~/downloads
    $ tar zxvf libevent2.tar.gz
    @@ -73,28 +81,33 @@ $ make install
    ```

    Compile tmux:

    ```bash
    $ cd ~/downloads
    $ tar zxvf tmux.tar.gz
    $ cd tmux-n.n
    ```
    Configure: Add your newly compiled header in ~/local/lib to configuration parameters:

    ```bash
    $ LDFLAGS="-L/usr/local/lib -L$HOME/local/lib -Wl,-rpath=/usr/local/lib:$HOME/local/lib" ./configure --prefix=$HOME/local
    ```

    Makefile: This needs to be altered to include newly created files in ~/usr/local/include:

    - open vi with a search for "am_append_6 =": ```$ vi +/am__append_6\ = Makefile```
    - change ```am__append_6 = -iquote. -I/usr/local/include``` to ```am__append_6 = -iquote. -I/usr/local/include -I$(prefix)/include```
    - save and quit

    Continue on as normal:

    ```bash
    $ make
    $ make install
    ```

    According to the output, the executable has been installed to ~/local/bin:

    ```bash
    make[1]: Entering directory `/home/robert/downloads/tmux-1.8'
    /bin/mkdir -p '/home/robert/local/bin'
    @@ -105,16 +118,19 @@ make[1]: Leaving directory `/home/robert/downloads/tmux-1.8'
    ```

    In case another version of tmux is already globally installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc:

    ```bash
    alias tmux=$HOME/local/bin/tmux
    ```

    Reload your .bashrc/.zshrc/etc settings:

    ```bash
    $ source ~/.bashrc
    ```

    Make sure you're now pointing to the correct version of tmux:
    ```bash
    $ tmux -V
    >> tmux 1.n
  3. Robert Schuman revised this gist May 17, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    ### Dependencies:

    Downloads:

    - libevent: http://sourceforge.net/projects/levent/files/latest/download?source=files
    - tmux: http://sourceforge.net/projects/tmux/files/latest/download?source=files

  4. rschuman revised this gist Aug 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -121,7 +121,7 @@ $ tmux -V
    ### Enabling Mouse Support
    - In your home folder, create edit or create a .tmux.conf file.
    - In your home folder, edit or create a .tmux.conf file.
    - Add the following settings to .tmux.conf:
    ```
  5. rschuman revised this gist Aug 7, 2013. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -118,3 +118,16 @@ Make sure you're now pointing to the correct version of tmux:
    $ tmux -V
    >> tmux 1.n
    ```
    ### Enabling Mouse Support
    - In your home folder, create edit or create a .tmux.conf file.
    - Add the following settings to .tmux.conf:
    ```
    # Enable mouse support (tested in iTerm)
    set-window-option -g mode-mouse on
    set-option -g mouse-select-pane on
    set-option -g mouse-resize-pane on
    set-option -g mouse-select-window on
    ```
  6. rschuman revised this gist Aug 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -50,7 +50,7 @@ $ make install
    Download the latest libevent2 and tmux:
    ```bash
    $ sudo su - <user_name>
    $ mkdir -p ~/local/lib # user's local folder for executables
    $ mkdir ~/local # local folder for libevent, tmux dependencies, binaries, etc.
    $ mkdir ~/downloads && cd ~/downloads
    $ curl http://sourceforge.net/projects/levent/files/latest/download?source=files -L -o libevent2.tar.gz -w 'Last URL was: %{url_effective}'
    $ curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -L -o tmux.tar.gz -w 'Last URL was: %{url_effective}'
  7. rschuman revised this gist Aug 7, 2013. 1 changed file with 13 additions and 2 deletions.
    15 changes: 13 additions & 2 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -103,7 +103,18 @@ make[1]: Entering directory `/home/robert/downloads/tmux-1.8'
    make[1]: Leaving directory `/home/robert/downloads/tmux-1.8'
    ```

    In case another version of tmux is already installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc:
    In case another version of tmux is already globally installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc:
    ```bash
    alias tmux=$HOME/local/bin/tmux
    ```
    ```

    Reload your .bashrc/.zshrc/etc settings:
    ```bash
    $ source ~/.bashrc
    ```

    Make sure you're now pointing to the correct version of tmux:
    ```bash
    $ tmux -V
    >> tmux 1.n
    ```
  8. rschuman revised this gist Aug 7, 2013. 1 changed file with 8 additions and 23 deletions.
    31 changes: 8 additions & 23 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ Yum Packages:
    - make
    - ncurses-devel

    ### Installation for all Users (a.k.a. Installing with Root/Sudo User)
    ### Installation for all Users

    Download the latest libevent2 and tmux:
    ```bash
    @@ -56,7 +56,7 @@ $ curl http://sourceforge.net/projects/levent/files/latest/download?source=files
    $ curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -L -o tmux.tar.gz -w 'Last URL was: %{url_effective}'
    ```

    Install dependencies (you will need sudo privileges for this step):
    Install dependencies (you will need sudo privileges):
    ```bash
    $ sudo yum install gcc kernel-devel make ncurses-devel
    ```
    @@ -82,16 +82,12 @@ Configure: Add your newly compiled header in ~/local/lib to configuration parame
    $ LDFLAGS="-L/usr/local/lib -L$HOME/local/lib -Wl,-rpath=/usr/local/lib:$HOME/local/lib" ./configure --prefix=$HOME/local
    ```

    Makefile: This needs to be altered to include your newly created files in ~/usr/local/include:
    - open vi with a search for "am_append_6 =":
    ```$ vi +/am__append_6\ = Makefile```
    - change
    ```am__append_6 = -iquote. -I/usr/local/include```
    to
    ```am__append_6 = -iquote. -I/usr/local/include -I$(prefix)/include```
    Makefile: This needs to be altered to include newly created files in ~/usr/local/include:
    - open vi with a search for "am_append_6 =": ```$ vi +/am__append_6\ = Makefile```
    - change ```am__append_6 = -iquote. -I/usr/local/include``` to ```am__append_6 = -iquote. -I/usr/local/include -I$(prefix)/include```
    - save and quit

    Continue on with install process:
    Continue on as normal:
    ```bash
    $ make
    $ make install
    @@ -107,18 +103,7 @@ make[1]: Entering directory `/home/robert/downloads/tmux-1.8'
    make[1]: Leaving directory `/home/robert/downloads/tmux-1.8'
    ```

    In case another version of tmux is already globally installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc. to make sure you're using the right version:
    In case another version of tmux is already installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc:
    ```bash
    alias tmux=$HOME/local/bin/tmux
    ```
    Reload your .bashrc/.zshrc/etc settings:
    ```bash
    $ source ~/.bashrc
    ```
    Make sure you're now pointing to the correct version of tmux:
    ```bash
    $ tmux -V
    >> tmux 1.n
    ```
    ```
  9. rschuman revised this gist Aug 7, 2013. 1 changed file with 13 additions and 2 deletions.
    15 changes: 13 additions & 2 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -107,7 +107,18 @@ make[1]: Entering directory `/home/robert/downloads/tmux-1.8'
    make[1]: Leaving directory `/home/robert/downloads/tmux-1.8'
    ```

    In case another version of tmux is already installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc:
    In case another version of tmux is already globally installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc. to make sure you're using the right version:
    ```bash
    alias tmux=$HOME/local/bin/tmux
    ```
    ```
    Reload your .bashrc/.zshrc/etc settings:
    ```bash
    $ source ~/.bashrc
    ```
    Make sure you're now pointing to the correct version of tmux:
    ```bash
    $ tmux -V
    >> tmux 1.n
    ```
  10. rschuman revised this gist Aug 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -91,7 +91,7 @@ to
    ```am__append_6 = -iquote. -I/usr/local/include -I$(prefix)/include```
    - save and quit

    Continue on as normal:
    Continue on with install process:
    ```bash
    $ make
    $ make install
  11. rschuman revised this gist Aug 7, 2013. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -82,9 +82,13 @@ Configure: Add your newly compiled header in ~/local/lib to configuration parame
    $ LDFLAGS="-L/usr/local/lib -L$HOME/local/lib -Wl,-rpath=/usr/local/lib:$HOME/local/lib" ./configure --prefix=$HOME/local
    ```

    Makefile: This needs to be altered to include newly created files in ~/usr/local/include:
    - open vi with a search for "am_append_6 =": ```$ vi +/am__append_6\ = Makefile```
    - change ```am__append_6 = -iquote. -I/usr/local/include``` to ```am__append_6 = -iquote. -I/usr/local/include -I$(prefix)/include```
    Makefile: This needs to be altered to include your newly created files in ~/usr/local/include:
    - open vi with a search for "am_append_6 =":
    ```$ vi +/am__append_6\ = Makefile```
    - change
    ```am__append_6 = -iquote. -I/usr/local/include```
    to
    ```am__append_6 = -iquote. -I/usr/local/include -I$(prefix)/include```
    - save and quit

    Continue on as normal:
  12. rschuman revised this gist Aug 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -56,7 +56,7 @@ $ curl http://sourceforge.net/projects/levent/files/latest/download?source=files
    $ curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -L -o tmux.tar.gz -w 'Last URL was: %{url_effective}'
    ```

    Install dependencies (you will need sudo privileges):
    Install dependencies (you will need sudo privileges for this step):
    ```bash
    $ sudo yum install gcc kernel-devel make ncurses-devel
    ```
  13. rschuman revised this gist Aug 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ Yum Packages:
    - make
    - ncurses-devel

    ### Installation for all Users
    ### Installation for all Users (a.k.a. Installing with Root/Sudo User)

    Download the latest libevent2 and tmux:
    ```bash
  14. rschuman revised this gist Aug 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -45,7 +45,7 @@ $ make
    $ make install
    ```

    ### Installation for a Singe User
    ### Installation for a Single User

    Download the latest libevent2 and tmux:
    ```bash
  15. rschuman revised this gist Aug 7, 2013. 1 changed file with 70 additions and 3 deletions.
    73 changes: 70 additions & 3 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -27,16 +27,83 @@ $ yum install gcc kernel-devel make ncurses-devel

    Compile libevent:
    ```bash
    $ cd ~/downloads/libevent-2.x.xx
    $ ./configure --prefix=/usr/local
    $ cd ~/downloads
    $ tar zxvf libevent2.tar.gz
    $ cd /libevent-2.x.xx-stable
    $ ./configure --prefix=$HOME/local
    $ make
    $ make install
    ```

    Compile tmux:
    ```bash
    $ cd ~/downloads/tmux-n.n
    $ cd ~/downloads
    $ tar zxvf tmux.tar.gz
    $ cd tmux-n.n
    $ LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
    $ make
    $ make install
    ```

    ### Installation for a Singe User

    Download the latest libevent2 and tmux:
    ```bash
    $ sudo su - <user_name>
    $ mkdir -p ~/local/lib # user's local folder for executables
    $ mkdir ~/downloads && cd ~/downloads
    $ curl http://sourceforge.net/projects/levent/files/latest/download?source=files -L -o libevent2.tar.gz -w 'Last URL was: %{url_effective}'
    $ curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -L -o tmux.tar.gz -w 'Last URL was: %{url_effective}'
    ```

    Install dependencies (you will need sudo privileges):
    ```bash
    $ sudo yum install gcc kernel-devel make ncurses-devel
    ```

    Compile libevent:
    ```bash
    $ cd ~/downloads
    $ tar zxvf libevent2.tar.gz
    $ cd /libevent-2.x.xx-stable
    $ ./configure --prefix=$HOME/local
    $ make
    $ make install
    ```

    Compile tmux:
    ```bash
    $ cd ~/downloads
    $ tar zxvf tmux.tar.gz
    $ cd tmux-n.n
    ```
    Configure: Add your newly compiled header in ~/local/lib to configuration parameters:
    ```bash
    $ LDFLAGS="-L/usr/local/lib -L$HOME/local/lib -Wl,-rpath=/usr/local/lib:$HOME/local/lib" ./configure --prefix=$HOME/local
    ```

    Makefile: This needs to be altered to include newly created files in ~/usr/local/include:
    - open vi with a search for "am_append_6 =": ```$ vi +/am__append_6\ = Makefile```
    - change ```am__append_6 = -iquote. -I/usr/local/include``` to ```am__append_6 = -iquote. -I/usr/local/include -I$(prefix)/include```
    - save and quit

    Continue on as normal:
    ```bash
    $ make
    $ make install
    ```

    According to the output, the executable has been installed to ~/local/bin:
    ```bash
    make[1]: Entering directory `/home/robert/downloads/tmux-1.8'
    /bin/mkdir -p '/home/robert/local/bin'
    /usr/bin/install -c tmux '/home/robert/local/bin'
    /bin/mkdir -p '/home/robert/local/share/man/man1'
    /usr/bin/install -c -m 644 tmux.1 '/home/robert/local/share/man/man1'
    make[1]: Leaving directory `/home/robert/downloads/tmux-1.8'
    ```

    In case another version of tmux is already installed on the system, you might want to add the following line to your ~/.bashrc, ~/.zshrc, etc:
    ```bash
    alias tmux=$HOME/local/bin/tmux
    ```
  16. rschuman created this gist Aug 6, 2013.
    42 changes: 42 additions & 0 deletions install_tmux_centos.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    ### Dependencies:

    Downloads:
    - libevent: http://sourceforge.net/projects/levent/files/latest/download?source=files
    - tmux: http://sourceforge.net/projects/tmux/files/latest/download?source=files

    Yum Packages:
    - gcc
    - kernel-devel
    - make
    - ncurses-devel

    ### Installation for all Users

    Download the latest libevent2 and tmux:
    ```bash
    $ sudo su -
    $ mkdir ~/downloads && cd ~/downloads
    $ curl http://sourceforge.net/projects/levent/files/latest/download?source=files -L -o libevent2.tar.gz -w 'Last URL was: %{url_effective}'
    $ curl http://sourceforge.net/projects/tmux/files/latest/download?source=files -L -o tmux.tar.gz -w 'Last URL was: %{url_effective}'
    ```

    Install dependencies:
    ```bash
    $ yum install gcc kernel-devel make ncurses-devel
    ```

    Compile libevent:
    ```bash
    $ cd ~/downloads/libevent-2.x.xx
    $ ./configure --prefix=/usr/local
    $ make
    $ make install
    ```

    Compile tmux:
    ```bash
    $ cd ~/downloads/tmux-n.n
    $ LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
    $ make
    $ make install
    ```