openSSH server on ubuntu (hardy)

open up a Terminal window, and use apt-get to download and install OpenSSH Server:

sudo apt-get install openssh-server

Once the installation is finished. We’ll need to make a few changes to your sshd_config file in order to increase SSH’s security. To edit your your sshd_config file, use the following command:

sudo gedit /etc/ssh/sshd_config

(Note that you can use your editor of choice instead; vi or emacs or whatever. when I’m at my desktop I use gedit if I’m running through command line its always nano but its up to you what you want to use.)

Once you’re editing the file, we’ll need to change the following directives:

PermitRootLogin no

Never, ever give root access to SSH unless you have an extremely good reason for doing so.

The default port is 22, you can change this if you want some people will say yes change it, its really up to you.

You may also want to change the AllowUsers directive, which specifies which users can access SSH. For example, to restrict access to only the users b4d455 and billybob:

AllowUsers b4d455 billybob

Once you’ve finished changing your settings, save your changes, and restart the SSH daemon:

sudo /etc/init.d/ssh restart

You should now be able to SSH into your Ubuntu machine. You can do so from the Terminal on another Linux machine, through cgywin, or by using Putty on a Windows machine.

wait what…?

so i’m surfing for some recipes (yes I do this; eating the same thing gets old after awhile) looking to improve my cooking skills …haha! i came across an article about making your own energy drink which consisted of tea, salt, and lemon … yuck! but any ways the article started out with this quote.

“We all work out, we all need re-hydration, we all buy Gatorade…”

Wait, we all work out? Did everyone in the world get a free gym membership and not tell me? Heck i dont even work out at home! i’m afraid we all dont work out … thats one problem with us.

this article apparently was created to make a drink that was to replace Gatorade … i thought Gatorade was good for you … until i did some research ..although it is good for you ..but only in extreme re-hydration such as sports when you need to be re-hydrated, or when you are sick.

but anyways i did find this and i want to try it out some time.
Continue reading

so I watched the debate…

and i still dont want to vote for either of these guys .. so its up in the air about who im voting for.

i think Matt put it the best over at bgwillers.com

In the end, on one hand I feel I wasted my time…while on the other, I feel I was somewhat obligated to at least observe and digest some information on the future leaders of this country. Neither has earned my vote, however. I still intend to write-in this election.

wide awake at 1am..

it is apparently that time of year again where my allergies go into full swing then i cant sleep regardless the meds im taking so i sit up wide awake into the wee hours of the morning praying for sleep to come. so over the next few days if im really cranky … its not my fault and i apologize now for anything i might do to piss you off.

but in the mean time ill be making some rather unimportant nerd post as you have already seen ive post a couple of tutorials for Ubuntu. since apparently finding simple how to’s on this subject matter have been scarce, so ive created some to post out on the interwebz hopefully they come in handy.

oh new desktop time …in the spirit of fall – I know lame default PS brush .. sue me!

auto mounting drives in ubuntu (Hardy)

NOTE:apparently i cant write a tutorial … so i changed it abit
1: Open up Terminal (Applications – Accessories – Terminal) and type the following:

sudo fdisk -l (this is a lower case “L”)

you will be asked for the root password (password you chose at setup) and will be presented with a list that looks similar to this I have more than one extra drive to mount so my output is different:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x71dca7a4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 60802 488384512 7 HPFS/NTFS

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x007e007e

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 26485 212738872 7 HPFS/NTFS
/dev/sdb2 26486 30401 31455270 5 Extended
/dev/sdb5 26486 30234 30113811 83 Linux
/dev/sdb6 30235 30401 1341396 82 Linux swap / Solaris

this tells us that the drives are 500gb and 2500GB and are located at /dev/sda1 and /dev/sdb1, you will need to remember the location of the drives.

Continue reading

easily setup a webserver on ubuntu (hardy)

Install apache2 using apt-get by typing the following

sudo apt-get install apache2

Note that you should know the root password.
Now everything should be downloaded and installed automatically.
To start/stop apache2 write:

sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop

Your www folder should be in: /var/www/

If everything is working you should see an ordinary HTML page with “it works” when you type: http://localhost in your browser

lets conquer PHP:
Continue reading

I was just calling to ask…

“Dude, my computer’s busted, can you fix it?”

“Hey, do you know why my computer won’t boot up?”

“I keep getting this error message, what’s the deal?”

Lately ive been getting calls from people who i havnt spoke with since i was in college even before i graduated. i use to think they were friends, but now i know why they kept me around; to fix their computers. well i dont fix them for free anymore i had a great on the side project called Chips n’ Circuits where i made, although not alot of money, but pocket change at least when i was going to college. I work on a computer all day long some times more its my job i love computers (despite the fact i say i hate them) that is why i chose to study what i did.

when i get a call from someone i use to think that they were calling to talk or catch up on good times.. nope that is not why they call me they have a computer problem and want me to fix it thats all i am to alot ppl i know. well i don’t work on computers for free anymore. if you want me to work on your computer expect to receive a bill. if thats all you think of me is some one you know who fixes computers dont bother calling i don’t want to talk to you.

People wonder how i learn so much about computer well i eat, breath, and play computers. i have this urge to learn, to experiment and find out the results. Mostly i read … there is always someone out there that has came across a problem one might be having with their computer its guaranteed. this is when you must learn that Google is your friend and once you learn how to effectively use the Google you can find info on anything. it all in how you term your search words. You can learn alot by reading the info is out there just find it.

i think they forgot

i opened my dining room widows for the first time since i bought the house and moved in and to my surprise the windows are painted green

the rest of my windows either match the trim or are painted white.. to match the wall paint