Enable telnet in Windows Vista

By default, Vista installs without telnet available. I know, I know, you should be using SSH for everything now, but sometimes you just need good old telnet. Here is how to enable telnet in Vista:

1. Open ‘Control Panel’

2. Select ‘Programs and Features’

3. In the left column, select ‘Turn Windows features on or off’ (get ready for the annoying UAC prompt)

4. Check the box next to telnet (and any other obscure services you may want enabled), and wait while Vista thinks for a while.

Thats it, now you can administer your network devices in as unsecure manner as possible!
-Ben (@ ArsGeek tips)

Share

What you should know about switching to Ubuntu from Windows

ubuntu.jpg

Are you ready to take the plunge? It can be hard to decide, particularly if you’re a longtime Windows user. The Windows camp makes the idea seem absurd, and the Ubuntu camp is full of people talking about things you’ve never heard of. Each one thinks they’ve got the answer to all of your problems. Here’s a truthful look of ArsGeek staff at some of the issues you will be faced with if you decide to switch. I’ll also discuss some of the great points of switching as well.

(note: This topic has generated lots of discussion on Digg as to the positives and negatives of modern operating systems. We’ve launched a new board in our forums, OS Wars to discuss just this topic. Please join us there!)

First, a brief history. Just a little over a year and half past, I made the switch from Microsoft XP to Ubuntu Linux. I’d dabbled in Linux before in a few of the various incarnations out there such as Mandrake and RedHat. This however was the first time I’d put it on my primary computer, to be used as my primary operating system.

  1. You will miss some aspects of Windows. In my case, the thing I missed most was gaming. There are some wonderful games available for Ubuntu and other Linux distros. There are also services like Cedega which allow you to play some games on Linux. Nothing however really compares to playing these games in their native environment, without having to twiddle a service, muck about with Wine or find some kind of comparative product. This is why I chose (and still choose) to dual boot my laptop. I can still play my favorite games under Windows.
  2. You’ll find that lots of people are willing to help you, simply because you’re using Ubuntu. It’s almost like joining a club that has an exclusive membership feeling but allows anyone in. Over the past year and a half I’ve been helped by lots and lots of people with more knowledge and experience than I have. In turn, I feel happy to do the same for others following in my footsteps. It’s nice to belong and other Ubuntu users make it easy. It’s also nice to get quick answers to problems you may be having simply by posting to a forum, or asking on a blog.
  3. Sometimes, you’ll really miss using Windows. I’ve been using windows since 3.11. It was entrenched in my nervous system. If I wanted to get somewhere, I simply went to Start and did it. Change my desktop? Easy. Check the Event Log? No problem. Learning to do all of this in Linux takes time. There will be times when you spend an hour troubleshooting what would be a simple problem if you just knew what you were doing. Fortunately there is a community willing to help you and share your frustrations. There’s also that learning curve I just mentioned. Once you crest it, it’s like you suddenly have some serious control over your PC. You can start getting it to do things that make others go”Wow!” even though you’re not having a Vista moment.
  4. You’ll find yourself spending a lot less money. Really, there’s no reason to go out and buy lots of additional software for your computer when Adobe Photoshop CS2you can get the same functionality with free software. The list of programs available is huge! Are all of them as fully featured as their Windows counterpart. Nope. Some of them don’t even come close. Keep in mind however that I’ve yet to find a feature missing from Open Office that I used in MS Office. A lot of the features included in pay-for software the average person never uses. If you’re an expert graphic designer, then you’ll probably not want to move from Photoshop to Gimp. If you just like to muck about and make neat stuff, then Gimp works fine.
  5. When you don’t have to buy the software, the temptation to pirate software is removed. Really, it’s that simple. I know of lots of people with pirated versions of Photoshop who would be just as well served by Gimp (to return to that example). Office? Same thing. The truth of the matter is, if you’re a professional who needs office or Photoshop, you’re going to go out and buy it. If you want MS Office just to use excel a few times and write the great American novel, you’ll be just as well served by OpenOffice.
  6. You’re not going to have to worry much about viruses, worms, trojans and spyware. It’s a simple fact. I open emails with impunity, even if they come from my office mate and are entitled “Britney Spears Naked”. Why? That exe file tagged to the end of six thousand spaces isn’t going to effect me. Bonzi Buddy for Linux? Nope. I don’t think it will be this way forever as more and more folks adopt operating systems like Linux and OSX but for now, I enjoy myself without dealing with malware, pop ups, and viruses.
  7. *** (See edits at end of point 7)You are going to be more vulnerable to hackers. If you don’t consider a malware infestation as being hacked, then Linux/Unix is probably the most hacked OS. Sure there are far less instances of hacking than of malware and virus outbreaks but you’ll want to be aware of this. If you have a system with a dedicated IP that’s on all the time, you could be a target for hacking. Read up on your linux security. A good firewall is a good idea. Edit – I’d like to update this a bit. I’m no longer sure point 7 is true – certainly you could be the object of intrusions or scans to attempt an intrusion. At this time however Ubuntu is just as hardened if not more so than other operating systems. So could you be hacked? Yes. Will you? Your probability isn’t any higher than any other OS. However if you modify the base system and open your system to vulnerabilities you may open yourself up to greater risk.
  8. There are times you’ll be sorely tempted to just go back to Windows. With me, I’ve found that a dual boot system alleviates that a bit. If I just can’t get it done in Linux (and since I like to hack about my system if I’ve caused my own problem and I need to work) I can simply boot into Windows and do it. This will taper off with time though. The only reason I boot into Windows now is to assist someone with a Windows problem their having or to play a game.
  9. You’ll need to learn at least a little about the command line. Like it or not, Linux has a CLI and there will be times you’ll want to use it. Having said that though, you can do a lot now via a Graphical User Interface. Why would you want to use the CLI then? Your GUI is like flying over your computer at 5,000 feet. You’ve got a broad view of what’s going on but it’s hard to make out the little details. Your CLI is like walking across your OS. You can stop, take a hard look around and tweak the littlest thing.
  10. Surfing the web, checking email and instant messaging stay pretty much the same. If you already use open source products like Firefox, Thunderbird and Gaim this is even more true. If not, you’ll have a brief period of adjustment and then you’ll be surfing, emailing and chatting like you always have.
  11. Playing DVDs, Music and Movies on your Ubuntu box takes two extra steps. Above and beyond installing Ubuntu, you’ll have to do two more things to be able to listen to most types of music and play most types of video files and movies. What are those two things? Installing Automatix2 and then running it.
  12. If you have a family member or friend who acts as your tech support and they know Linux, they will thank you profusely. Because your Ubuntu experience will be free of viruses, malware and pop-up hell, this means that their support roles have suddenly diminished. If you do have a problem, it’s easy for them to pop right onto your computer from just about anywhere and take a look at it. Unless of course, your problem is getting online. I’ve switched a couple of friends over to Ubuntu and it’s a joy. When they do have a problem I SSH in and fix it.
  13. You’ll find that you don’t have to reboot. Really! Unless you’ve come across a very severe bug, or have done something to your computer yourself, you won’t have to reboot even when you update Ubuntu! The only time updates generally require a reboot are when a new Kernel comes out and is distributed to Ubuntu users. You’ll also find that, updates aside, Ubuntu is a rock solid stable system. I’ve got Ubuntu machines that have seen heavy and steady use which have been up for 200+ days.

If you’ve been hearing a lot about Ubuntu (or other Linux distributions) and you’re deciding whether to make the switch or not, I hope I’ve been some help. It’s always good to go into a decision like this with information. If you’ve recently made the switch, I’d love to hear from you. Let me know the good and the bad. Ubuntu isn’t perfect. There isn’t a perfect OS out there, but it does offer a range of usability from simple point and click to ultimate customization.

Edit: Here are a few ways you can give Ubuntu a try.

1. You can download the ISO from Ubuntu.com, burn it on to a disk, and boot into it. This won’t touch your hard drive or your Windows install and it will let you see what Ubuntu is all about and if your hardware works well with it.

2. You can visit Ubuntu’s ShipIt store and request that CDs be sent right to your door. This takes about a month and is completely free. Ubuntu has made 6.06, their long term stable release available for shipping.

3. You can try Install.exe. This will install an instance of Ubuntu on your windows machine. Read more about it here but know that it’s currently a prototype.

Share

Ubuntu Tricks – How to mount your Windows partition and make it read/writable with NTFS-3G

vista3.jpg

Previously I looked at mounting your NTFS drive on your Ubuntu box using raw Fuse to do it. In this technical tutorial Arsgeek is going to look at what may be a better way to do it. It’s certainly easier and from reports, NTFS-3G is a bit more stable as well. This Howto is written specifically for and from Ubuntu 6.10 – Edgy Eft but should work on any Debian based distro.

It should be noted that NTFS-3G is a BETA project (It’s sinced moved to release 1.0) and as such may contain bugs and issues. Writing to NTFS from Linux may be unstable so you should use this at your own risk.

The first thing you’re going to have to do is install NTFS-3G. Let’s open up a terminal session and do the following:
sudo apt-get update

sudo apt-get install ntfs-3g
You’ll be prompted to install this and several other dependancies as well. If you run into errors where ntfs-3g can’t be found, check out this article about adding extra repositories.

Now that NTFS-3G is installed, it’s time to tell your box to use it to mount your NTFS partition. Let’s find out where exactly that is. Back in your terminal type
sudo fdisk -l
You should get something that looks like this:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20480008+ 7 HPFS/NTFS
/dev/sda2 2550 7493 39707451+ f W95 Ext’d (LBA)
/dev/sda3 7494 9729 17960670 83 Linux
/dev/sda5 2550 7394 38911288+ b W95 FAT32
/dev/sda6 7395 7493 795186 82 Linux swap / Solaris

We’re interested in the partition that says HPFS/NTFS. Notice that on my machine it’s /dev/sda1. You’ll want to keep track of this for yours. I suggest spelling it out in leftover Halloween candy on your desk, or for a spooky effect, use fake blood.

Now that you have your info on the NTFS partition, let’s edit the fstab file in your /etc directory to use NTFS-3G.
sudo cp /etc/fstab /etc/fstab.bak
Always make backups of stuff like this. Really.

Many Ubuntu users will find that the fstab already reflects their NTFS drive as mounted in the /media folder. This is standard but does not allow write access, only read access. We’re going to change this to use NTFS-3G. To see what you have do the following:
cat /etc/fstab
If you have a mount point already for your NTFS partition, it will look something like:
/dev/sda1 /media/sda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
You’ll want to replace the bit that says ntfs with ntfs-3g, so it looks like this:
gksu gedit /etc/fstab
Now add:
/dev/sda1 /media/sda1 ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
Replace the /dev/sda1 bit with whatever you wrote down from your fdisk -l output and save the file.

If you don’t have this listed at all, you’ll want to create a mount point in your /media folder. If you want to call it ‘windows‘ then you’d make a directory under /media called windows:
sudo mkdir /media/windows
Then add the below line to your /etc/fstab file:
gksu gedit /etc/fstab
Now add:
/dev/sda1 /media/windows ntfs-3g defaults,nls=utf8,umask=007,gid=46 0 1
Finally, restart your machine. Your Windows partition should now be on your desktop, and you can access it through your terminal by going to /media and then cd into the directory your using.

Thanks go to the folks at ntfs.org who have an excellent Wiki on NTFS-3G that you should check out.

Share

Ubuntu tricks – how to mount your Windows partition and make it read/writable

While this ArsGeek tech guide is still valid, see here for a newer and more stable way to gain access to NTFS.

If you’re like me, then you’ve got a dual boot machine running both Windows and Ubuntu. heck, even if you’re not like me it’s entirely possible that you’ll have a dual boot machine. I’ll even allow for a triple boot machine if you like.

Here’s a guide to making the most of your NTFS partition while in Ubuntu. When you’re done you should be able to have your NTFS partition mounted at boot, be able to write to it and read from it and be able to lift three times your body weight without breaking a sweat.

It should be noted that writing to NTFS is still experimental. You’d best have a backup of your machine if you’re going to do this.

First let’s figure out where our NTFS partition is hiding. I’m going to assume that you’ve got an NTFS partition, an EXT3 partition and perhaps a FAT32 partition laying about. Open up a terminal session and type the following:
sudo fdisk -l
You’re looking for the NTFS partition, my output looks like this:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20480008+ 7 HPFS/NTFS
/dev/sda2 2550 7493 39707451+ f W95 Ext’d (LBA)
/dev/sda3 7494 9729 17960670 83 Linux
/dev/sda5 2550 7394 38911288+ b W95 FAT32
/dev/sda6 7395 7493 795186 82 Linux swap / Solaris

It’s /dev/sda1 that I’m interested in. Find out what yours is and write it down somewhere. A good thing to do is to write it backwards on your forehead in indellible marker. This not only allows you to see where it is every time you look in the mirror but I’ll also be able to identify my readers if you venture out into public.

So let’s install the stuff we’ll need to get this working.
sudo apt-get install libfuse2 fuse-utils libntfs8 ntfsprogs
Now let’s add fuse to the list of stuff that our kernel will load:
echo fuse | sudo tee -a /etc/modules
Now let’s add a group which we’ll use to control who can or can’t get access to the NTFS partition.
sudo addgroup ntfs
When this is done, you’ll get some output which will contain your GID (Group ID). It’ll look something like adding group ntfs (1001). Write down that GID, or add it to your backwards forehead list.

Now we’re going to create a mount point for our partition. This is a folder into which this disk will be shoved. Well, metaphorically speaking anyway. We’ll put it in the /media directory so it’ll show up on our desktop. then we’ll edit the fstab file to tell it to mount the NTFS partition on to the folder.
sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab.bak
gksudo gedit /etc/fstab

Now that you’ve got the fstab file backed up and open in gedit, let’s add the following line to the bottom of it.
/dev/hda1 /media/windows ntfs-fuse auto,gid=1002,umask=0002 0 0
Here’s where you’ll need a mirror to look at the info you’ve written backwards on your forehead. The first bit ‘/dev/hda1′ is the location of your NTFS partition. If you’re is different, then change it in your fstab entry above. The second bit we’ll need is the GID of your ntfs group. If it’s not 1002 then change that as well.

Now, let’s add your user to the ntfs group. If you’re username is ‘slartibartfast‘ this is how the command would look. (If you’re username is not ’slartibartfast, then type your username in place of slartibartfast, or consider changing it to slartibartfast’).
sudo adduser slartibartfast ntfs
Now let’s do some quick removing and linking to fix a known bug.
sudo rm /sbin/mount.ntfs-fuse && sudo ln /usr/bin/ntfsmount /sbin/mount.ntfs-fuse
Now reboot your machine and you’ll come back up to the joy of being able to muck with your windows install while not actually booting into windows.

Share