How to posting to Identi.ca from the CLI
![]()
Hi
Identi.ca is an open source social networking and micro-blogging service.
I like Ideni.ca. It’s good service.
I use CLI (command line) everyday. I like to dented from it. It’s simple.
Just install cURL:
$ sudo apt-get install curl
And type:
$ curl -u username:password -d status="message" http://identi.ca/api/statuses/update.xml
You will receive a response containing the XML coding for your post which acts as a confirmation that your post was submitted.
Also you can create a shell file for this
Open a new text document and add the following, save it as identica.sh (or anything ending in sh):
#!/bin/bash curl -u username:password -d status=″$1" http://identi.ca/api/statuses/update.xml
Make sure you change the chmod to 777 using the following command.
$ chmod 777 /path/to/file/
When you located the file (or add a bash prompt) it makes it simplier to identi.ca the rules. For example you can type the following to command to link to the file.
$ ./path/to/idetica.sh "Message"
Nested X11 environment session

Hi
Instead of using a full-blown new virtual X for developing software you can use Xephyr to embed your KDE 4 session into your working KDE 3 or other X11 environment.
If you want to get a minimal KDE session up and running, just launch Xephyr (available in Kubuntu as xserver-xephyr; Gentoo users compile x11-base/xorg-server with USE=”kdrive”):
Xephyr :1 -extension GLX &
You can now launch KDE:
export DISPLAY=:1 /path/to/kde4/bin/startkde &
For other X11 environment just change /path/to/kde4 like:
/usr/bin/startx &
or
/usr/bin/startkde &
or
/usr/bin/startxfce&
You can use “locate” command to find paths like:
locate startkde
Appendix
• Happy Nowruz 1387 (Iranian new year holiday)
Good Luck
Root Terminal in Ubuntu
![]()
Hi
Ubuntu has the root account disabled.
You use sudo to run commands as root. if you need root access for some work:
- To start a root shell, but keep the current shell’s environment, use:
sudo -s
- To start a root shell (i.e. a command window where you can run root commands), starting root’s environment and login scripts, use:
sudo -i
There is also a root terminal that is in the Applications menu. You have to right-click to edit the menu’s and add a check to the root terminal in System Tools items.
Don’t forget to type ‘exit’ (or press Ctrl+D) to switch back to your normal user when you are done.

