2005 12 10: watching movies on linux
I'd like to watch whatever pr0n I downloaded on my linux box..
I remember having to download QuickTime RealPlayer WindowsMediaPlayer9 etc. to watch movies on windows..
How do I do it on linux ?
First we need a descent player, xine is my choise..
Download a package or install it from your distro..
Or be cool and download the source here..
Install both xine-lib and atleast one frontend..
Now to get them weird codecs like wma, wmv, ra, ram and mov to work..
Go to http://www.mplayerhq.hu/ from the driver section, go to codecs, and download the essential or the all package..
Unpack the contents and move them to /usr/lib/win32
If you are not using mplayer or xine, you might need to change the path to 'Win32 codecs' in your video players config..
Have fun !!
I remember having to download QuickTime RealPlayer WindowsMediaPlayer9 etc. to watch movies on windows..
How do I do it on linux ?
First we need a descent player, xine is my choise..
Download a package or install it from your distro..
Or be cool and download the source here..
Install both xine-lib and atleast one frontend..
Now to get them weird codecs like wma, wmv, ra, ram and mov to work..
Go to http://www.mplayerhq.hu/ from the driver section, go to codecs, and download the essential or the all package..
Unpack the contents and move them to /usr/lib/win32
If you are not using mplayer or xine, you might need to change the path to 'Win32 codecs' in your video players config..
Have fun !!
2005 12 10: obtaining root thrue lilo
You have found your old linux box..
ah.. nostalgia
you just can't remember that fucking root password..
you could boot from a bootdisk and eddit the /etc/shadow but that's not the nicest way..
on most computers you can give the kernel added options in the lilo bootscreen..
you can use the init= option to set an aplication to be started after boot :D
adding the line init=/bin/bash rw should boot the puter and drop you into a root console on the read-write (rw) mounted root filesystem..
ah.. nostalgia
you just can't remember that fucking root password..
you could boot from a bootdisk and eddit the /etc/shadow but that's not the nicest way..
on most computers you can give the kernel added options in the lilo bootscreen..
you can use the init= option to set an aplication to be started after boot :D
adding the line init=/bin/bash rw should boot the puter and drop you into a root console on the read-write (rw) mounted root filesystem..
2005 12 10: installing software from source
So you've got linux.. now you want some kewl software..
You go to SourceForge or FreshMeat or something
You download the source because all your friends say that
compiling your own binaries gets you a highly optimized system..
plus it makes you 1337 and ub3r and stuff ;p
Now you are proppably stuck with a .tar.gz or a .tar.bz2
You go to SourceForge or FreshMeat or something
You download the source because all your friends say that
compiling your own binaries gets you a highly optimized system..
plus it makes you 1337 and ub3r and stuff ;p
Now you are proppably stuck with a .tar.gz or a .tar.bz2
2005 12 10: easy kernel update
Say you've got your linux system nice and running..
And all of a sudden you surf a site like this
and you seen oh.no!!! A new linux kernel... I just configured my kernel to my liking..
You download the thirty fourty odd megs.. and are stuck with a file..
linux-2.x.x.tar.x
the x's are version numbers and filetypes, wich I'll discuss in a while..
now what to do:
And all of a sudden you surf a site like this
and you seen oh.no!!! A new linux kernel... I just configured my kernel to my liking..
You download the thirty fourty odd megs.. and are stuck with a file..
linux-2.x.x.tar.x
the x's are version numbers and filetypes, wich I'll discuss in a while..
now what to do:
2005 12 10: basic kernel configuration
Now let's say you just installed the kernel source packages from your favorite distro on your brand spanking new super cool box..
You'd like to optimize the kernel..
First of, you go to the kernel source directory, usualy by typing
cd /usr/src/linux
Most distro's come with their own fully packed kernel configurations
that support most hardware, this way their distro will boot on damn nearly any kind of puter..
We don't want that, we just want our nice optimized for this box ony kernel..
You'd like to optimize the kernel..
First of, you go to the kernel source directory, usualy by typing
cd /usr/src/linux
Most distro's come with their own fully packed kernel configurations
that support most hardware, this way their distro will boot on damn nearly any kind of puter..
We don't want that, we just want our nice optimized for this box ony kernel..
2005 12 09: chroot shell tutorial
let's say you want a user of your (linux) server to have no access to anything you don't want him/her to use..
but you do want them to be able to log in and do their thing...
you'll need to root jail (chroot) the user.
there are lots of tutorials about chroot and also chrooted shells, but I couldn't find a good one, so I wrote one down while working my way thrue the othere tutorials and howto's..
hope you like it !!
disclaimer:
reading and following any or all steps in this tutorial is at your own risk.
I am not responsible for your stupidity !
but you do want them to be able to log in and do their thing...
you'll need to root jail (chroot) the user.
there are lots of tutorials about chroot and also chrooted shells, but I couldn't find a good one, so I wrote one down while working my way thrue the othere tutorials and howto's..
hope you like it !!
disclaimer:
reading and following any or all steps in this tutorial is at your own risk.
I am not responsible for your stupidity !
2005 12 09: x config tweaks
So you've got your linux running, and wanna use X..
Some tools do a good job of configuring your X.org or XFree86..
But we want to be cool and tweak it for some more cool stuff..
This small tutorial will allow you to enable some lesser known X11 features..
Open the configuration file in your favorite edditor..
Usualy the file is located (usualy) in /etc/X11/
The file is called XF86Config on systems using (the deprecated) XFree86 version of X.
Or xorg.conf on newer distro's
vi /etc/X11/xorg.conf ( or /etc/X11/XF86Config ofcourse )
Let's enable that scroll wheel (all mice have these now, right??) !!
Find the part where it says:
Section "InputDevice"
We'll add some options here and possibly replace some (you can cut-and-paste them)..
This enables the weelmouse..
Some tools do a good job of configuring your X.org or XFree86..
But we want to be cool and tweak it for some more cool stuff..
This small tutorial will allow you to enable some lesser known X11 features..
Open the configuration file in your favorite edditor..
Usualy the file is located (usualy) in /etc/X11/
The file is called XF86Config on systems using (the deprecated) XFree86 version of X.
Or xorg.conf on newer distro's
vi /etc/X11/xorg.conf ( or /etc/X11/XF86Config ofcourse )
Let's enable that scroll wheel (all mice have these now, right??) !!
Find the part where it says:
Section "InputDevice"
We'll add some options here and possibly replace some (you can cut-and-paste them)..
Option "Protocol" "IMPS/2"
Option "Buttons" "5"
Option "ZAxismapping" "4 5"
Option "Buttons" "5"
Option "ZAxismapping" "4 5"
This enables the weelmouse..