Archlinux, udev and automounting

on 2012-01-07 at 00:57 by kamisori

So i was watching tv; thinking about Plan9 and GNU/Hurd; when i decided to try ArchHurd as a live system from an usb device, and just then i remembered, that i haven’t taken time to setup automounting on my notebook yet. So i started up my trusty notebook, and was greeted with a fsck error, about not finding two devices. Because of the not working automounting, i had added my two usb hdds into /etc/fstab without setting nofail.

Yeah, pretty noobish. This was the first time i read the options for fstab…

Anyways, luckily the fsck message also said how to remount the root fs read/write… otherwise i might have had to get another pc to look that up aswell…

Sooo… finally i was in xfce and looked up the example rules on the arch wiki, as i found that i already had an automounting rule in my /etc/udev/rules.d/ and tried to get it to work.

As it seems the author mixed up %n with %k. %n is substituted with the device number, and %k with the kernelname. So if the kernel adds a device /dev/sdb1, %n would be 1 and %k would be sdb1. The mistake in the rule was, that the author used the following line to find out the label of the drive:

PROGRAM=="/sbin/blkid -o value -s LABEL %N", ENV{dir_name}="%c"

blkid expects a device path instead. So if we want /dev/sdb1 to be mounted automagically, blkid needs /dev/sdb1 but gets 1.

The original rule:

KERNEL!="sd[a-z]*", GOTO="media_by_label_auto_mount_end"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="media_by_label_auto_mount_end"

# Get label
PROGRAM=="/sbin/blkid -o value -s LABEL %N", ENV{dir_name}="%c"
# use basename to correctly handle labels such as ../mnt/foo
PROGRAM=="/usr/bin/basename '%E{dir_name}'", ENV{dir_name}="%c"
ENV{dir_name}=="", ENV{dir_name}="usbhd-%k"

ACTION=="add", ENV{dir_name}!="", RUN+="/bin/su tomk -c '/usr/bin/pmount %N %E{dir_name}'"
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/su tomk -c '/usr/bin/pumount /media/%E{dir_name}'"
LABEL="media_by_label_auto_mount_end"

And the diff:

2c2
< ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="media_by_label_auto_mount_end"
---
> ACTION=="add", PROGRAM!="/sbin/blkid /dev/%k", GOTO="media_by_label_auto_mount_end"
5c5
< PROGRAM=="/sbin/blkid -o value -s LABEL %N", ENV{dir_name}="%c"
---
> PROGRAM=="/sbin/blkid -o value -s LABEL /dev/%k", ENV{dir_name}="%c"
10c10
< ACTION=="add", ENV{dir_name}!="", RUN+="/bin/su tomk -c '/usr/bin/pmount %N %E{dir_name}'"
---
> ACTION=="add", ENV{dir_name}!="", RUN+="/bin/su tomk -c '/usr/bin/pmount /dev/%k %E{dir_name}'"

Also, don’t forget to change the username from tomk to your own in the last paragraph, and be sure you got pmount installed.

If that didn’t do the trick, try starting udev with its –debug parameter.

flattr this!

For all ye SPAM-lovers, have some EGGS!

on 2011-02-02 at 21:53 by kamisori

DELICIOUS!

FINGERLICKIN' GOOD!

We hope we can keep entertaining you fellas in the new year and keep posting usefull blogposts.

Thanks and a happy new year.

Imouto-chan

flattr this!

DUKE NUKEM FOREVER. FINALLY.

on 2010-09-03 at 19:41 by zasha

It’s time to kick ass and chew bubble gum. And I’m all out of gum.   -Duke

Finally it’s getting released!!!111

Actually it will be released by Take2 at about end of 2010 and beginning of 2011 for: PC, PS3 and Xbox 360. Finished by Gearbox / 2K Games.

Out of nowhere those new infos and the bottom livestream is officially from the PAX(Penny Arcade Expo) 2010.

Livestream(2010-09-03): http://www.ustream.tv/2kgameslive

More infos: http://kotaku.com/5628894/its-official-duke-nukem-forever-coming-from-gearbox-software

…i came buckets!

flattr this!

Satoshi Kon passed away †2010-08-24 (Update)

on 2010-08-26 at 06:56 by zasha

Just got informed that Director Satoshi Kon, famous for his works like Perfect Blue, Paprika and others, passed away on 2010-08-24.

さようなら(Sayounara) was the title of his last blog entry.
(Update: Someone translated his entry and published it for everyone. Thanks!)

He nearly reached age 47.

Rest in Peace! Many fans will miss you and your work.

On Wikipedia: Link.

flattr this!

Happy birthday, Linux!

on 2010-08-25 at 20:15 by zasha

Happy birthday Linux! I can’t live without you anymore. <3

http://groups.google.com/group/comp.os.minix/msg/b813d52cbc5a044b:

Path: gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu[...]
From: torva...@klaava.Helsinki.FI (Linus Benedict Torvalds)
Newsgroups: comp.os.minix
Subject: What would you like to see most in minix?
Summary: small poll for my new operating system
Keywords: 386, preferences
Message-ID: <1991Aug25.205708.9541@klaava.Helsinki.FI>
Date: 25 Aug 91 20:57:08 GMT
Organization: University of Helsinki
Lines: 20

Hello everybody out there using minix -

I'm doing a (free) operating system (just a hobby, won't
be big an professional like gnu) for 386(486) AT clones.
This has been brewin since april, and is starting to get
ready.  I'd like any feedback on things people like/
dislike in minix, as my OS resembles it somewhat (same
physical layout of the file-system (due to practical
reasons) among other things). 

I've currently ported bash(1.08) and gcc(1.40), and
things seem to work. This implies that I'll get something
practical within a few months, and I'd like to know what
features most people would want.  Any suggestions
are welcome, but I won't promise I'll implement them :-) 

		Linus (torva...@kruuna.helsinki.fi)

PS.  Yes - it's free of any minix code, and it has a
multi-threaded fs. It is NOT protable (uses 386 task
switching etc), and it probably never will support anything
other than AT-harddisks, as that's all I have :-( .

Also, Linux-tan:

/usr/src/linux/

/usr/src/linux/

flattr this!

Can’t even have a ftp server running…

on 2010-08-10 at 06:49 by kamisori

Almost daily now i find that some idiots are trying to break into my ftp server. But it’s annoying at best, because they always try to break into some account using the username Administrator…. which doesn’t exist… why dont they try anonymous? my anonymous user is turned off most of the time, but who in the world would be so ignorant to have a account named Administrator? Or is there some device that ships with that account?

Anyways… it’s just annoying… because everytime it seems to be the same person while beeing from another country… most likely he or she uses Tor or something… *sigh* Maybe i should create a username Administrator, with some password that would be easily broken with a dictionary attack and leave some kind of directory structure that looks like corporate data but is instead just a bunch of viruses and troyans…… if this person is so dumb he might even fall for it… I’m wondering though, wether this person hits my ftp by chance, using a new ip every time, or if they use my dynamic dns name… which i won’t write here for obvious reasons xD anyways, it’s just annoying…

Here, have a log!

(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
Connected, sending welcome message...
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
220 a/s/l?
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
USER Administrator
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
331 Password required for administrator
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
PASS
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
530 Login or password incorrect!
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
USER Administrator
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
331 Password required for administrator
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
PASS abc123
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
530 Login or password incorrect!
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
USER Administrator
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
331 Password required for administrator
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
PASS password
(000001) 10.08.2010 06:28:51 - (not logged in) (213.235.61.xxx)>
530 Login or password incorrect!

(it went on and on and on and on and on and on and on...)

(000048) 10.08.2010 07:16:53 - (not logged in) (213.235.61.xxx)>
Connected, sending welcome message...
(000048) 10.08.2010 07:16:53 - (not logged in) (213.235.61.xxx)>
220 a/s/l?
(000048) 10.08.2010 07:16:59 - (not logged in) (213.235.61.xxx)>
USER Administrator
(000048) 10.08.2010 07:16:59 - (not logged in) (213.235.61.xxx)>
331 Password required for administrator
(000048) 10.08.2010 07:17:05 - (not logged in) (213.235.61.xxx)>
PASS green
(000048) 10.08.2010 07:17:05 - (not logged in) (213.235.61.xxx)>
530 Login or password incorrect!
(000048) 10.08.2010 07:17:23 - (not logged in) (213.235.61.xxx)>
331 Password required for administrator
(000048) 10.08.2010 07:17:32 - (not logged in) (213.235.61.xxx)>
421 Kicked by Administrator              //take this motherfucker!
(000048) 10.08.2010 07:17:32 - (not logged in) (213.235.61.xxx)>
disconnected.

(IP-Address of Attacker masked to protect possible compromised Company Box)

flattr this!

Plan 9, why are you so different?

on 2010-08-08 at 12:25 by kamisori

Hello,

just for fun i started qemu with the plan9 install/live-cd… and while some concepts are very nice, such as that everything is a file and is accessed via one protocoll, other concepts suck because they are missing. Such as autocomplete. I wanted to configure the network interface and had to type ‘ip/ipconfig’, but im usualy too lazy to look for the / so i just press the tab key. It produced a tab, instead of completing my command… Sure, its nice you can select stuff with your mouse and then send it to the plumber (which means to  have it executed/opened with the right programm. usualy you would select some text and have it executed in the shell.) But does the user have to know each and every command of the system?

Especialy new users just wanting to have a look at plan9 are prone to frustration when they are used to GNU/linux style of behaviour.

But still there are many keyconcepts in plan9 that i just love, and it would be interesting if plan9 would have been a bit more succesfull, and if there would be more users. For example you could share your ressources with friends, one of them buys some hard drives and another builds a powerfull multiprocessor system and together they could host some friends using low-end hardware…

flattr this!

Installing archlinux on a Mac G3 Blue & White

on 2010-08-07 at 11:32 by kamisori

Hello,

recently i tried to install linux on my mac g3 b&w. At first i wanted to use Debian, since it is quite easy to use and set up. But as the installer freezes just after starting, not allowing me to choose a language, i saw no other choice but to instead install archlinux.

With this i also had problems, as the current iso which is from 23.07.2010 doesn’t work. After trying to boot, it says

ERROR: cannot find booted cdrom device, cannot continue…
Kernel panic – not syncing: Attempted to kill init!

A night later i decided to try if the older isos can still be found, and tried the 26.02.2010 iso, which worked good enough to install the system. After this my only problems resulted from not reading the manual of yaboot, and trashing the installation with yaboot beeing writen over the root partition. Another problem was due to a missing kernel module for the ide controller (i used cmd64x) and the keymap hook starting loadkeys with a -b option which doesnt exist with the version contained on the cd.

After having the system bootable and everything, i wanted to install X, but for some reason it wont run the configuration… but i dont really need X, i would be fine with svgalib and gpm. I plan to use this machine to experiment with ppc asm, and use archlinux just so i have a running environment on the machine.

Next up will be setting up a cross compiler for ppc, a bootp, and a tftp server on another machine. So i can screw around with this mac.

EDIT: Come to think of it, if you just want to have a netbooting testbed, you can skip the installation and just let the installer prepare the hard disk for you and then have it install the yaboot loader,  when it asks if the config file for yaboot is correct you should then add enablenetboot in it, so you have a netbooting ppc testbed.

flattr this!

Saimoe 2010 ~アニメ最萌トーナメント2010

on 2010-07-20 at 18:06 by zasha

For all of you who are sleeping under a rock: Saimoe 2010 IS ALREADY AT Preliminary Stage!

Also: Katsura Hinagiku Σ( ̄Д ̄;)!!

http://animesaimoe2010w.web.fc2.com/

http://www.animesaimoe.org/

flattr this!

( ゚∀゚)o彡゜UNZ UNZ!!

on 2010-07-01 at 19:06 by zasha

_, ,_ ∩  TIMOTEI ! TIMOTEI!
( ゚∀゚)彡  UNZ! UNZ!
⊂彡

ツンデレ/ヤンデレ?

on 2010-06-30 at 05:32 by zasha

Tsundere or Yandere, what's your favourite?

View Results

Loading ... Loading ...

Please vote! :3

flattr this!

The (n)ever changing world of man-machine-interfaces…

on 2010-06-28 at 13:50 by kamisori

Hello, it’s kamisori,

i’m sick of this. why does hardware have to be so expensive? If it wasn’t, we all could experiment with stuff like vr goggles and alternative input methods, such as gloves enabling us to do stuff just like oblong industries with their spatial os… which doesn’t really hit the spot…

Sure it’s cool to have these kinds of semi holograms, but really, its just crap… i think vr goggles would be better with that kind of system, instead of multiple wallscreens and some weirdo tablescreen giving you the ilusion of a 3d model hovering in mid air, but not really, because the images are still FLAT on screens, instead of right before your eyes… with some kind of force-feedback-gloves enabling you to really interact with the stuff you see… which then really is hovering in mid air… But then again, who would buy something that looks like a exoskeleton just for gesture input with feedback… >_> sit down nerdboy, im talking about the other ~5.9999billion people on this planet… I guess i read too much cyberpunk…

flattr this!

Awesome! Now the Murikans can keep an eye on us europeans too! ^^V yay!

on 2010-06-25 at 11:35 by kamisori

>_> Fuck…

I’m totaly for getting germany out of the european union… all they ever do is making life more complicated…

This is deffinetly going to bite our asses off…

source

flattr this!

Vile programming 0

on 2010-06-23 at 23:59 by kamisori

Hi it’s kamisori again,

so i was playing flyff a bit, when suddenly, while i switched to opera to look something up, the game crashed. No warning or anything though, just a white screen… when i tried to kill it, i discovered, that there was no such process… then i searched for any handles or dlls containing “flyff”, and in almost all of my running processes there was a reference to [./somewhere]/gPotato.eu/FLYFF/GameGuard/npggNT.des

I suppose this is that GameGuard trying to find evul haxxor processes… or maybe its the game itself… i don’t have a clue.  So i had no other option than to shutdown my machine… While i find flyff a pretty fun game, im not sure i want to continue to play it. In my opinion a user should at all times have the power to kill a process. Well of course except when its accessing something in the kernel… Also the flyff window doesnt have a X button to close it… and when i try to let process manager identify the window, it says its the idle process himself XD … this is so ridiculous… maybe flyff runs via wine on linux, then i could always kill wine and play this game without second thought…

While hiding a process is quite interesting a feat, i find it to be the lowest of the low.  There is only one thing i hate even more: companies selling antivirus software and creating their own viruses… and that is an urban legend… i think… on the other hand, if the russians do it, why shouldnt software companies do it?

RIGHT????    O_o

I don’t think so!   >_<

EDIT: I just had a look at the look at my virus scanner while starting flyff… It showed buffer overflows in explorer, svchost and opera… im a bit disgusted by this… sure i can see the reason why somebody would want to try to protect their game against cheating and hacking, but doing so by underrunning the users security? >_>

flattr this!

Gib uns unser taeglich blasphemisches Zeugs

on 2010-06-20 at 21:51 by kamisori

Gegruesset seist du .torrent voll der Gnade.
Der Seed ist mit dir.
Du bist gebenedeit unter den Leechwares und gebenedeit ist die Frucht deines Leechens, Zeugs.
Heiliger .torrent, Mutter allen Zeugs, bitte fuer uns Leecher.
Jetzt und in der Stunde unseres 24h Reconnects. Jo

flattr this!

Criminals are stupid.

on 2010-06-17 at 15:13 by kamisori

Hello, it’s kamisori again,
if you were a criminal, what instant messenger would you use?
What features should it have? Maybe using a strong encryption? Or should it be open and transparent, so no means to steal away your criminal secrets could be hidden in the client?
Or should it have the ability to play flash games?
It seems criminals prefer to play flash games instead of using a trustworthy IM and don’t mind when their means of communication is as trustworthy as telnet or a DECT telephone…

A quote from Financial Times: “Senior US law enforcement officials have objected to AOL’s pending sale of one of the largest instantmessaging services to a Russian investment firm, fearing it will put some of the world’s top criminals further from their reach.

Investigators at federal agencies charged with scrutinising cyber crime are concerned about the $187.5m acquisition of ICQ by Moscow-based Digital Sky Technologies, which has been rapidly expanding its holding of internet companies.”

source

flattr this!

When content is too expensive.

on 2010-06-12 at 15:24 by kamisori

Hello, i’m kamisori,

today i would like to rant about massive multiplayer online role playing games. No worries though, this Post won’t be long. Pictures say more than words.

So, i was sitting at my desk, trying to decide what to do today, when i realized that my girlfriend, who is sitting right beside me at her own desk, was frantically clicking… I asked her what this was about, so she explained, that there is this quest in  ragnarok online, where you have to give acorns to this guy… he then gives you some potion and experience points. She continued to click her way through the quest. So i was wondering, why she was repeating it seemingly ad absurdum. She then told me, that you could buy the acorns in some shop, and have OVER 9000 acorns and “level” this way.

animated boredom

This is how role-playing-games work nowadays... (click it for the instant-boredom-loop)

So this is how we are supposed to be entertained by games?

Click here for a faster version!

flattr this!

If only something new would happen.

on 2010-06-03 at 12:33 by Pogopuschel

Hooray.

flattr this!

Untitled-1

on 2010-05-30 at 13:00 by Pogopuschel

Pogopuschel here.

Oh look. It’s me being silly. What a suprise.

I just felt like doing something in flash.

First thought to use zasha for this one but he’s just not silly enough.

BE SILLIER ZASHA. BE. SILLIER.

flattr this!

Oh you Chemistry! Oh you!

on 2010-05-29 at 18:52 by Pogopuschel

Pogopuschel here.

This is why I love chemistry:

And just in case you don’t believe me:

Click.

flattr this!