New answers tagged

0

Just started getting this error today. Upgrading to wine 1.8 (dev PPA) made it go away. AMD 64 runing Ubuntu 14.04.


0

As an alternative solution, you can fix this for all users by editing the following definition in in /etc/termcap: xterm-256color|xterm alias 3:\ :Co#256:pa#32767:\ :AB=\E[48;5;%dm:AF=\E[38;5;%dm:tc=xterm-new: Replace :tc=xterm-new: with :tc=xterm-clear: so that it says: xterm-256color|xterm alias 3:\ :Co#256:pa#32767:\ ...


0

In this case, I like the "quiet" answer suggested above; but if you have genuine version conditional config changes, consider this solution similar to your own answer: # grab version info about the tmux currently running run-shell "tmux setenv -g TMUX_VERSION_MAJOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f1 | sed 's/[^0-9]*//g')" run-shell "tmux setenv -g ...


0

I got the answer from @glennjackman comment. I tried it out and it worked. The -bash is just from my experience a separation of context in that it is the bash terminal session's voice and response to my command. The //: is not a directory part that repeated itself was equivalent to the amount of commented out lines I had in my .bash_profile utilizing the ...


0

Another solution would be to use Alfred. It has a feature called clipboard snippets which allows you to paste any text anywhere. I use it for pasting 'Lorem ipsum' text when I need dummy text. So I press CMD+ALT+C, Alfred pops up, then type lorem, press ENTER and a bunch of dummy text is pasted in my code editor, or design software. In Alfred v3 there is a ...


0

Counting the terminals (ex: who - a | grep user | wc -l ) will not work : when one or seceral shell are closed, the total number decreases and the new terminal may match another one already opened. You should simply have a counter: If you want 6 colors overall: touch ~/.colornumber new=$(awk '(NR==1) { print ($1 + 1) % 6; }' ~/.colornumber) echo $new > ...


0

Here is how you can adjust line height and spacing in iTerm. iTerm > Preferences > Profiles tab > Text Once you are looking at the Text pane inside of the Profiles tab, click the Change Font button under Regular Font. The Fonts dialog will include a slider for horizontal and vertical character spacing. Adjusting the vertical value will affect the ...


0

A different strategy for hiding the icons for all other users. Go to /System/Library/CoreServices/Menu Extras/, you will see several files that end with menu. Click on the menu you want to hide. Once the menu is selected, use the keyboard and hold Command-I for the Info menu. Under Sharing & Permissions:, Click the Plus box (you may need to unlock this ...


0

I have found a nice solution for your problem. With this approach you don't need the stuff I have written below previously. You can define a hotkey for a context-menu entry in Windows Explorer by setting a & to the name in the registry shell entry (e.g. @="Edit &file with Vim"). Your hotkey is then underlined in the context-menu entry. This allows ...


1

Using screen: screen -S <session name> -d -m <your command> after that you can quit the terminal, also you can reattach to it by: screen -r <session name> More info: reference


1

What does it means You can see the apt-get command as a more fancy and friendly version of dpkg that is "a tool to install, build, remove and manage Debian packages". The package are installed through dpkg, that calls all the scripts needed by the packgage. Those scripts may act in different ways and can have returned different exit status. The error ...


1

There was no space left on your /tmp/. The output of df -h shows that even an overflow filesystem kicked in. I have found that: If your “/tmp” mount on a linux filesystem is mounted as overflow (often sized at 1MB), this is likely due to you not specifying “/tmp” as its own partition and your root filesystem filled up and “/tmp” was remounted as a ...


1

There could be a number of issues at play here, so I'll go down the list in order of most-likely to least-likely. tmux key binding: I'm not sure there is a default key binding to toggle mouse-mode in tmux, but you can get a list of all of your bindings by executing: <prefix> ? If you see anything in there related to mouse mode, try disabling the ...


0

Just solved my problem... To do that simply install JDownloader, click "Add new address" add in URL/Address Collector the parent URL, in my case: http://ns334561.ip-5-196-65.eu/~fgscenery/WS2.0/, the deselect "auto decompress", in package name, choose a name for the save package/folder, in my case "scenery" and click "next", then in the right hand bar ...


0

You need to capitalize "Volumes": diskutil secureErase freespace 4 "/Volumes/Macintosh HD" diskutil secureErase freespace 4 /Volumes/Macintosh\ HD Edit: I see you already put "Macintosh HD" in quotes. Fixed above.


0

rather than having to drop out to a local terminal and scp, or open up a separate file browser window The tiling terminals or window managers are good alternative. I use Terminator and opening new Tile with local shell is one click and transfering files using scp is just a line of code. Workflow combining terminal window with file browser might sound ...


0

The answers above only works if Terminal is already running. Otherwise it opens two Terminal windows at once - one because of the do script and one because of activate. You can prevent this with a simple if ... else: if application "Terminal" is running then tell application "Terminal" do script "" activate end tell else tell ...


1

Is there a method by which I can suppress this output? Yes. The set-option and set-window-option commands take a -q ("quiet") flag, which suppresses errors about unknown options. This should cover you: set-window-option -gq mouse off set-window-option -gq mode-mouse off set-option -gq status-utf8 on set-window-option -gq utf8 on


2

For some reason (that I've been too lazy to research...) OS X has 3 distinct names for the host computer: ComputerName, HostName and LocalHostName. You can view each of them with a simple loop $ for name in ComputerName HostName LocalHostName; do scutil --get $name; done MY_MAC My_MAC SaxDaddy-MAC As you can see, they can be different. You can use the ...


0

The different heights are expected, just like the issue that too wide symbols are replaced with a square symbol.. I've asked about this on the rxvt-unicode mailing list a while ago (Q4 2004), and created a patch, but it was rejected: http://lists.schmorp.de/pipermail/rxvt-unicode/2014q4/002042.html The patch/branch is available at ...


0

It works the way as suggested by LPChip. In order to open something from the file explorer address bar, you either need to give the file ending (like gb.cmd) or it needs to be an exe-file. You can put the file into any directory within the %PATH% environment variable (e.g. C:\Windows\System32). For your example it can be easily achieved: Add the ...


0

Would you please try the following and see if it helps? rename .tmux.conf to something else set LANG="en_US.UTF-8" Clarification: I have seen the existence of ~/.tmux.conf may cause problem so just for testing I suggested to rename the file. And forcing LANG=en_US.UTF-8 is another measure to ensure the correct locale to be used (since Hal didn't ...


1

If you want this to be command-specific, then redefining ssh (as mentioned in another answer) is probably the best approach. If you actually prefer something more general, bash has a PROMPT_COMMAND shell variable you can set to run a command (or multiple commands) before the shell prompt is printed, which would happen right after ssh (or any other command) ...


2

Is there a way to source my .bashrc when I exit an ssh session? Yes, define a shell function: ssh() { command ssh "$@"; source ~/.bashrc; }


1

Had the same issue after moving to Windows 10. Solved it running mintty in Windows 8 compatibility mode. This is discussed here: https://github.com/mintty/mintty/issues/439


0

Apart from recommending you use the Apple Terminal specific Operating System Command escape sequence: ESC ] Ps ; Pt BEL where Ps is 7 and Pt is a file: URL; it's worth adding that in Mac OS X 10.11 (and probably since 10.7) there's a file /etc/bashrc_Apple_Terminal (uneditable under 10.11) which defines the convenient update_terminal_cwd() as (without the ...


0

In the profile settings, under System → Firmware Customization → Custom Commands → Reconfiguration Commands, copy and paste this command. sed -i~ "s/\$TN/`hostname`/g" /userhome/.ICAClient/appsrv.ini After that, you can put the value $TN in your ICA user name field, and it will get replaced with the terminal name.


1

if shutting down computer from GUI is the same as from terminal with command: It depends on the GUI, of course, but most of the time a DBus message is sent, either to init directly or to something like ConsoleKit / systemd-logind. While both methods eventually result in telling init to start the shutdown process, they mainly differ in what kind of ...


2

? is a single character wild card, so Icon? will match any filename that starts with Icon and contains only one more character such as Icon2.


0

I had the same issue too! -> I installed: https://github.com/vim-airline/vim-airline-themes.git -> Then, I added this to my .vimrc: let g:airline_theme = 'base16_solarized' It becomes just like your Mac ;)


1

Terminal emulators based on the vte widget (e.g. gnome-terminal) preserve TABs in this case. Note that it's limited to the simplest usage scenario only, when the TAB character doesn't advance over already existing content. Most terminal emulators convert it to spaces because for terminals TAB is not a printable character, it is a control sequence that ...


1

You probably won't find one. In my experience, even the terminals that terminal-emulators are emulating rendered tabs into spaces on display. Certainly you could set tab stops on VT100s, so it was not a hard bound definition of what a tab was on the screen. If you sent the escape sequence to print screen on a real Digital Equipment Corporation VT100, it ...


0

Okay, I figured it out (the difficulty was in comprehending just how slow my internet really is): Average Dload is measured in Bytes per second.


1

I finally got the answer! ref: https://gitlab.com/gnachman/iterm2/issues/3375 Go to the following menu option: Preferences - Advanced - Windows - Terminal Windows resize smoothly - Yes


-1

Because htop is able to stop and kill any process it is not recommended to use htop with root rights without any password confirmation like mentioned in the answer above. For better system security glances i.e. is a better choice for just monitoring the system.


4

Are you aware of the completion feature is bash which is most probably your shell at both places? Start typing (without quotation mark) sudo /Libra then press TAB. Here either the line is completed to sudo /Library or nothing happened. If the latter, press TAB again and you will see a list of the possible directories/files starting with "Libra"; if you ...


1

First, sudo apt-get cifs-utils Next, sudo mkdir -p /mnt/windows/share-name && sudo mount -t cifs //machine-name/share-name /mnt/windows/share-name -o username=your-username,domain=your-domain It will then prompt you for a password. If the machine is not domain joined, just use the machine name in place of the domain. This worked for me just now.


1

What is the discard option in stty -a? There is a patch to document this setting: The equivalent of this is 'flush', but that was never documented as an option (though was output with stty -a). Therefore use the more descriptive name, also generally used on BSD systems. Note even though this setting seems ineffective on Linux, supporting the ...


0

Destroying and re-installing the virtualenv I was using appears to have solved this problem.


0

I've see this same situation happen in Windows 7 when given temporary admin rights on my laptop at work. The 9-point terminal font, which I tend to use heavily in places like PuTTY windows and the like, changes size drastically from a font roughly similar to 9-point Fixed Sys to a very narrow font like the original person describes above. No other fonts ...


0

As a temporary workaround I will use the following configuration stanzas: if-shell "tmux -V|awk '{if($2 < 2.1) {exit 0} else {exit 1}}'" "set-window-option -g mode-mouse off" "set-window-option -g mouse off" if-shell "tmux -V|awk '{if($2 < 2.2) {exit 0} else {exit 1}}'" "set-option -g status-utf8 on" if-shell "tmux -V|awk '{if($2 < 2.2) {exit 0} ...



Top 50 recent answers are included