Showing posts with label ubuntu hardy heron. Show all posts
Showing posts with label ubuntu hardy heron. Show all posts

Saturday, June 23, 2012

Linux-0.01 kernel building on ubuntu hardy

linux-0.01-rm-3.5 now builds ok on hardy but only on 32 bit version
The best way to try is to install hardy , or debian lenny in kvm-linux or virtualbox and then try the instructions bellow 

Official 0.0.1 project news and downloads are located here

You might need some packages first
$sudo apt-get install bin86 kvm qemu gcc build-essential


$wget http://ftp.be.debian.org/pub/linux/kernel/people/abdel/linux_0.01/sources/linux-0.01-rm-3.5.tar.gz

$tar -zxvf linux-0.01-rm-3.5.tar.gz
$cd linux-0.01-rm-3.5
$make

or time make

make[1]: Leaving directory `/home/mariuz/linux-0.01-rm-3.5/lib'
ld -s -x -M -Ttext 0 -e startup_32 boot/head.o init/main.o \
kernel/kernel.o mm/mm.o fs/fs.o \
lib/lib.a \
-o tools/system > System.map
(echo -n "SYSSIZE = (";stat -c%s tools/system \
| tr '\012' ' '; echo "+ 15 ) / 16") > tmp.s
cat boot/boot.s >> tmp.s
as86 -0 -o boot/boot.o tmp.s
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */
rm -f tmp.s
ld86 -0 -s -o boot/boot boot/boot.o
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -fno-stack-protector \
-o tools/build tools/build.c
#chmem +65000 tools/build
objcopy -O binary -R .note -R .comment tools/system tools/system.bin
tools/build boot/boot tools/system.bin > Image
Boot sector 452 bytes.
System 89732 bytes.

real 0m4.512s
user 0m3.696s
sys 0m0.768s

then rename Image to linux0.01-3.5.img
qemu -hdb hd_oldlinux.img -fda linux0.01-3.5.img -boot a

you must use the hd image from here if you don't have it yet
wget http://draconux.free.fr/download/os-dev/linux0.01/Image/hd_oldlinux.img.zip
unzip hd_oldlinux.img.zip


Saturday, January 31, 2009

installing apc on ubuntu

$apt-get install php5-dev
$wget http://pecl.php.net/get/APC-3.1.2.tgz
$tar -zxvf APC-3.1.2.tgz
$cd APC-3.1.2

$phpize
$./configure
$make
$sudo make install

cp apc.php /var/www

sudo vi /etc/php5/apache2/php.ini
add these lines
extension=apc.so

[apc]
apc.shm_size = 100
apc.cache_by_default = 1
apc.stat = 1

and restart the apache server

and load
http://localhost/apc.php

default username and password are apc and password
you can change them in /var/www/apc.php

sudo /etc/init.d/apache2 restart

Thursday, January 29, 2009

ubuntu intrepid upgrade on everex gpc3

seems that you need to enable the ubuntu official repositories and after the upgrade is made from hardy to intrepid you need to change the /boot/grub/menu.lst so that root=/dev/sda1
seems that you will have some issues with uuid if is not in the /etc/fstab
so is better to be added in grub too


Update:
I got an server cd from boston loco meeting so the os is reinstalled
I didn't needed the home partition to be so big reformated the drive anyway

After all finished i have removed the apparmour and other useless stuff that comes with server
also usually i like that server install is more clean (the list of processes)
The weird stuff : on the case there is an sticker with VIA C7
and that is an mistake , inside is an athlon64 core (sempron)
http://www.everexstore.com/everex/products/gpc3/gpc3.php

Saturday, October 18, 2008

Howto use Lazarus 0.9.26 in Ubuntu Hardy/Intrepid
You can install the new version and you don't need to wait another 6 months to be included
in next Ubuntu release
if you have an "old" stable lazarus 0.9.24
you can install/upgrade to latest stable by using
the official lazarus repository

In my case i created an getlazarus bash script with this content


#!/bin/sh
gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F
gpg --export 6A11800F | apt-key add -
echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" \
>/etc/apt/sources.list.d/lazarus.list
apt-get update
apt-get install lazarus


then
$chmod +x getlazarus
$sudo ./getlazarus

also you must be sure to have te fpc source so here is how i usually install

sudo apt-get install fp-units-db fp-units-gfx fp-units-gnome1 fp-units-misc fp-units-net fpc-source fp-compiler fp-docs fp-utils lazarus



then start it with
$lazarus-ide in console or from the menu
Applications -> Programming -> Lazarus




To update all free pascal related packages from the new repository (I had old fpc2.2.0 and lazarus from intrepid repository)

$sudo apt-get dist-upgrade

In my case I got this message

The following packages will be upgraded:
fp-compiler fp-docs fp-ide fp-units-base fp-units-db fp-units-fcl
fp-units-fv fp-units-gfx fp-units-gnome1 fp-units-gtk fp-units-gtk2
fp-units-misc fp-units-multimedia fp-units-net fp-units-rtl fp-utils fpc
fpc-source lazarus-doc lazarus-ide lazarus-src



What is next ? Try to use it with firebird

And seems that works without problems.

Thursday, October 09, 2008

Compiling 2.6.27 RC9 Vanilla on Hardy - Ubuntu/Debian Way

This article is about compiling a Kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (Vanilla Kernel) so that you are independent from the kernels supplied by your distribution.

-rc kernel patches are generated from the base stable release.

For example: to create the 2.6.27-rc9 kernel, you must:

  • download 2.6.26 (not 2.6.26.x)
  • and then apply the 2.6.27-rc9 patch.

Yes, you want 2.6.26 not 2.6.27. Remember, that's an -rc kernel, as in, 2.6.27 doesn't exist yet. :)



seems tha the kernel you want is prepatch , choose B from this area "The latest prepatch for the stable Linux kernel tree is" also choose 2.6.27-rc9 the same area.

cd /usr/src
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2
tar jxvf linux-2.6.26.tar.bz2
get the patch
wget http://kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.27-rc9.bz2
bunzip2 patch-2.6.27-rc9.bz2
cd linux-2.6.26
patch -p1 < ../patch-2.6.27-rc9
cd ..
mv linux-2.6.26 linux-2.6.27-rc9
cd linux-2.6.27-rc9/
cp /boot/config-`uname -r` ./.config
make menuconfig or if you want to compile old config without questions make oldconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers cd ..
I had to disable the nvidia postinstall scripts

chmod -x /etc/kernel/postinst.d/nvidia-common

dpkg -i linux-image-2.7.27-* in my case
sudo dpkg -i linux-image-2.6.27-rc9-custom_2.6.27-rc9-custom-10.00.Custom_amd64.deb shutdown -r
now you can install the headers too from /usr/src/linux-headers-2.6.27*

If you want to build it Vanilla way without debian tools then consult this page http://kernelnewbies.org/KernelBuild
compiling 2.6.26 vanilla on hardy - ubuntu way

This article is about compiling a kernel on Ubuntu systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution.

cd /usr/src
wget --continue http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.6.tar.bz2
tar jxvf linux-2.6.26.6.tar.bz2
ln -s linux-2.6.26.6 linux
cd linux
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
cd ..
dpkg -i linux-image-2.6.26.6-*
shutdown -r now

you can install the headers too from /usr/src/linux-headers-2.6.26.6-*
in my case i can show you how the packages are named
ls *.deb
linux-headers-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb
linux-image-2.6.26.6-custom_2.6.26.6-custom-10.00.Custom_amd64.deb

Sunday, October 05, 2008

installing openttd on ubuntu hardy

sudo apt-get install openttd


vi /usr/share/doc/openttd/README.Debian

cd ~/Desktop/Transport Tycoon Deluxe
sudo cp *.grf /usr/share/games/openttd/data
sudo cp *.cat /usr/share/games/openttd/data
cd gm/
sudo cp * /usr/share/games/openttd/gm/

$ openttd

Transport Tycoon Deluxe on wine ubuntu hardy

download the game http://www.abandonia.com/en/games/240
unzip it on desktop
run and import the registry key from zip Runme!.reg with
regedit from wine
$ regedit
and choose the import option from menu




start an terminal
run
cd ~/Desktop/Transport Tycoon Deluxe
wine cmd.exe
SET LANG=english
Transport Tycoon Deluxe.exe



Monday, September 22, 2008

using everex cloudbook as an wireless router for nokia i810

add an new wireless network from Network Manager and it must be Ad-Hoc and call it foobar
and put the ip 10.0.0.1 to the wlan0 network
with gateway 10.0.0.1
dns 10.0.0.1
and netmask 255.255.255.0

it should look something like this

ip ro show dev wlan0
10.0.0.0/24 proto kernel scope link src 10.0.0.1
ip addr show wlan0

3: wlan0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:15:af:54:2a:af brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global wlan0
inet6 fe80::215:afff:fe54:2aaf/64 scope link
valid_lft forever preferred_lft forever


install dhcpd server
sudo apt-get install dhcp3-server
sudo vi /etc/default/dhcp3-server
INTERFACES="wlan0"
sudo vi /etc/dhcp3/dhcpd.conf
ddns-update-style ad-hoc;
default-lease-time 3600;
max-lease-time 9000;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.30;
option routers 10.0.0.1;
option domain-name-servers 10.0.0.1;
}
sudo /etc/init.d/dhcp3-server stop
sudo /etc/init.d/dhcp3-server start

install bind server for dns requests

sudo apt-get install bind9

add in etc/bind/named.conf.options
recursion yes;


allow-recursion {
127.0.0.1;
10.0.0.0/24;
};

allow-query {
127.0.0.1;
10.0.0.0/24;
};

and test it
dig debian.org @10.0.0.1

do the snat

sudo su
echo "1" > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

check the traffic with tcpdump
sudo tcpdump -i wlan0

Sunday, September 21, 2008

first steps to compile linux 0.0.1 on ubuntu

wget http://draconux.free.fr/download/os-dev/linux0.01/linux-0.01-rm-3.x/linux-0.01-rm-3.3.tgz
tar -zxvf linux-0.01-rm-3.3.tgz
cd linux-0.01-rm-3.3/
make


seems that i miss the as86

sudo apt-get install bin86

make

This is on amd64 hardy box

as -o boot/head.o boot/head.s
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -fno-stack-protector \
-nostdinc -Iinclude -c -o init/main.o init/main.c
In file included from init/main.c:2:
include/unistd.h:256: warning: ‘struct dirent’ declared inside parameter list
include/unistd.h:256: warning: its scope is only this definition or declaration, which is probably not what you want
include/unistd.h:257: warning: ‘struct dirent64’ declared inside parameter list
In file included from init/main.c:3:
include/time.h:39: warning: conflicting types for built-in function ‘strftime’
/tmp/cceutlRx.s: Assembler messages:
/tmp/cceutlRx.s:315: Error: suffix or operands invalid for `push'
/tmp/cceutlRx.s:316: Error: suffix or operands invalid for `push'
/tmp/cceutlRx.s:317: Error: suffix or operands invalid for `pushf'
/tmp/cceutlRx.s:318: Error: suffix or operands invalid for `push'
/tmp/cceutlRx.s:319: Error: suffix or operands invalid for `push'
make: *** [init/main.o] Error 1

This is the error on athlon i386 box

make
(echo -n "SYSSIZE = (";ls -l tools/system | grep system \
| cut -c31-37 | tr '\012' ' '; echo "+ 15 ) / 16") > tmp.s
cat boot/boot.s >> tmp.s
as86 -0 -o boot/boot.o tmp.s
00001 0000002C SYSSIZE = (44 2008 + 15 ) / 16
***** right parentheses expected..............................^
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */
00001 0000002C SYSSIZE = (44 2008 + 15 ) / 16
***** right parentheses expected..............................^
00286 /*
00287 * This procedure turns off the floppy drive motor, so
00288 * that we enter the kernel in a known state, and
00289 * don't have to worry about it later.
00290 */

00001 errors
00000 warnings
make: *** [boot/boot] Error 1

UPDATE now is fixed with linux-0.01-rm-3.3.tgz
http://mapopa.blogspot.com/2008/09/linux-0.html

Saturday, September 13, 2008

solving the webcam and wireless on everex cloudbook

Here is how to solve the wireless range and stability
http://forum.netbookuser.com/viewtopic.php?id=543

Follow this guide and you'll have amazing range and stability.
http://www.aircrack-ng.org/doku.php?id=r8187 OR

(as root)

wget http://dl.aircrack-ng.org/drivers/rtl81 … 6.1010.zip
unzip rtl8187_linux_26.1010.zip
cd rtl8187_linux_26.1010.0622.2006/
wget http://patches.aircrack-ng.org/rtl8187_2.6.24v3.patch
tar xzf drv.tar.gz
tar xzf stack.tar.gz
patch -Np1 -i rtl8187_2.6.24v3.patch
make
make install
depmod -ae
echo "r8187" >> /etc/modules
echo "blacklist rtl8187" >> /etc/modprobe.d/blacklist

webcam which is easy

1. apt-get install module-assistant
2. module-assistant prepare
3. module-assistant auto-install linux-uvc
4. modprobe uvcvideo

more about this webcam

Webcam

Like the WLAN card, the webcam is internally connected via USB. It uses a Bison chip that can be found in many notebook and Logitech webcams. A Linux kernel driver is available as an external source package, "linux-uvc-source"; it will be officially included starting with Linux kernel 2.6.27. The Debian distribution kernel 2.6.26 already includes this module; "modprobe uvcvideo" activates it. The webcam can be used, for example, by running xawtv with the command line argument "-d /dev/video0". However, recording from it, for example with ffmpeg, does not work since the camera does not seem to return correct image geometry information.

Tuesday, September 09, 2008

alternate installer pxe for ubuntu 8.04

if you don't have an usb cdrom or don't want to mess with the usb boot install
then you can install with pxe
seems that it works for me and is quite easy

https://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install

ps: i borked my cloudbook with an gos -> hardy upgrade but i don't panic i will find a way to put a good os back (or parts of it :lxde/awn ...)

Tuesday, June 17, 2008

The character device /dev/vboxdrv does not exist in hardy/gutsy latest kernels

locate vboxdrv.ko

dpkg -L virtualbox-ose-modules-2.6.24-18-generic

(may need to locate -u first)

then I did

insmod /path/to/exact-same-kernel.../vboxdrv.ko

sudo insmod /lib/modules/2.6.24-18-generic/misc/vboxdrv.ko

lsmod | grep vbox

/etc/init.d/vboxdrv status
open: Permission denied
* VirtualBox kernel module is loaded.
ERROR: Firmware file "b43/ucode5.fw" not found or load failed.



sudo apt-get install b43-fwcutter

that solves it

Monday, June 02, 2008

dist upgrade to ubuntu intrepid ibex

sudo vi /etc/apt/sources.list
%s/hardy/intrepid/g
:wq
$sudo apt-get update
$sudo apt-get dist-upgrade

Monday, May 12, 2008

you can use my vlc repository

https://edge.launchpad.net/~mapopa/+archive

add in /etc/apt/sources.list

deb http://ppa.launchpad.net/mapopa/ubuntu hardy main
deb-src http://ppa.launchpad.net/mapopa/ubuntu hardy main

then
$sudo apt-get update
$sudo apt-get install vlc

Wednesday, April 23, 2008

Hardy Heron final release dead ahead !!!


I started testing the RC last night and it worked ok with the installer , only an small crash for the windows installer but all went ok finally

Tuesday, March 25, 2008

How do I disable evolution-data-server

evoltion-data-server was eating 100% of cpu so i had to kill it on my hardy box


Monday, March 17, 2008

replacing xmms with audacious

xmms will be removed from ubuntu/debian in the future

so i have installed the audacious
$sudo apt-get install audacious audacious-plugins


i have made audacious to look exactly like the xmms with Refugee skin so it can replace xmms easily on any desktop

and it has the voice removal plugin (needed for playing covers)

the cpu used is somewhere at 5% for audicious but is ok i guess

ps: the only thing i need now is an gnome applet for playing music


bonus packages :

$sudo apt-get install audacious-plugins-extra audtty pidgin-musictracker

Thursday, March 13, 2008

freemindmap on hardy

is impressive to create an map for an new site for example

http://freemind.sourceforge.net/wiki/index.php/Main_Page

in ubuntu can be installed by

$sudo apt-get install mindmap