I am using this in my screenrc file:
# status line at the bottom
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?
%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
Why the hostname always show the host name of my local machine despite I have open a shell under screen and then 'ssh to another server'?
how can I fix it
Whenever I try to run screen under a Zsh shell that I compiled under my home directory, I get the following error:
> screen
Cannot exec '/my/path/to/zsh/bin/zsh'
The Z shell is perfectly functional, and I have verified that I can run screen if I invoke it using a system shell (e.g. csh). I usually get into zsh with: exec zsh.
I'm setting up .screenrc, and I'm trying to set up a couple of screens as follows:
screen 1: cat > ~/fifo
screen 2: bash
~/fifo already exists...
This way, in screen 2, I can do something like this:
Code:
$ cat ~/fifo | tr a-z A-Z
then I can type
Code:
stop shouting!
into screen 1, and I'll see
I am trying to create few scripts that would change the working directory of the main shell/terminal. Not able to do so. I tried the following
File p1.sh
#!/bin/bash
cd /home/mtk/work/project1
File code.sh
#!/bin/bash
cd /home/mtk/templates/resusable/sampleCodes
But I am aware that the above would change it only for itself i.e.
I've got a problem with my shell scrip, when I ran the shell ./Test1 hello result
it suppose to take hello as standard input and result as standard output.
I've been dealing with different regional settings (US, Canada and other locations in English, as well as other countries and languages), but I cannot get Gnome-shell Calendar to begin with Monday, instead of Sunday (see image). I have even modified the "en_US" file in /usr/share/i18n/locales/ (line: first workday: 1). All without success.
I created executables of a python script (via pyinstaller) for Mac, Windows and Linux. For Linux and Mac, I am running them in the shell since it doesn't have an own interface: just open a shell and type the name of the program.
I am wondering if there is a way to use certain file ending so if the user clicks on the program, it will be automatically executed in the shell or terminal.
I have a few questions that I'm hoping you guys can help with.
1/ Having installed gnome-shell (3.4 according to synaptic) and gnome tweak, I can change the window and GTK theme but not the Shell theme, as in the pic. How can I change this?
2/ How do I install gnome shell extensions?
3/ How can I add Shutdown to the settings menu?
Cheers.
However it may be impossible, I hope I'm just bad man reader =)
Is there any way to substitute text in variables on several patterns at time or even using back reference?
For example, I have FILE=filename.ext and I want to change it to filename_sometext.ext. But I don't know that file extension is .ext.