Live Chat!

mysql command lines

* * * * * 2 votos

September 30th, 2007 mysurface

You extract info from mysql databases easily by execute the command line mysql -e. The results of sql statements can be save into various format of files, such as plain text without ascii table borders (batch mode), html (with table tags, such as td,tr,th) and XML.
You are able to dump an sql scripts ( list [...]

Posted in Admin, mysql | Hits: 11911 | 1 Comment »

How to shutdown and reboot without sudo password?

* * * * * 1 votos

September 25th, 2007 mysurface

If you are gnome user, you probably enjoy shutdown with just a click on the dialog. In order to shutdown from command line, you are requested to be either root or using sudo, such as
sudo shutdown -h now
For more detail examples of shutdown, continue to read here.
With sudo, you need to type your password. Sometimes [...]

Posted in Admin, chmod, shutdown, sudo | Hits: 20955 | 4 Comments »

Writing scripts that needs root permission

* * *     1 votos

September 2nd, 2007 mysurface

While executing commands that needs root permission, I rely on sudo. Sudo provides me a very convenient way to execute root privilege commands from my user account provided with my user account password.
Sudo and su are not the same, check out more from here.
When comes to scripting, I couldn’t use sudo directly. For examples I [...]

Posted in Admin, Bash, sudo | Hits: 21627 | 3 Comments »

access delays through ssh

* * * *   1 votos

July 31st, 2007 mysurface

I have discovered access delays every time I want to login to another remote machine through ssh.
ssh mysurface@192.168.120.44
It took few seconds delay before it prompts me for password. It is so irritating! And very funny, it doesn’t happens on other windows ssh client. It must be ssh config that causes the ‘delays’. I remember last [...]

Posted in Admin, ssh | Hits: 21172 | 1 Comment »

how to ssh without password

* * * * * 2 votos

July 18th, 2007 mysurface

Search though google, there are a tons of tutorial for accessing a remote site through ssh without a password. I found some tutorial gives too much details. Sometimes, detail’s explanation may confuse the beginners. I just want to make things done, I don’t want to know too much about the public key, private key and [...]

Posted in Admin, ssh, ssh-copy-id, ssh-keygen | Hits: 26358 | 7 Comments »

Duplicate ssh session

* * * * ½ 2 votos

June 11th, 2007 mysurface

If you are using secureCRT or ssh client, you may discovered that duplicate a ssh session you do not need to login again. That is convenient and fast!
I can do that with ssh command by just adding 2 lines shown as bellow into /etc/ssh/ssh_config
(Thanks to Geek00L)

ControlMaster auto
ControlPath ~/.ssh/socket-%r@%h:%p

You have to login for the first [...]

Posted in Admin, ssh | Hits: 14348 | 4 Comments »

CLI Magic: command not found, suggest what to apt-get

* * * *   3 votos

May 5th, 2007 mysurface

I have recently upgrade my Ubuntu Edgy to Ubuntu Feisty and I discover a fantastic CLI magic packaged with Feisty, its call command-not-found. With command-not-found package, when you have type some command that doesn’t exist in your terminal, it will suggest you what to install.
Let say I type trafshow, which It is not installed, the [...]

Posted in Bash, apt-get, command-not-found, which | Hits: 24604 | 4 Comments »

CLI magic: programable bash completion

* * * * * 3 votos

May 4th, 2007 mysurface

Ubuntu, a Linux distribution that is getting popular because it has successfully improves it’s user friendliness with simple User interface. You can install any applications with few clicks, configuration under GUI dialogs etc. People usually have the thinking of maybe one day, Ubuntu will become another new operating system like Microsoft Windows.
Never! The concept of [...]

Posted in Bash, apt-cache, apt-get, complete, pipeline, sort, svn | Hits: 26123 | 5 Comments »

A complete zenity dialog examples 2

* * * * ½ 12 votos

April 22nd, 2007 mysurface

This is a continues post of A complete zenity dialog examples 1, in this post we will covers zenity dialog for progress, question, warning, scale, text info and list.
How to create zenity progress dialog?
Progress dialog is to track a progression of a routine, it can be anything, let say I want store the results list [...]

Posted in X11, lsof, tee, zenity | Hits: 36085 | 9 Comments »

when netcat act as telnet client, it becomes better.

* * * * ½ 2 votos

April 21st, 2007 mysurface

I have an experience on using netcat (nc) as telnet client which I would like to share about this discovery. I have heard few of my friends saying, netcat can be a “hacker” tool, it is also known as “Swiss army knife”. It is true, netcat can transform into a server, a various of tcp [...]

Posted in Admin, nc | Hits: 12698 | 1 Comment »