Arch Linux tips 'n tricks
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
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
- dedanna1029
- Sound-Berserk
- Posts: 8780
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux tips 'n tricks
Ah, okay, thanks. We must've been in GMTA mode, at the same time. That's what I did, too.
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
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux tips 'n tricks
Ok I need to write this down:
To get a list over everything that is installed on your arch system type the following command in a terminal:
And when lightening strikes you can restore all of them like this;
.
Making it a cron job that runs just before the backup cron with our excellent backup script, gives you the home directory and the programs from the same time.
To get a list over everything that is installed on your arch system type the following command in a terminal:
Code: Select all
pacman -Qqe | grep -vx "$(pacman -Qqm)" > /path/to/chosen/directory/pkg.list
And when lightening strikes you can restore all of them like this;
Code: Select all
xargs -a /path/to/chosen/directory/pkg.list pacman -S --needed
Making it a cron job that runs just before the backup cron with our excellent backup script, gives you the home directory and the programs from the same time.
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!"
"There are no stupid questions - Only stupid answers!"
Re: Arch Linux tips 'n tricks
Here is an easy one.
To control your Daemons in Arch:
To start specific daemons:
etc etc
To control your Daemons in Arch:
Code: Select all
rc.d list
To start specific daemons:
Code: Select all
rc.d start samba tor sshd
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!"
"There are no stupid questions - Only stupid answers!"
Removing groups of software by name-content
I needed to remove anything containing gnome-shell on my laptop. If I do only
It will refuse to remove because of another package dependency and that package has dependencies again etc etc.
When I do a
It lists packages starting with gnome shell but the * will not work in pacman.
This will do it though:
This queries the database for anything containing "gnome-shell" (in this case) and removes it.
I always forget so I needed to write this down too
More here
Code: Select all
sudo pacman -Rns gnome-shell
When I do a
Code: Select all
ls gnome-shell*
This will do it though:
Code: Select all
sudo pacman -Rns $(pacman -Qq | grep gnome-shell)
This queries the database for anything containing "gnome-shell" (in this case) and removes it.
I always forget so I needed to write this down too
More here
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!"
"There are no stupid questions - Only stupid answers!"
- dedanna1029
- Sound-Berserk
- Posts: 8780
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux tips 'n tricks
viking60 wrote:Here is an easy one.
To start specific daemons:etc etcCode: Select all
rc.d samba tor sshd
OMG I love this one.
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
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux tips 'n tricks
Yes I constantly encourage people to write down some tips - How simple they might bee. The modesty and "everybody knows it" attitude is bad. I don't know everything that you might find to be elementary. So don't wait for the help cry Gurus!
I don't even know how to ask
I don't even know how to ask
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!"
"There are no stupid questions - Only stupid answers!"
Re: Arch Linux tips 'n tricks
To list all installations from AUR only:
Code: Select all
pacman -Qm
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!"
"There are no stupid questions - Only stupid answers!"
- dedanna1029
- Sound-Berserk
- Posts: 8780
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux tips 'n tricks
viking60 wrote:To list all installations from AUR only:Code: Select all
pacman -Qm
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
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
- dedanna1029
- Sound-Berserk
- Posts: 8780
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux tips 'n tricks
viking60 wrote:To get a list over everything that is installed on your arch system type the following command in a terminal:Code: Select all
pacman -Qqe | grep -vx "$(pacman -Qqm)" > /path/to/chosen/directory/pkg.list
And when lightening strikes you can restore all of them like this;.Code: Select all
xargs -a /path/to/chosen/directory/pkg.list pacman -S --needed
Also, thank you! The wiki has the first command wrong! I've been trying this for ages their way, to no avail!!!
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
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux tips 'n tricks
To install with wildcard:
This will install everything starting with gnome-shell with dependencies.
Just needed to write this down
Discussed here
Code: Select all
pacman -S $(pacman -Ssq gnome-shell*)
This will install everything starting with gnome-shell with dependencies.
Just needed to write this down
Discussed here
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!"
"There are no stupid questions - Only stupid answers!"
Man files to pdf
I find it useful to save some man pages as pdf especially those about network and connetions.
This will write man netcfg to a pdf file:
man -t will write the file in postscript format (via ps2pdf) that can be transfered to pdf.
if you do a the pdf file will be created but there will be no content.
This will write man netcfg to a pdf file:
Code: Select all
man -t netcfg -->netcfg.pdf
man -t will write the file in postscript format (via ps2pdf) that can be transfered to pdf.
if you do a
Code: Select all
man netcfg -->netcfg.pdf
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!"
"There are no stupid questions - Only stupid answers!"
Re: Arch Linux tips 'n tricks - space problems
When in space problems
Use ncdu -x / as root to see where space is taken.
Use pacman -Qdt to see orphan packages
Use bleachbit (AUR) to recover some
Use cacheclean (AUR) to limit # of old packages
Use pacgraph -c | less to
see which packages are largest disk users and ask yourself if you can do without them.
Use ncdu -x / as root to see where space is taken.
Use pacman -Qdt to see orphan packages
Use bleachbit (AUR) to recover some
Use cacheclean (AUR) to limit # of old packages
Use pacgraph -c | less to
see which packages are largest disk users and ask yourself if you can do without them.
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!"
"There are no stupid questions - Only stupid answers!"