Hadirmu Tidak diundang, Jika ragu-ragu sila pulang!!

Ini blog suka hati aku. Bukan untuk tontonan umum. Kalau engkau masuk ke sini secara tak sengaja, SILA BERAMBUS DENGAN SOPAN sebelum merasa terhina dengan kutukan cacimaki keji dari aku.

Aku dah WARNING!!! Kalau kau nak baca juga, kau WAJIB 100% BERSETUJU dengan apa pun yang aku tulis dan bersumpah setia tak akan mempergunakan apa-apa kandungan blog ini untuk menjahanamkan aku. Jika kau tak bersetuju juga, Sila Pergi Jahanam dan BERAMBUS DENGAN SEGERA sebelum aku cabut urat kentut kau dan menyebabkan kau lumpuh seumur hidup.

Sudahlah, aku taknak membebel lagi. Kalau kau tak faham lagi, sila baca lagi ayat-ayat diatas sampai faham.

Baca lagi ayat diatas...

Sabtu, 21 November 2020

Bermain Dengan Multi Partition SD Image

Memula dd sdcard kepada image
apogee@g33kbox:~$ dd if=/dev/sdd of=raspi4-noob-32g.img 
62333952+0 records in
62333952+0 records out
31914983424 bytes (32 GB, 30 GiB) copied, 406.123 s, 78.6 MB/s

Buat device menggunakan losetup
$ sudo losetup --show -f -P raspi4-noob-32g.img
/dev/loop15

Fdisk untuk tengok partition dalam image
$ fdisk -l /dev/loop15
Disk /dev/loop15: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdaa0952c

Device        Boot Start      End  Sectors  Size Id Type
/dev/loop15p1       8192 62333951 62325760 29.7G  c W95 FAT32 (LBA)


Lepas tu kita mount image yang kita buat tadi
$ mkdir sdimg
$ sudo mount -o loop /dev/loop15p1 sdimg
$ cd sdimg
$ ll
total 39M
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-b.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-b-plus.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-cm.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-zero.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-zero-w.dtb
-rwxr-xr-x 1 root root  25K Mei  28 18:57  bcm2709-rpi-2-b.dtb
-rwxr-xr-x 1 root root  25K Mei  28 18:57  bcm2710-rpi-2-b.dtb
-rwxr-xr-x 1 root root  26K Mei  28 18:57  bcm2710-rpi-3-b.dtb
-rwxr-xr-x 1 root root  27K Mei  28 18:57  bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root  25K Mei  28 18:57  bcm2710-rpi-cm3.dtb
-rwxr-xr-x 1 root root  41K Mei  28 18:57  bcm2711-rpi-4-b.dtb
-rwxr-xr-x 1 root root  52K Mei  28 18:57  bootcode.bin
-rwxr-xr-x 1 root root  303 Mei  28 18:57  BUILD-DATA
drwxr-xr-x 3 root root  32K Jul  30 01:56  defaults
-rwxr-xr-x 1 root root 2.4K Mei  28 18:57  INSTRUCTIONS-README.txt
drwxr-xr-x 6 root root  32K Jul  30 01:56  os
drwxr-xr-x 2 root root  32K Jul  30 01:58  overlays
-rwxr-xr-x 1 root root 766K Mei  28 18:57  recover4.elf
-rwxr-xr-x 1 root root 3.1M Mei  28 18:57  recovery7.img
-rwxr-xr-x 1 root root 3.3M Mei  28 18:57  recovery7l.img
-rwxr-xr-x 1 root root  121 Mei  28 18:57  recovery.cmdline
-rwxr-xr-x 1 root root 675K Mei  28 18:57  recovery.elf
-rwxr-xr-x 1 root root    0 Mei  28 18:57  RECOVERY_FILES_DO_NOT_EDIT
-rwxr-xr-x 1 root root 3.0M Mei  28 18:57  recovery.img
-rwxr-xr-x 1 root root  28M Mei  28 18:57  recovery.rfs
-rwxr-xr-x 1 root root 9.5K Mei  28 18:57  riscos-boot.bin
drwxr-xr-x 2 root root  32K Ogos  7 01:18 'System Volume Information'


Umount partition
$ sudo umount sdimg

Tengok dalam gparted
$ gparted /dev/loop15

Setelah resize


Untuk membuang space yang kita taknak:
$ truncate -s -${SIZE}G $image_file 

Kita kena kira size tu berdasarkan value dari fdisk darab sector size.
$ fdisk -l /dev/loop15
Disk /dev/loop15: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xaf16378a

Device        Boot Start      End  Sectors Size Id Type
/dev/loop15p1       8192 10493951 10485760   5G  c W95 FAT32 (LBA)


Gunakan nombor End (10493951) sebagai rujukan, tambah 1 dan * 512 seperti berikut:
$ sudo umount sdimg

$ losetup -d /dev/loop15

$ ll
total 30G
-rw-r--r-- 1 apogee apogee  30G Nov  21 13:45 raspi4-noob-32g.img
drwxr-xr-x 2 apogee apogee 4.0K Nov  21 12:42 sdimg

$ truncate --size=$[(10493951+1)*512] 'raspi4-noob-32g.img'

$ ll
total 5.1G
-rw-r--r-- 1 apogee apogee 5.1G Nov  21 14:03 raspi4-noob-32g.img
drwxr-xr-x 2 apogee apogee 4.0K Nov  21 12:42 sdimg


Test balik
$ sudo losetup --show -f -P raspi4-noob-32g.img
/dev/loop15

$ gparted /dev/loop15


$ sudo mount /dev/loop15p1 sdimg
$ ll sdimg 
total 39M
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-b.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-b-plus.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-cm.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-zero.dtb
-rwxr-xr-x 1 root root  24K Mei  28 18:57  bcm2708-rpi-zero-w.dtb
-rwxr-xr-x 1 root root  25K Mei  28 18:57  bcm2709-rpi-2-b.dtb
-rwxr-xr-x 1 root root  25K Mei  28 18:57  bcm2710-rpi-2-b.dtb
-rwxr-xr-x 1 root root  26K Mei  28 18:57  bcm2710-rpi-3-b.dtb
-rwxr-xr-x 1 root root  27K Mei  28 18:57  bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root  25K Mei  28 18:57  bcm2710-rpi-cm3.dtb
-rwxr-xr-x 1 root root  41K Mei  28 18:57  bcm2711-rpi-4-b.dtb
-rwxr-xr-x 1 root root  52K Mei  28 18:57  bootcode.bin
-rwxr-xr-x 1 root root  303 Mei  28 18:57  BUILD-DATA
drwxr-xr-x 3 root root  32K Jul  30 01:56  defaults
-rwxr-xr-x 1 root root 2.4K Mei  28 18:57  INSTRUCTIONS-README.txt
drwxr-xr-x 6 root root  32K Jul  30 01:56  os
drwxr-xr-x 2 root root  32K Jul  30 01:58  overlays
-rwxr-xr-x 1 root root 766K Mei  28 18:57  recover4.elf
-rwxr-xr-x 1 root root 3.1M Mei  28 18:57  recovery7.img
-rwxr-xr-x 1 root root 3.3M Mei  28 18:57  recovery7l.img
-rwxr-xr-x 1 root root  121 Mei  28 18:57  recovery.cmdline
-rwxr-xr-x 1 root root 675K Mei  28 18:57  recovery.elf
-rwxr-xr-x 1 root root    0 Mei  28 18:57  RECOVERY_FILES_DO_NOT_EDIT
-rwxr-xr-x 1 root root 3.0M Mei  28 18:57  recovery.img
-rwxr-xr-x 1 root root  28M Mei  28 18:57  recovery.rfs
-rwxr-xr-x 1 root root 9.5K Mei  28 18:57  riscos-boot.bin
drwxr-xr-x 2 root root  32K Ogos  7 01:18 'System Volume Information'

$ sudo umount sdimg
$ sudo losetup -d /dev/loop15

Selesai... tu je nak kongsi.

Khamis, 20 Februari 2020

karutmarut

ini posting karut marut... aku jumpa sesuatu yang pelik hari ni

Jumaat, 31 Julai 2009

posting pelik bertarikh ke hadapan

hari ni aku jumpa sesuatu yang pelik dan istimewa
tapi aku jumpa kat blog pyan habib
posting pertama dia bertarikh 20 feb 2020
hey, 20 feb tu harijadi aku la

kenapa ??

kalau buat scheduled post, mesti postnya belum keluar
setelah aku buat pemerhatian ringkas...
aku berjaya duplicate caranya...
haha... macam siyut
dan macam siyut juga, dia guna tarikh lahir aku!!

Rabu, 1 Julai 2009

ip rumah script

http://apogeek.com/apoip/ip-pperdana?lokasi=mana

Khamis, 4 Jun 2009

Busy day

Jumaat, 22 Mei 2009

Dapatkan Bantuan Atas talian di #Ubuntu-my

aku buat mender ni hari ni... huhu

Rabu, 20 Mei 2009

Buy the t-shirt for me!!

You can buy the ubuntu t-shirt for me...

Khamis, 14 Mei 2009

Khamis, 7 Mei 2009

Isnin, 4 Mei 2009

Isnin, 27 April 2009

Jumaat, 24 April 2009

Tambah Malaysia punya Ubuntu mirror dalam Software Sources

edit fail Ubuntu.mirrors

apogee@ubuntubox:~$ sudo nano /usr/share/python-apt/templates/Ubuntu.mirrors


tambah baris ni kat tempat sepatutnya...

#LOC:MY
http://ubuntu.mmu.edu.my/ubuntu


lepas tu dah boleh guna kat System > Administration > Software Sources





Flash tsfastboot ke dalam ts-7260

set apache2 untuk boleh tunjuk fail dari public_html aku...

apogee@ubuntubox:/etc/apache2/mods-enabled$ sudo a2enmod
Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias
Which module(s) do you want to enable (wildcards ok)?
userdir
Enabling module userdir.
Run '/etc/init.d/apache2 restart' to activate new configuration!
apogee@ubuntubox:/etc/apache2/mods-enabled$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 ... waiting . [ OK ]
apogee@ubuntubox:/etc/apache2/mods-enabled$



lepas tu pastikan kedua2 fail ni dah ada dlm dir berkenaan

apogee@ubuntubox:~$ ls public_html/tslinux/
ts7260-sdcard-initrd-1.03.gz zImage-7260-ts11
apogee@ubuntubox:~$


Set minicom bahagian terminal setting tu sebagai ANSI
caranya, tekan Ctrl+A+T > A (Sampai kuar ANSI kat bahagian terminal emulation tu)

pastikan semua kabel dah cucuk. Kabel eth, kabel serial... lepas tu cucuk kabel power dan tekan Ctrl+C sampai kuar RedBoot> prompt. Seterusnya boleh guna arahan ni...

RedBoot> fconfig -l
Run script at boot: true
Boot script:
.. fis load zImage
.. fis load initrd.gz
.. exec -r 0x00600000 -s 0x6D81E -b 0x00218000 -l 0xA6B50 -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"

Boot script timeout (100ms resolution): 1
Use BOOTP for network configuration: false
Gateway IP address: 192.168.13.104
Local IP address: 192.168.13.16
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.13.104
Network hardware address [MAC]: 0x00:0xD0:0x69:0x41:0xAB:0xF7
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false


** copy paste untuk setting boot script:

fis load zImage
fis load initrd.gz
exec -r 0x00600000 -s 0x6D81E -b 0x00218000 -l 0xA6B50 -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"


fconfig -l tu untuk list aje. guna fconfig untuk edit dan matchkan dengan setting kat atas tu seterusnya reset dan masuk redboot lagi. Sekarang ni guna arahan ni pulak:

fis list
fis delete vmlinux
load -v -r -b 0x00218000 -m http -h 192.168.13.104 /~apogee/tslinux/zImage-7260-ts11
fis create -b 0x00218000 -l 0xA6B50 zImage
load -v -r -b 0x00600000 -m http -h 192.168.13.104 /~apogee/tslinux/ts7260-sdcard-initrd-1.03.gz
fis free
fis create -b 0x00600000 -l 0x6d81e initrd.gz
fis list

reset


kat bawah ni contoh yg aku penah buat (copy-paste dari console):

RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
(reserved) 0x60000000 0x60000000 0x01D04000 0x00000000
RedBoot 0x61D04000 0x61D04000 0x00040000 0x00000000
vmlinux 0x61D44000 0x00218000 0x000C0000 0x00218000
FIS directory 0x61FFC000 0x61FFC000 0x00003000 0x00000000
RedBoot config 0x61FFF000 0x61FFF000 0x00001000 0x00000000
RedBoot> fis delete vmlinux
Delete image 'vmlinux' - continue (y/n)? y
RedBoot> load -v -r -b 0x00218000 -m http -h 10.1.1.104 /~apogee/zImage-7260-ts11
/
Raw file loaded 0x00218000-0x002beb4f, assumed entry at 0x00218000
RedBoot> fis create -b 0x00218000 -l 0xA6B50 zImage
RedBoot> load -v -r -b 0x00600000 -m http -h 10.1.1.104 /~apogee/ts7260-sdcard-initrd-1.03.gz
\
Raw file loaded 0x00600000-0x0066d81d, assumed entry at 0x00600000
RedBoot> fis free
0x61DEC000 .. 0x61FFC000 (0 blocks bad)
RedBoot> fis create -b 0x00600000 -l 0x6d81e initrd.gz
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
(reserved) 0x60000000 0x60000000 0x01D04000 0x00000000
RedBoot 0x61D04000 0x61D04000 0x00040000 0x00000000
zImage 0x61D44000 0x00218000 0x000A8000 0x00218000
initrd.gz 0x61DEC000 0x00600000 0x00070000 0x00600000
FIS directory 0x61FFC000 0x61FFC000 0x00003000 0x00000000
RedBoot config 0x61FFF000 0x61FFF000 0x00001000 0x00000000
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load vmlinux
.. exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"
Enter script, terminate with empty line
>> fis load zImage
>> fis load initrd.gz
>> exec -r 0x00600000 -s 0x6D81E -b 0x00218000 -l 0xA6B50 -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"
>>
Boot script timeout (100ms resolution): 1
Use BOOTP for network configuration: false
Gateway IP address: 192.168.2.104
Local IP address: 192.168.2.16
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.2.104
Network hardware address [MAC]: 0x00:0xD0:0x69:0x41:0x12:0x2F
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
RedBoot> reset



ok tu aje... buat lah banyak2 kali sampai muntah... aku pun dah rasa macam nak muntah ni.

Rabu, 22 April 2009

install freebsd 7




<MyAzhax> silap lagi
<MyAzhax> cancel yg atas tu
<MyAzhax> buat ni vi /usr/share/examples/cvsup/ports-supfile
<MyAzhax> hahahaa
<ApOgEE-> oooo
<ApOgEE-> ports
<MyAzhax> ya ya
<MyAzhax> nanti csup pun blabla/ports-supfile
<MyAzhax> :D
<MyAzhax> aritu niama pening kot :D
<ApOgEE-> nama host?
<ApOgEE-> sama gak ke?
<MyAzhax> ApOgEE-, host ape tu ?
<ApOgEE-> host dlm ports-supfile tu
<ApOgEE-> *default host=??
<ApOgEE-> cvsup.jp.*** gak ke?
<ApOgEE-> ahh... aku kene
<ApOgEE-> Rejected by server: Access limit exceeded
<ApOgEE-> try again later
<ApOgEE-> lol
<MyAzhax> er
<MyAzhax> ok, cuba tuka lain
<MyAzhax> jap ek
<MyAzhax> *default host=cvsup.free.MyBSD.org.my
<MyAzhax> kasi #'*default host=cvsup.jp.FreeBSD.org'
<MyAzhax> pastu isi *default host=cvsup.free.MyBSD.org.my




error masa install xorg

cd /usr/ports/x11/xorg
make install clean




error xcb pulak

VB.NET on Ubuntu

Compile Linux Kernel

http://www.kernel.org/

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.1.tar.bz2

http://ubuntuforums.org/showthread.php?t=56835

http://beginlinux.wordpress.com/2008/12/03/how-to-compile-an-ubuntu-810-kernel/

http://blog.gunbladeiv.com/2008/05/ubuntu-kernel-2625-on-hardy.html

http://www.howtoforge.com/kernel_compilation_ubuntu

http://paulsundvall.blogspot.com/2008/11/compile-realtime-kernel-in-debian-lenny.html

---

extras: http://blog.mypapit.net/2005/05/menukar-linux-boot-logo.html

Selasa, 21 April 2009

PersiaSYS On Google Map




Inilah lokasi PersiaSYS
----

lagi, kalau nak main ngan google map API:
http://www.phpinsider.com/php/code/GoogleMapAPI/


Isnin, 20 April 2009

Qemu on Linux

This is what I did on my Ubuntu 8.10


apogee@apogee-ubuntu:/media/ext3-hdd/qemu$ cat commands
# sudo aptitude update
# sudo aptitude install kqemu-common kqemu-source
# sudo aptitude install module-assistant
# sudo m-a prepare
# sudo m-a build kqemu
# sudo m-a install kqemu
# sudo aptitude install qemu

apogee@apogee-ubuntu:/media/ext3-hdd/qemu$ qemu-img create mydrv.img 10GB
Formatting 'mydrv.img', fmt=raw, size=10485760 kB

sudo qemu -boot d -hda mydrv.img -cdrom /dev/scd0 -net nic -net tap,ifname=tap2 -m 512
apogee@apogee-ubuntu:/media/ext3-hdd/qemu$



Here's some reference for Slackware

http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:qemu



sudo m-a -f get kqemu-source


if still didn't work...

add -no-kqemu

sudo qemu -boot d -hda netbsdhd.img -cdrom netbsd-live-2007.iso -net nic -net tap,ifname=tap2 -m 256 -no-kqemu


lagi...

sudo qemu -hda netbsdhd.img -net nic -net tap,ifname=tap2 -m 256 -no-kqemu
sudo qemu -boot d -hda netbsdhd.img -cdrom i386cd-4.0.1.iso -net nic -net tap,ifname=tap2 -m 256 -no-kqemu




Khamis, 16 April 2009

phpsysinfo and torrentflux on ubuntu-arm

bizkut punya ubuntu-arm kat nslu2 dilengkapi phpsysinfo...

http://ubuntu.uglyslug.com/phpsysinfo/index.php?disp=dynamic



dan torrentflux juga...

ah, jelesnye aku.