Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prelink and rkhunter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Fri Feb 03, 2012 10:17 pm    Post subject: Prelink and rkhunter Reply with quote

If i have prelink enabled, or in this case if i have the file /etc/prelink.cache , rkhunter says that nearly all files in /bin /usr/bin and usr/sbin are the wrong file size and need checking, I have ran rkhunter --propupd , but it still says the files are bad, if i delete /etc/prelink.cach and run rkhunter --propupd and then run rkhunter it says the files are okay

Other than reading that prelinking can give you a performance boost should i use it on my system and just use this method to use rkhunter or remove prelinking?
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
BigBox37
n00b
n00b


Joined: 25 Dec 2010
Posts: 23

PostPosted: Thu Feb 09, 2012 3:29 pm    Post subject: Re: Prelink and rkhunter Reply with quote

Dark Foo wrote:
If i have prelink enabled, or in this case if i have the file /etc/prelink.cache , rkhunter says that nearly all files in /bin /usr/bin and usr/sbin are the wrong file size and need checking, I have ran rkhunter --propupd , but it still says the files are bad, if i delete /etc/prelink.cach and run rkhunter --propupd and then run rkhunter it says the files are okay

Other than reading that prelinking can give you a performance boost should i use it on my system and just use this method to use rkhunter or remove prelinking?


As an alternative to prelinking i'd suggest e4rat if you use ext4: blazing speed on my system (really!)

http://en.gentoo-wiki.com/wiki/E4rat

Note that the location of e4rat is /sbin/e4rat-* not /usr/sbin/e4rat-* as it says in the wiki...

init=/usr/sbin/e4rat-* --> init=/sbin/e4rat-collect, init=/sbin/e4rat-preload etc...
Back to top
View user's profile Send private message
ultraslinky
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 80
Location: Milan, Italy

PostPosted: Fri Feb 10, 2012 10:24 am    Post subject: Reply with quote

BigBox37, I'd like to try that e4rat you linked :) however, is there a way to use it with Lilo instead of Grub? I wouldn't know where to put "init=/usr/sbin/e4rat-collect" with Lilo. Should i use "append="?

Like now, in Lilo i have my kernel and after that i have: append="pcie_aspm=force".
Would that become: append="pcie_aspm=force init=/sbin/e4rat-collect" ?

Thanks!
Back to top
View user's profile Send private message
ultraslinky
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 80
Location: Milan, Italy

PostPosted: Fri Feb 10, 2012 10:30 am    Post subject: Reply with quote

actually i just did that and it worked :)
Back to top
View user's profile Send private message
BigBox37
n00b
n00b


Joined: 25 Dec 2010
Posts: 23

PostPosted: Sun Feb 12, 2012 4:54 am    Post subject: Reply with quote

ultraslinky wrote:
actually i just did that and it worked :)


Cool :P Fast :?:
Back to top
View user's profile Send private message
ultraslinky
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 80
Location: Milan, Italy

PostPosted: Sun Feb 12, 2012 4:00 pm    Post subject: Reply with quote

Actually.... e4rat-collect worked like a charm, i have my log file and inside it are lots of files i can recognize from the startup sequence :) But after i switched to runlevel 1, and i ran e4rat-prealloc, it just complained that "no optimization was possible", without telling me why. Maybe it's because i only have 10% disk space left? Do i need more than that?

EDIT: actually, i could rerun the command with the ">" operator so i can get the exact output on a text file. then i could post it here!
Back to top
View user's profile Send private message
ultraslinky
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 80
Location: Milan, Italy

PostPosted: Sun Feb 12, 2012 4:18 pm    Post subject: Reply with quote

Wowza..... Well this is very nice :) it makes loading my XFCE4.8 desktop take only 1,5 seconds total! but the problem is, it takes far more to actually load itself, and it makes the services start slower... I don't know, maybe my hard disk is a bottleneck here? Crappy 5400 rpm laptop disk. Anyhow, it seems very promising!
Back to top
View user's profile Send private message
BigBox37
n00b
n00b


Joined: 25 Dec 2010
Posts: 23

PostPosted: Mon Feb 13, 2012 5:21 am    Post subject: Reply with quote

ultraslinky wrote:
Wowza..... Well this is very nice :) it makes loading my XFCE4.8 desktop take only 1,5 seconds total! but the problem is, it takes far more to actually load itself, and it makes the services start slower... I don't know, maybe my hard disk is a bottleneck here? Crappy 5400 rpm laptop disk. Anyhow, it seems very promising!


    The initial kernal initialisation slowdown is a tradeoff again binaries loading much quicker on your desktop - it's not just about boot-time!!

    Here is how I do e4rat the slow manual way: I use bash scripts to do the following...

    # sudo nano /etc/rc.conf {uncomment rc_interactive="NO"}
    # sudo nano /etc/e4rat.conf {uncomment timeout 240} [SET COLLECTION TIME TO 240 seconds]
    # sudo rm /var/lib/e4rat/startup.log [REMOVE OLD LOG]

    reset grub/lilo to e4rat-collect {init=/sbin/e4rat-collect} [INSTRUCT E4RAT TO COLLECT DATA]

    reboot to default desktop

    Run all your default programs once within the alloted 240 seconds, libreoffice, firefox, gimp ... Wait for 240 seconds to finish.
    comment out grub/lilo e4rat instructions {#init=/sbin/e4rat-collect}
    # sudo rc-update del xdm default [BOOT TO TERMINAL]

    reboot to terminal

    # sudo e4rat-realloc /var/lib/e4rat/startup.log [WAIT FOR COMPLETION : IGNORE ALL WARNINGS!!]
    reset grub/lilo to e4rat-preload {init=/sbin/e4rat-preload} [INSTRUCT E4RAT TO PRELOAD DATA ON BOOT]
    # sudo rc-update add xdm default

    reboot to desktop and all done and zoom zoom :-)
Back to top
View user's profile Send private message
ultraslinky
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 80
Location: Milan, Italy

PostPosted: Mon Feb 13, 2012 8:19 pm    Post subject: Reply with quote

Wow, thanks BigBox37 for the clear instructions :) I think you forgot to switch to runlevel 1, like described in the wiki, but maybe it isn't necessary after all?

I'm going to bed now so I will try this tomorrow morning. Yeah i do notice about my Gentoo box that first time actions, like first time opening start menu, first time opening Chromium, they are slow. So i will do all those actions in e4rat's 240 seconds and see the results. Bis morgen :)
Back to top
View user's profile Send private message
BigBox37
n00b
n00b


Joined: 25 Dec 2010
Posts: 23

PostPosted: Tue Feb 14, 2012 3:49 am    Post subject: Reply with quote

ultraslinky wrote:
Wow, thanks BigBox37 for the clear instructions :) I think you forgot to switch to runlevel 1, like described in the wiki ...


Switching to run level 1 is the same thing as booting to a terminal - all i am doing here is manually rebooting rather than switching to a terminal from a desktop environment (in an attempt to make it clearer how this process works). :wink:

The instructions above will accomplish everything you need to utilise e4rat's super speed. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum