Arch Linux tips 'n tricks

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Arch Linux tips 'n tricks

Postby viking60 » 14 Apr 2010, 23:34

Ok I am ready to throw some pearls again: In order to speed up boot time in Arch you can background your deamons.
Backgrounding is starting daemons without waiting for the previous one to finish. That can be made by putting an @ before each daemon's name in rc.conf. However, some daemons should be started before some others, such as hal before wicd. This is my DAEMONS array:

Code: Select all

DAEMONS=(syslog-ng @network netfs @crond @hal @networkmanager @kdm @portmap @fam @alsa @sshd @httpd @mysqld @webmin @proftpd @cups)


You can do this with any deamon except syslog-ng
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Arch Linux tips 'n tricks

Postby viking60 » 04 May 2010, 14:09

I just need to write this down somewhere so I thought this might be a good place. Install reflector.
To find the 8 most updated mirrors and to sort them by speed:

Code: Select all

# reflector -l 8 -r -o /etc/pacman.d/mirrorlist
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Arch Linux

Postby viking60 » 27 Jul 2010, 19:06

I like to keep my system clean so I tend to remove my orphans whenever I can. In Mandriva this was easy with urpme --auto-orphans or apt-get autoremove in Debian. In Arch it is easy to list them all with

Code: Select all

pacman -Qdt

This will give you a nice list over the orphans that are no longer needed by any application.
In my case that list was quite long so I did not want to remove them one by one, with pacman -Rs.
The solution is to combine the the two commands:

Code: Select all

pacman -Rs $(pacman -Qqdt)
This will list all your orphans and prompt you for deleting them.
Remember pacman -Qqtd will only list packages that are installed as a dependency - not if they in fact are needed as a dependency. (Better install things right!)

To clear the pacman cache you can do a

Code: Select all

pacman -Sc


(I needed to write this down too :D )
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Arch Linux tips 'n tricks

Postby viking60 » 03 Sep 2010, 02:36

OK I like pacman but it was necessary to maintain the repos there. I like yaourt because I can query anything there and install directly from AUR. To speed things up I got the tip to install powerpill. That did not replace yaourt but it sure did speed things up when upgrading a lot of files. I also integrated it in yaourt.
It might have speeded things up, there but I still had to wait a bit.
Having installed powerpill I could now install Bauerbill. It is based on powerpill and adds some of the functionality of yaourt.
And it is fast :s
Edit:
After having installed it I do not see anything brilliant yet about using it. so I installed packer too. That one does it.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Arch Linux tips 'n tricks

Postby dedanna1029 » 03 Sep 2010, 05:13

How did you integrate powerpill with yaourt? Curious.

Very nice tips, btw. Thank you. I'll be able to use some of these.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Arch Linux tips 'n tricks

Postby viking60 » 03 Sep 2010, 12:05

Edit /etc/yaourtrc

Code: Select all

sudo nano /etc/yaourtrc

And add the line:
PACMANBIN="/usr/bin/powerpill"

Like this: :A
# yaourtrc - Configuration for yaourt
#
# See yaourtrc(5) for more information
#
#
ABS_REPO=(testing core extra community-testing community gnome-unstable kde-uns$
#NOCONFIRM=0
#FORCE=0
#AUTOSAVEBACKUPFILE=0
#FORCEENGLISH=0
#EDITFILES=1
#AURCOMMENT=1
#DEVELBUILDDIR="/var/abs/local/yaourtbuild/"
#DEVEL=0
#NOENTER=1
#AURUPGRADE=0
#AURVOTE=1
#AURSEARCH=1
#TERMINALTITLE=1
#EXPORTDIR=""
#TMPDIR="/tmp"
#MAXCOMMENTS=5
#EDITOR="$EDITOR"
PACMANBIN="/usr/bin/powerpill"
#COLORMODE="normal"
#SHOWORPHANS=1
#DIFFEDITCMD="vimdiff"
#DETAILUPGRADE=1
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Arch Linux tips 'n tricks

Postby dedanna1029 » 03 Sep 2010, 17:14

Ooooooooo nice. Thank you!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Arch Linux tips 'n tricks

Postby viking60 » 01 Oct 2010, 18:35

I wanted to find out which programs that required PHP:

Code: Select all

pacman -Qi php |grep 'Required By'

Required By : phpmyadmin


Nice for removing bloat.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

HowTo disable IPv6

Postby viking60 » 05 Nov 2010, 14:03

IPv6 is using a lot of resources when activated so it might speed browsing up to disable it:
https://wiki.archlinux.org/index.php/IP ... the_Module

My browser was like a turtle on Pot and this fixed it!
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Arch Linux tips 'n tricks

Postby viking60 » 02 Apr 2011, 01:55

I just installed nessus:
https://wiki.archlinux.org/index.php/Nessus
Real useful security check there.
I had to download the Fedor Core 14 rpm package and yaourt did the rest.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: HowTo disable IPv6

Postby dedanna1029 » 02 Apr 2011, 03:15

viking60 wrote:IPv6 is using a lot of resources when activated so it might speed browsing up to disable it:
https://wiki.archlinux.org/index.php/IP ... the_Module

Which method there did you use?

May give Nessus a try... thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Arch Linux tips 'n tricks

Postby viking60 » 02 Apr 2011, 12:57

I altered /etc/modprobe.d/modprobe.conf

Code: Select all

# disable autoload of ipv6
alias net-pf-10 off
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"


Return to “Tips & Tricks”