For a couple of days, I thought I would write some more scripts for using Twitter on command line. After some googling, I discovered there was already a command line twitter client available that would completely satisfy my needs.
Twyt is available as a source package from Andrew Price's home page. Download first the tar.gz package from the download page and unpack it with tar -xvf twyt-0.2.2.tar.gz. Install the package with ./setup.py install.
Twyt is written in Python, so you need to have Python installed, as well. In addition, twyt depends on the python-simplejson. I was able to install it directly from the Ubuntu repositories.
Next, create your Twitter user with:
twyt user -u username -p password
After this, you can tweet with
twyt tweet "#twyt is a nice command line twitter client"
You can read the updates by friends with:
twyt friendstl
More information is provided, of course, by man twyt.
Lightweight Linux is a blog about using Linux on old computers. Lightweight distributions and applications bring your old hardware back to life!
Officially geek
The very simple Twitter script I published yesterday has received more attention than I expected. It was even linked to in the article "10+ super geeky ways to use Twitter" in Downloadsquad!
Twitter updates from Linux CLI
During the last week, I've learned to use Twitter. Of course, there is not a lot to learn as Twitter is a really simple system. Consequently, it can easily be updated from the Linux command line without using any dedicated application or a bloated web browser. You just need to have curl installed on the system to use the following command:
curl -u "username:password" -d "status=here comes the status update" http://www.twitter.com/statuses/update.xml
And to make it even simpler, you can write a simple script to send the updates from the command line:
#!/bin/bash
echo "Twitter update: $1"
curl -u "username:password" -d "status=$1" http://www.twitter.com/statuses/update.xml >/dev/null
After saving the script as tw I made it executable. Now I can send updates with:
tw "This is my update"
If you intend to send a lot of tweets from the command line, you should probably add some sanity checks to the script.
Edit: I added >/dev/null to the end of the third line in the script in order to reduce the amount of text output.
curl -u "username:password" -d "status=here comes the status update" http://www.twitter.com/statuses/update.xml
And to make it even simpler, you can write a simple script to send the updates from the command line:
#!/bin/bash
echo "Twitter update: $1"
curl -u "username:password" -d "status=$1" http://www.twitter.com/statuses/update.xml >/dev/null
After saving the script as tw I made it executable. Now I can send updates with:
tw "This is my update"
If you intend to send a lot of tweets from the command line, you should probably add some sanity checks to the script.
Edit: I added >/dev/null to the end of the third line in the script in order to reduce the amount of text output.
New mini distro releases
During the last days, several new distribution versions have been released. Here are the most interesting lightweight and minimalistic releases.
Tiny Core Linux 2.0 and MicroCore 2.0 have been released. Tiny Core is a very small system with 11 Mb download size. MicroCore is a even geekier new system with no X.
xPUD 0.9 is another small desktop system with 51 Mb download size.
Tiny Core Linux 2.0 and MicroCore 2.0 have been released. Tiny Core is a very small system with 11 Mb download size. MicroCore is a even geekier new system with no X.
xPUD 0.9 is another small desktop system with 51 Mb download size.
New releases: ZevenOS 1.9 and Puppy 4.2.1
ZevenOS has announced the release of ZevenOS 1.9 that is a beta release for version 2.0. The new release has been updated to Ubuntu Jaunty (9.04) which according to the release notes brings speed improvements and new hardware support. The release version is a not meant for production use, as it is recommned for developers and techgeeks. Newbies should rather install version 1.1
In addition, Puppy Linux 4.2.1 has been released. According to the release notes, this is a bug fix release with few changes in the applications.
In addition, Puppy Linux 4.2.1 has been released. According to the release notes, this is a bug fix release with few changes in the applications.
e3 is an editor with many faces
A few days ago, I learned about a lighweight console editor I had never used before. E3 is a very small and lightweight editor that can emulate the most important keyboard shortcuts used by VI, Emacs, Pico, Nedit and even Wordstar.
I think I haven't used Wordstar since 1980's and I doubt there are many geeks around who still want to use Wordstar's keyboard combinations. I would rather have an editor that emulates WordPerfect 5.1 but I suppose that running WordPerfect in Dosemu is the only way to get a decent console mode word processor.
In case you are not looking for a console word processor but a simple text editor to quickly edit a few configuration files or maybe a LaTeX source you might find that e3 provides everything you need.
I think I haven't used Wordstar since 1980's and I doubt there are many geeks around who still want to use Wordstar's keyboard combinations. I would rather have an editor that emulates WordPerfect 5.1 but I suppose that running WordPerfect in Dosemu is the only way to get a decent console mode word processor.
In case you are not looking for a console word processor but a simple text editor to quickly edit a few configuration files or maybe a LaTeX source you might find that e3 provides everything you need.
Cheat sheets in one place
Cheat sheets are practical for all of us who cannot remember the keyboard shortcuts of editors, command line arguments of Unix applications or basic rules for Bash scripting. Fortunately for us, there are some nice collections available:
* Cheat-sheets.org provides heat sheets, round-ups, quick reference cards, quick reference guides and quick reference sheets in one page.
* Scott Klarr has released a Linux-Unix cheat sheets - The ultimate collection
These two collections are a valuable aid for us who just cannot remember everything.
* Cheat-sheets.org provides heat sheets, round-ups, quick reference cards, quick reference guides and quick reference sheets in one page.
* Scott Klarr has released a Linux-Unix cheat sheets - The ultimate collection
These two collections are a valuable aid for us who just cannot remember everything.
Subscribe to:
Posts (Atom)