FTP Breaking on FEAT (vsftpd on Fedora Core 8)

It’s been a while since I connected to my Amazon EC2 running Fedora Core 8 via FTP and for no reason I tried connecting there today and badaboom! Strange though, it worked fine about a month ago, I was able to upload and download files, but this time I got a little crash. On one version of FileZilla FTP client I received a simple “Unable to connect” error. On a newer version I noticed that the FEAT (features list, or whatever) command was breaking the connection so I googled that.

People say that the server is broken but they don’t mention any tips on how to fix that. I logged on via SSH, rebooted the vsftpd daemon, with no luck. Then I tried connecting to localhost via FTP (in SSH) using the ftp command. I got a connection, LS and CWD commands worked just fine and I was able to see the files. So I sent a FEAT command and got an “invalid command” error. Humm?

Somebody on the Ubuntu forums mentioned that it’s an encodings issue. Client unable to handle UTF8 though server runs only UTF8. Does that make any sense? Guess not. Well before you go digging into your encoding settings and messing up your configuration files, or shutting down the server and starting a new instance (I’m on Amazon EC2) you might wanna try this fix.

I have no idea how it got there, but in my /etc/vsftpd.conf I found a new strange line saying:


For one second there I thought that it’s fair enough. But hey, wasn’t FTP supposed to work on port 21? Right. Comment out that line, restart your vsftpd daemon (service vsftpd restart) and voila! Worked for me.

I still think it’s strange though.. Ghosts? ;)

Internet Connection Sharing Via Wi-Fi On Fedora Linux

I was very tired yesterday evening, so I thought about tweeting through my iPhone while lying in bed. EDGE is pretty slow and expensive, and 3G hasn’t yet arrived in Moscow (military issues) so I decided to go with Wi-Fi. Good idea, huh? And it took me just a couple of hours to set the whole thing up. I’m running Fedora Linux 10 but you should’t have much trouble on other distros.

Setting up a Wi-Fi hot spot at home using a simple Wi-Fi router is the easiest way to go around, but that costs like a hundred bucks – not worthed. I’ve managed to setup an Ad-hoc (computer to computer) connection using my built-in 10m Wi-Fi module on my laptop PC. If you ever ran a Windows OS (duh!) you might know that sharing an Internet connection on your LAN is quite simple. My situation’s slightly different. A Vista running box is already sharing a PPPOE connection through LAN to two other laptop PCs, one of which is my favourite Fedora 10 box.

Anyways, the wired network on Fedora is set up and works fine (eth0 interface). Hadn’t had to iptables anything, nor should you ;) Now, setup a wireless network. Make sure you choose Ad-hoc (computer to computer) connection, input a passkey and setup your IP settings:, and use as your Route in case Fedora says it’s required (mine did). You might also need to input your DNS information (you can obtain your DNS information by running cat /etc/resolv.conf). This is all setup in the Networking manager (a Gnome utility AFAIK). Activate the connection and run ifconfig to make sure you’ve got a wirelass connection available (you should see a wlan0 section).

At this point you might want to test your connection. Get some device to ping your computer and try to ping back. Remember that you’ll have to setup IP information on your device manually (unless you’ve got a DHCP server running on the wlan0 interface). Pings fine? Okay, good. Now, all you’ve left to do is run a simple iptables script. Go ahead and generated one: Easy Firewall Generator for iptables. Don’t forget to pick the Gateway/Firewall option. Mine settings were like this:

  • Internet interface: eth0 (this is my wired LAN)
  • Static Internet IP Address (my wired LAN address)
  • Internal Network Interface: wlan0 (the wireless network)
  • Internal Network IP Address:
  • Internal Network:
  • Internal Broadcast:

The Generator will give out a shell script. Copy the contents and paste into a file (/home/kovshenin/wifitables.sh). Then:

$ cd /home/kovshenin
$ chmod a+x wifitables.sh
$ ./wifitables.sh

All done! I can now tweet free from the kitchen, balcony, bathroom and even from my toilet! :) Now I’m thinking about setting up a VNC server, so I’d never have to go back to my laptop PC again. Oh and by the way, if you DO have a feeling that you’ve messed up iptables, just run the iptables-restore command and start over. If you’re sure you got everything correct, use the iptables-save command, so that you wouldn’t need to run the script everytime you boot your system. Good luck everyone, and happy tweeting!

P.S. I’m glad to have some more connections on Google FriendConnect. Welcome newcomers! Hope you enjoy your stay!

TweetDeck & Seesmic Desktop on Fedora 10

Hey just got TweetDeck running on my Fedora 10 Laptop. It took me about 20 minutes to figure this out, I just had some permission issues (error 5100). Go get the latest Adobe Air from the official Adobe Air website and save it somewhere. Then you’ll have to chmod +x the .bin file to be able to execute it. Run it using your root account – that should install Adobe Air and some utilities for Air application management, just like Windows would (I guess).

Then, download the latest TweetDeck Air application for Linux. Now here’s where I got the permissions issues. You have to run the TweetDeck installation as root, otherwise you will not be able to write to the /opt directory – that’s standard for Air applications, though I wasn’t able to write to /home/myuser either, although I had full rights to access that, so I guess the right place is actually /opt. Open your terminal, logon to root and try the following:

/usr/bin/Adobe AIR Application Installer

That should launch the Adobe AIR app installer. Pick the TweetDeck .air file and attempt to install it. Worked for me. You can create the shortcut icons, but you shouldn’t launch TweetDeck after installation, cause you wouldn’t wanna run it as root, right? After the setup’s finished check out your Applications – Accessories menu, you should see TweetDeck.

Hope that helped. Used to TwitterFox but I guess TwitterDeck will do just great. Don’t forget to choose the right tweets update configuration (I got it working at about 80%). Don’t overload the API and don’t forget to switch off any other Twitter clients you use before launching TwitterDeck.

Updating TweetDeck or Seesmic Desktop on Fedora

I’ve stopped using TweetDeck for a while due to a couple of reasons. I got my Twitter developer account which gives me 20,000 API calls per hour (unlike the ordinary accounts with 100), and the new TweetDeck doesn’t work with that amount (I’ve no idea why), so I had to switch to Seesmic Desktop which is also based on Adobe AIR, thus cross-platform and I managed to install it on my Fedora 10 machine using the above method.

Updating TweetDeck and Seesmic Desktop (and all other Adobe AIR applications) is quite straightforward in Windows and Mac, but I came up with the same permissions issues in Linux. It seems that we’re not allowed to use the auto-update feature (the popup-box that shows up when you run TweetDeck and asks you to automatically update the software). So we’ll probably have to go the other way round. Go to TweetDeck or Seesmic Desktop official website and download the latest .AIR distro, save it somewhere, and as root run the AIR Application Installer program:

/usr/bin/Adobe AIR Application Installer

Select your .AIR file and update. After the update it automatically runs the new version of TweetDeck (or Seesmic Desktop). Close that. It’s being run under root, while your profile is on your regular user. Just start as a regular user and everything should be fine. Worked for me ;)

Good luck!

Updated June 20th 2009

Gnome Keyboard Shortcuts

… and the Super key. I don’t know if everybody knew about this trick already, but it seems that Gnome has got this bug, that doesn’t let you bind keyboard shortcuts with the Super (windows key) combination, except the Super key itself (alone). Anyways, the work-around is using the Gnome Configuration Editor and just type in the combination in text. Browse to /apps/metacity/ (there are 4-5 sections).

If you don’t have the gconf-editor just yum install it (in Fedora):

yum install gconf-editor

Twitter on Fedora Linux

I got tired of using my web browser for twittering, so I looked for some twitter applications for linux. A list of the best ones can be found in the Twitter Fan Wiki. I’ve tried a couple, but Twitux suited me best. It looks pretty good, runs under Gnome and supports gui-notifications.

To install Twitux on a Fedora machine change to root and yum install it:

su -
yum install twitux

That will get you the latest Twitux installed and listed in your Applications – Internet menu. One thing that I didn’t like about Twitux is that ugly dinosaur icon that it came with, so I started searching the net for how to change it. Here are the locations of twitux icons which can be swapped:


You have to be root to access those locations for writing. You can download a 48×48 Twitter PNG from iconarchive.com in the Web 2.0 Icons post. And thanks to lopagof you can get an SVG from deviantart.com. Don’t forget to logout and back in for your new icons to take effect.

I’m not sure about the task bar icon, cause I was able to change it just by right-clicking it in my Avant Window Navigator. GUI notifications still run that dinosaur icon though, so I turned it off :)

P.S. Follow me: twitter.com/kovshenin

Fedora Linux 10 Partitioning

Okay, so I had my Fedora 10 system running out of disk space a few days ago, so I started looking for solutions to re-partition my hard drive. Yeah, GParted seemed like a good one, but it hasn’t got the power to resize currently mounted partitions, nor to run batch-scripts like Symantec Partition Magic (windows) does. The structure of my hard-drive looked something like this in the exact same order physically:

  • Primary NTFS (C:)
  • Primary extended:
    • Linux /boot
    • Linux /
  • Primary Linux swap
  • Primary HP Recovery NTFS (D:)

The HP Recovery partition is the one used to recover my Windows Vista on C:. Anyways, I managed to resize the first primary NTFS with GParted, booted up my Windows Vista. Through Paragon Partition Manager I managed to move and resize the extended primary partition closer to the first primary C:, moving /boot and expanding /. And that was probably where I messed up.

I restarted my computer and GRUB refused to boot my Fedora Linux, stating that /sbin/init is not found. Alright, I booted back to Vista, opened Paragon Partition Manager and accidentally clicked on some button called "Boot Wizard" which popped out a dialog box saying "Complete!". And this is where the fun stuff began…

After another reboot, I realized that grub is dead, and instead I see a Paragon Boot Wizard asking me to pick either “Boot from C:” or “Boot from HP Recovery”. The first option didn’t work, so I booted HP Recovery. The Recovery program analyzed my system and recovered the Vista partition, together with the MBR. Okay, so now I can boot my brand new Vista :)) At this moment I quickly burned a Fedora 10 Live CD and restarted again.

I managed to recover my previous GRUB boot loader from the Live CD and noticed that my old linux filesystem was mounted in /media/- (tutorials stated that it should be mounted to /mnt/sysimage). Anyways, I tried to chroot /media/- which said that I’m missing /bin/bash, and an ls -a /media/-/bin got me shocked! It was almost empty. Jesus christ! Although the /home /usr /sbin and other directories were okay. So I backed up my home directory and reinstalled Fedora 10 in about 20 minutes (plus software installation for about an hour). Now I’m back online and happy (I still do experience some PulseAudio problems in Skype though).

Well, the bottom line is don’t use any windows partition editors, nor laptop recovery systems together with linux filesystems. I bet that the GParted Live CD would have done the job for me in minutes.