Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Wednesday, November 23, 2016

Run Code Blocks programs using Gnome Terminal Konsole etc

Run Code Blocks programs using Gnome Terminal Konsole etc


Ok, so we all (mostly) love Code::Blocks. But using the XTerm window (the one you get to test your codes into) is a real pain (for me at least) in the ... Instead I wanted to use the default terminal that I use for commands. Now, Ive been a user of Gnome-Terminal for quite sometime and now have shifted to KDE. So now I use Konsole. Finding the exact attribute string is a bit annoying after each install so heres a collection. Ill add more when I use more.
For Konsole:
konsole --workdir $WORKDIR --title $TITLE -e

For Gnome - Terminal
gnome-terminal $TITLE -x

For X-Term
xterm -T $TITLE -e


Credits:
Eragon0605: [ http://ubuntuforums.org/showpost.php?p=9190211&postcount=3 ]
jens: [ http://forums.codeblocks.org/index.php/topic,11245.msg76596.html#msg76596 ]


Go to link download

Read more »

Wednesday, November 16, 2016

Z Shell the fancy in Linux terminal

Z Shell the fancy in Linux terminal


Z Shell is probably now the best known Shell option for Unix users all over the globe. That too contributed by the fact that most people take the Terminal they get as full and final and never give a second thought about its improvement. But geeks cant resist exploring and the first option they get astounds them because Z Shell, if compared to Bash, is simple a super set of its functionality. It gives us a great Terminal which is intelligent and customizable to the point where people might ask you "Which terminal is this?".

Installation: This is fairly simple. Just a quick apt-get

sudo apt-get install zsh
Configuration: After you have installed Z Shell, the very first thing you have to do launch is type in your terminal

zsh
The first you do this, you will get some configuration manual that is navigated using numbers. The procedures are very self explanatory. It helps you configure various Options such as
  • How far back in time do you want to remember commands
  • If you want the shell to search history using partially entered commands (Its neat and powerful)
  • Should all of your terminals be in sync while running
The whole configuration is saved into the file at /home//.zshrc.
After you have configured the shell, you can make it your default shell using the command

chsh -s /bin/zsh

Configuration repositories: Some great configurations for Zsh have come up with full modular support and themes that will make your experience with Z a breeze. These are the most popular to repositories.
  • Oh My Zsh
  • Prezto
There are some others that maintain Z shell configurations around the net.
Using these pre-built configurations is very easy. Such as, configuring with Prezto. You need to type in the following after launching Z Shell. The commands will create Z Shell configurations in your home directory.

git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
This will simple clone the repository into your home folder and then, link the configurations in place of your current configurations.



Go to link download

Read more »

Sunday, August 14, 2016

Changing date and time in Crunchbang Linux using Terminal

Changing date and time in Crunchbang Linux using Terminal


It sometimes is really handy when you dont want to waste your time searching for the option or interface that will allow you to change the time of your PC. Source [ http://debmintux.wordpress.com/2010/03/29/crunchbang-set-the-time-via-terminal-cli/ ]
Set the date:
sudo date --set 2010-01-28

Set the time:
sudo date --set 21:08:00

I didnt have to do this but just in case
Restart Tint2 to see the correct time:
sudo killall tint2
tint2 &


Go to link download

Read more »