UberStudent Forums

Help and Community for Users of Uberstudent
Return to UberStudent Home Page
It is currently Fri Jul 20, 2018 1:06 am

All times are UTC




UberStudent Logo Shirt
Hey! You can wear this UberCool UberStudent Logo Shirt

Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Help with keyboard
PostPosted: Tue Apr 16, 2013 11:39 am 
Offline
Established UberStudent User

Joined: Fri Apr 12, 2013 7:19 pm
Posts: 19
Ok, so i'll wait for your help! ;)


Top
 Profile  
 

Get an UberCool UberStudent Shirt!

UberStudent Logo Shirt
UberStudent Logo Shirt by uberstudent
See other Uberstudent T-Shirts
 Post subject: Re: Help with keyboard
PostPosted: Tue Apr 16, 2013 3:14 pm 
I've tried to get things to work... (I'm doing a test run on my computer first) however, I can't find the kernel source... Mr.Ewen, would you know by any chance where it is? I looked in /usr/src and it's not where it normally is. I tried to locate it with no luck... I even went to kernel.org and various other sites to look for it but I can't find the exact kernel. If you have a copy of the source, do you think you could give me a copy? Or give me a link?
Also, if it would be simpler, could we install 3.6? Or should we keep 3.5? I'm not sure if uberstudent needs 3.5 to function (if you built around it)

Thanks


Top
  
 
 Post subject: Re: Help with keyboard
PostPosted: Wed Apr 17, 2013 5:41 pm 
Well... I decided to try with then newest kernel! Since I have no clue where the uberstudent's version kernel is. And it works. It booted up uberstudent a little slower (I assume it was just because it was the first time it booted up) but it worked like a charm! :-)
Here's my tutorial!


For the cut and dry version
{
Download kernel
cd ~/Downloads
tar xf linux[tab]
cd linux[tab]
sudo apt-get install ncurses5-dev
make menuconfig
make all
mkdir ~/Desktop/kernelbackup
sudo cp /boot/System[tab] linuz[tab] initrd[tab] ~/Desktop/kernelbackup
sudo rm -f /boot/System[tab] /boot/linuz[tab]
cd /boot
mkinitrd -o initrd.img-3.8.8 where 3.8.8 is your kernel version
cd ~/Downloads/linux[tab]
sudo make modules_install install
reboot
}

Now, for the indepth explanation

First, you're going to need to get a kernel.
https://www.kernel.org/

At the current writing of this, we are at kernel version 3.8.8
Click the download button on the right (download it on uberstudent)

When it gets installed, everything will be done through the terminal (Guake with f1 or f12 depending on your version) or regular terminal (that you will need to use at one point, you can find it at System, terminal)

So open up a terminal, then go to the directory where you downloaded the kernel
cd ~/Downloads

Now that we are in the directory, we want to extract the tarball. Essentially, the file is compressed and archived, we want to uncompress and unarchive it
tar xf linux[tab]
tab is where you should press the tab button, not write it out. It should autocomplete. Tab twice to see all the options in case you have 2 linux tarballs.

It will take a small while, but when it's finished untaring, you now have a folder! cd into it
cd linux[tab]

If you've been using Gauke up to this point, you are going to want to change to regular terminal for this.
install ncurses5-dev
sudo apt-get install ncurses5-dev

ncurses allows a kind of GUI on the terminal
Next, we are going to make the config file (make sure you are in the write linux folder, pwd to check, if you are not in "/home/'yournamehere'/Downloads/linux" you may want to cd there)
make menuconfig

This gets the kernel ready to compile by making a configuration file. When you type this, you'll see a few lines pop up, followed by a GUI on the terminal with a lot of options. These are your kernel configurations. You can mess with them if you'd like, but be careful, you may mess things up. The kernel is very important. If you don't want to mess with it, go to exit (press the right button, then enter) and save the changes.

You now have everything ready! Since your keyboard should be included in post 3.6 kernel (and we are using 3.8) we don't need to worry about this. If we were to, we would patch it up now. Now comes the long part (make sure your computer is in a kind of cool place) and type in this command (you can do this in Guake if you'd like)
make all

This makes your entire kernel, and makes an image called bzimage. This will take a very long time. It took me 2 hours and a half on 1 or 2 CPUs in a virtual machine (hopefully yours will be faster). This will also install modules.

Now we have a fully made kernel! We just need to put everything in the right place.
ls /boot

Look around, you should see a Systemmap file, a linuz3.5 file, and an initrd.img file. Write down how the linuz file looks. If it's something like vmlinuz-3.5.10 remember how it was, you're going to need it later. We are going to back that up just in case.
mkdir ~/Desktop/kernelbackup
sudo cp /boot/System[tab] linuz[tab] initrd[tab] ~/Desktop/kernelbackup

This will copy all of information to the kernelbackup folder in Desktop. (I prefer copy in case I misplaced them)
Now we are going to remove the kernel
sudo rm -f /boot/System[tab] /boot/linuz[tab]

Congradulation! you are now kernel free! We are going to copy over from the new compiled linux. There are multiple ways to do this. I normally go in and get the bzImage and raname it manually, but apparently there's an easier way! :-D I've tried it out yesterday and it worked out pretty nicely. First we are going to remake the initrd image (this helps your kernel find your hardware, I believe) Type in this command
cd /boot
mkinitrd -o initrd.img-3.8.8 where 3.8.8 is your kernel version

Now we get to finally install it! Putting all the pieces where they're supposed to go
cd ~/Downloads/linux[tab]
sudo make modules_install install

This will take a small while. Should be no longer than half an hour.
After, you're done! Congrats!

Next, reboot your machine. You may get a few errors, like not being able to find temp or of the such. Just don't touch the keyboard til you see the desktop, and you should be fine! :-D

If you need any help, or any clarifications, or something went wrong, please don't hesitate to let me know, and I'll see what I can do to help. Sorry it took so long to write this, I wanted to make sure it worked so I tried it out my self

Enjoy!


Top
  
 
 Post subject: Re: Help with keyboard
PostPosted: Wed Apr 17, 2013 6:52 pm 
I can't edit... :-( I forgot to add a command before you restart
grub-update


Top
  
 
 Post subject: Re: Help with keyboard
PostPosted: Thu Apr 18, 2013 2:09 pm 
Offline
Established UberStudent User

Joined: Fri Apr 12, 2013 7:19 pm
Posts: 19
Thanks Mark,

You have been very kind!
I hope I have not stolen you too much time!
Right now I'm not at home, as soon as i have time I'll try!

I'm sure that I will post the next comment with my gaming keyboard ;)


Top
 Profile  
 
 Post subject: Re: Help with keyboard
PostPosted: Fri Apr 19, 2013 2:33 pm 
You havn't :P This was fun to write!

Keep me updated! :-D


Top
  
 
 Post subject: Re: Help with keyboard
PostPosted: Sun Apr 21, 2013 11:48 am 
Offline
Established UberStudent User

Joined: Fri Apr 12, 2013 7:19 pm
Posts: 19
I've been a little busy this week.. sright now i'm downloading the kernel :)

I'll try to work on it after the soccer match of Roma-Pescara :)


Top
 Profile  
 
 Post subject: Re: Help with keyboard
PostPosted: Sun Apr 21, 2013 1:59 pm 
Offline
Established UberStudent User

Joined: Fri Apr 12, 2013 7:19 pm
Posts: 19
It's giving me a problem...

When i try to install ncurses5-dev using the apt-get in the terminal it appears an error:

It says:

"E: Impossibile trovare il pacchetto ncurses5-dev"

Translating it means: "It's impossibile to find package ncurses5-dev"

Any idea why it happens?
Could it be that is libncurses5-dev? i'have find this in the package manager..
But i'll wait for your response before doing anything


Top
 Profile  
 
 Post subject: Re: Help with keyboard
PostPosted: Mon Apr 22, 2013 5:06 am 
Wow... I am so sorry! It's supposed to be libncurses5-dev. That's a very bad mistake on my part. Sorry for the confusion. Libncurses5-dev pretty much allows you a GUI for make menuconfig. If you didn't have it, it would have given you an error :P


Top
  
 
 Post subject: Re: Help with keyboard
PostPosted: Mon Apr 22, 2013 5:36 pm 
Offline
Established UberStudent User

Joined: Fri Apr 12, 2013 7:19 pm
Posts: 19
Ok, now i can go forward!
I'm at the phase of making the kernel (I'm doing it but i don't know what it means :) )

Anyway is true that it needs a very long time :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2, 3  Next

Click Here to Get Inexpensive UberStudent Discs


Click here to get UberStudent discs delivered to your mailbox
Delivered Directly to Your Mailbox!



All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group