Z’s Blog

Betriebssystem

ufemne Android d’/system Partition im rw Modus mounte

by on Feb.17, 2011, under Betriebssystem

Wenn ufem Android wotsch idr /system Partition umefummle, de muesch die ganzi Partition zersch im rw Modus mounte.
Standardmässig isch die nume ro.

Zersch muesch mou usefinge weles Grät d’/system Partition beinhautet:

# mount

Gid use weli Partitione uf welne Grät g’mounted si:

rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/mtdblock5 /system yaffs2 ro,relatime 0 0
/dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock7 /persist yaffs2 rw,nosuid,nodev,relatime 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,relatime,size=4096k 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fma
sk=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=r
emount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=101
5,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,err
ors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.com2us.sliceit-2 vfat ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000
,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/dm-1 /mnt/asec/com.beautyfullivewallpaper-1 vfat ro,dirsync,nosuid,nodev,noexec,relatime,
uid=1000,fmask=0222,dmask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remoun
t-ro 0 0

Mir wei /dev/block/mtdblock5 /system yaffs2 ro,relatime 0 0
Das müesemer jetz im rw Modus mounte und zwar mit:

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system

Ab jetz chame unger /system aus modifiziere.


Leave a Comment :, , , more...

Routene setzte ufemne BSD

by on Aug.26, 2010, under Betriebssystem

Bevor dasme d’Route geid go ändere, chönntme zersch mou schnäu luege was fürigi Routene bereits im System dinne stöh.
mach chasch das mit:

# netstat -r

um etz e Route z’setzte, bruchsch:

# route add 9.9.9.9 10.10.10.10

Das gid dir d’Route füre Host 9.9.9.9 via Gateway 10.10.10.10.

# route add 9.9.9.0/24 10.10.10.10

gid d’Route für’s Netwärch 9.9.9.0/24 via Gateway 10.10.10.10.

Default Gateway gisch eso a:

# route add default 10.10.10.10

Dr ganz Traffic wozues ke spezielli Route gid und nid im gliche Subnetz ligt geid jetz via 10.10.10.10.

Default Route chame ou i d’rc.conf schribe:

# echo defaultrouter=”10.10.10.10″ > /etc/rc.conf

Leave a Comment :, , , , more...

DHCP Kliänt konfiguriere

by on Aug.12, 2010, under Betriebssystem

Damit es Interface uf dhcp louft muesch ir “/etc/rc.conf”

ifconfig_bge0=”DHCP”

igä.

Dür dä itrag wird ufem interface bge0 dr dhcp klient (dhclient(8)) gestratet, jedoch wird bim boote nid gwartet bis das interface würklich e IP adrässe und so becho hed, sondern dr kliänt wird gstartet und dr boot geid wytr, ouso wyteri dienschte wärde gstartet.

Das cha unger angerem problem gä, wenn dienschte wei uf’s netz zuegriefe und s’interface hed no ke IP konfig, z.B. ntpd (bechunsch fählermäudig “host name not found” usw…)

damit bim boot gwartet wird bis s’interface noch isch duesch is “/etc/rc.conf”

ifconfig_bge0=”SYNCDHCP”

dr bootvorgang geid echli lenger, hesch drfür abr vüu weniger problem…

Leave a Comment :, , , , , , , more...

Zyt synche

by on Aug.04, 2010, under Betriebssystem

damit d’Zyt ufem system gsynched wird gitz zwe eis program

ntpdate und ntpd, das isch eigentlich dr kliänt und dr sörwer.

eigentlich muesme die dienschte nume ischaute und zwar ir “/etc/rc.conf”

# ee /etc/rc.conf

ntpdate_enable=”YES”

ntpd_enable=”YES”

damit e server us dr Schwiz aghoue wird, chame ir “/etc/ntp.conf” no dr schwizer ntp.org pool agä -> ch.pool.ntp.org

update 09.08.2010:
ntpdate isch aut und sött nüm brucht wärde.
bi mir isch bim boot ou immer d’fählermäudig cho, dass dr hostname nid cha ufglöst wärde (netzwärch isch äuä noni ume, wenn dr anger scho wod update)
Leave a Comment :, , , , , , more...

Proxy ir Konsole

by on Aug.03, 2010, under Betriebssystem

damit usere konsole, via proxy, is netz chunsch, muesch folgende befäu absetzte

für’s http protokou

# setenv HTTP_PROXY “http://proxy.proxanien.ch”

für’s ftp protokou

# setenv FTP_PROXY “http://proxy.proxanien.ch”

Leave a Comment :, , , , more...

“command not found” diräkt nach dr installation vo software

by on Jul.30, 2010, under Betriebssystem

wenn software installiersch, ir konsole, via pkg_add odr was ou immer, chas si dass die software nid gad diräkt chasch bruche.
müesstisch zersch usloge und när widr iloge.

das hängt drmit zäme dass dr inhaut vo dim $PATH nid in ächtzyt aktualisiert wird.
sprich, d’shell weis eifach garnid dases das program jetz dört dinne hed, si geid ou nid go luege.

anstatt dasme jetz dued usloge odr widr iloge, chame d’shell lo rehash’e.

bir zsh, csh, tcsh heisst das

# rehash

bir sh, ksh, bash heisst das

# hash -r

Leave a Comment :, , , more...

Konsole läre wenn logout machsch

by on Jul.30, 2010, under Betriebssystem

wenn di usere console uslogsch, de chund zwar dr login promt, abr dr inhaut vo dire session isch immerno ersichtlich.
zum eine gad das was ir konsole steid zum angere dr ganz buffer vor console wennme ufe scrollt.

wenn me sich usere console via "exit" odr "logout" usloggt, wärde bestimmti dateie usgfüert.
dr name vor "logout" datei isch abhängigt vor verwändete shell.

ine mues:

# echo "clear && vidcontrol -C" >> /home/Z/.zlogout

  • "clear" löscht dr sichbar bereich vor konsole
  • "vidcontrol -C" löscht dr buffer vor konsole, das wome via scroll-up chönnt go aluege

bir zsh, dr geilschte shell wos gid, heisst die datei ".zlogout" und ligt im /home/$username$
bir sh ligt die datei ou im /home/$username$ heisst abr ".logout". für d'sh chames ou systemwyt is /etc/profile schribe
 

Leave a Comment :, , , more...

Bell, Beep odr das närfige *DING* ihre Konsole

by on Jul.30, 2010, under Betriebssystem

das info *DING* abschaute, wos ihre konsole gid, wennme zum bispüu TAB solang drückt bis es ke vorschlag me gid:

nume i dere session abschaute

# sysctl hw.syscons.bell=0

generell abschaute

# echo “hw.syscons.bell=0” >> /etc/sysctl.conf

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!