I'm a little confuse regarding how one launches tmux. When I launch my terminal (current gnome-terminal), I would like to have tmux up and running. I'm currently doing this by calling "tmux" in my .zshenv (kind of like .bashrc in bash). This does in fact launch tmux, but has some annoying side effects. First, hitting Ctrl-D to exit the shell, only kills tmux, and leaves the tmux-less gnome-terminal still running. An additional Ctrl-D will kill that as well. Second, when ssh into a box with this setup, I get a second, nested instance of tmux. I don't want tmux to launch again when I ssh. Is this the right approach, how should tmux be launched usually?
Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After pressing Esc and any other key afterwards the switch is immediate, and the command for the key pressed after Esc is executed. Any idea what might cause this?The Vim configuration is not the problem as the delay does not occur when I run Vim outside tmux, so this is probably related to tmux somehow. I use gnome-terminal btw.
Also worth noting, it seems I can not define key bindings in tmux for Esc, my plan was to bind Esc to:bind Escape send-keys.Alas, it seems binding anything to Esc for tmux does not work. The same problem occurs in screen as well.
I want to see what is the configuration of my Wind River Linux (actually I want to see what modules are installed in it when it was built). I can't find the configuration file.
Code: Configured for Linux cc -O2 -march=i486 -mtune=i686 -DBUILD=""1.3"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o attributes.c In file included from attributes.c:23: tmux.h:30:19: error: event.h: No such file or directory
I'm trying to get tmux to open a certain set of panes an certain programs in those panes by default and open that way every time I run tmux. Is there any way to do this?
I read in the documentation commands for this, but i have no idea where to begin.
I installed Jessie (8.1.0) and encountered a problem which is non-existent in Wheezy (7.8.0).
My shell is zsh and I use tmux both installed from packages, I use this zsh feature that when you type "ls /" and then hit "Tab" twice, it will present you a menu where you can select the directory you want navigating the menu with the arrow keys. It works fine out of tmux (in bare shell) but stopped working inside a tmux session. In bare shell you hit Tab twice and get into the menu, in tmux you hit Tab twice and it displays the table of suggestions but just keeps cycling suggestions (cycling directory names) and not sending me to the menu.
Here's some screenshots:
1) Working (no tmux): I hit tab twice and got in the menu.
2) Not working (in tmux): I hit tab twice and it just cycled directory names after "/"
t isn't in my config file, I tried without my .tmux.conf (with tmux set to default settings) and it still had no effect.
I have a challenege infront of me. There is a configuration file which is generated post deployment say orion-web.xml Post deployment I have to append the file with contents,
<session-config> <session-timeout>-1s</session-timeout> </session-config> between one node <webapp>
[code].....
This case would have been different if I had to change the value which would have been possible with my small little knowledge of sed.
When I downloaded the motion detection sw "Motion" I found in the following path: /etc/motion/ motion.conf and 4 thread files in case of using several cameras.
Q1: Which language is that configuration file written? Q2: I need to collect the source of Motion. Is that configuration file + the 4 thread files which in the /etc/motion directory only the source of the program neither there is some files in another paths I don't know?
i want to change in configuration file of ftp server i.e.'vsftpd.conf' for download and upload by root user is enabled . so tail me what changes is occured in configuration file of "ftp server"
I have looked at the GNU GRUB Manual 1.99 at [URL] but I cannot find an explanation of what the kernel entry / command in the grub.conf file means. I get what's the meaning of that entry but where is described what it actually is and what are proper.
I suppose this entry / command was actual in GRUB Legacy, but I cannot find where it is described...
On this Red Hat Box that I am using there is no .vimrc file for the user root. So, I created one and entered only one line to highlight syntax with colors when I am writing scripts in PHP and Bash. But it is not working.
I have one previously compiled apache server from source. I would like to know is there any option to get previous configuration file from /etc/httpd/.
It's always a good to backup a configuration file like sources.list before you edit it. To do so, issue the following command: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup Where does it backup to and how do I access it? I want to put the backup on removable disk or upload it
I have some errors when run the mount -all command: mount: wrong fs type, bad option, bad superblock on /dev/sdc5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so Failed to open /proc/filesystems: No such file or directory
One of the good points of linux is that is easy to customize the partitioning scheme of the disk and put each directory (/home, /var, etc) in diferent partitions and/or diferent disk. Then we can use diferen file system/configurations for each of them for make them better. xamples:
noatime is a mount option to not write access time on the files. data=writeback is an option to layz write metadata on new files. ext3/4 has journaling that make the partition more secure in case of a crash. bigger blocks make the partition waste more space, but make it faster to read and may become more fragmented. (not sure) Then: What are the best filesystem/configurations for each directory? Note: given the answer of Patches, will only discuss /, /home and /var only.
/var -> It's modified constantly, it write logs, cache, temporal, etc. /home -> stores important files. /-> stores everything else (/etc and /usr should be here)
There is this bug in the latest version of Ubuntu, which is also Jessie, which is:
Can't copy a file from SMB share to the local file system: Software caused connection abort
The problem, apparently, is that newer versions of Samba hit servers with multiple requests at the same time, and for some reason the Zyxel and Iomega boxes can't handle this. The best solution they've come up with is to modify the smb.conf file on your server to include this setting: "max mux = 1".
Here is the reference material on this bug: [URL] ....
People who develop samba have fixed it in the latest version but neither the ubuntu nor Debian have released the fixed version of nautilus, as of yet. Here, is the reference: [URL] ....
I have tried to automate the configuration of a usb drive with not much success.
The problem that I have is that I have a large amount of usb drives that have a partition table of type "loop" and I need to change them to "msdos". The size of the drives vary and I need to use FAT32 or FAT16 file system.
I've tried various partitioning commands and gui applications but cant find one that I can give a one line command to to set the partition table, maximum partition size and file system.
I have a slow machine, mainly a Celeron with 250gb HD.This machine is not being used, so I was planning to install a Linux distro and create a bunch of VMs for development.Which distro should I choose? I plan to use this machine mainly as a small "hypervisor" to other vms.Is it possible? What do you suggest? (Buying another machine is out of question, since I would like to know if it's possible give a purpose like this to the Celeron)
I have an encrypted root and encrypted boot drive... To avoid entering a passphrase multiple times I'd like to add a keyfile for my root drive to my initrd... I've done this in Arch and it was relatively simple but I've hit a road block in debian finding the analog processes...
Code: Select all#Part 1) Generate the keyfile, give it suitable permissions and add it as a LUKS key:
I recently installed office 2007 under wine, but since I have it no longer know what to open .doc or .xls files with, I was using Gnumeric but now when i go to Properties -> "Open with" there is no longer anything in the list and even when i attempt to add to the list nothing comes up. If anyone know what way you can manually add file types and associate them with programs