Skip to content

u/crayZsaaron

In this archive from Oct 2012 to Nov 2015

4
posts
38
comments
2
media
182
score

Top posts

A question regarding systemd services

Hello, I am attempting to write an extremely simple startup script that disables the pc speaker (mine is very loud and high-pitched) and runs startx. However, I think I'm having some trouble understanding how systemd's services work. I've read many of the man pages on systemd, but I still can't get...

10 points12 comments
Open on Reddit

Top comments

Don't fret! AUR can take a while to get used to. I like to keep an AUR folder in my home directory(/home/yourusername or just ~), where I download packages from the AUR.

Usually(always?), AUR packages come zipped in .tar.gz files. You can use

tar -zxvf aurpackagename.tar.gz

to unzip the package. That -zxvf might look scary, but it is just four simple flags for the tar program:

  • z specifies that you are going to use gzip to unzip the file (since it is a .gz file)
  • x specifies that you are extracting from the file
  • v is a common flag meaning verbose, meaning you'll get a lot of terminal output (which can often be helpful, but is usually not necessary)
  • f refers to file... and the -f flag needs an argument to tell it which file you are using, which you are specifying with aurpackagenamehere.tar.gz.

You might notice that the package name is really long and obnoxious to type. Luckily, you almost never have to type the full name of a file in bash. There is an autocomplete feature - if there is only one possible completion for what you have typed so far, you can hit Tab and it will complete the file/directory name for you. If there are multiple files/folders in the current directory that could match what you have typed, you can hit Tab twice and it will list all possible completions.

OR:

You can use the wildcard (*). This works in the following way: Say you have files in the current directory called My_AUR_Package-1.9.18 and My_Pineapple_Land-1.9.18 and you want to unzip the second file. You could use

tar -zxvf *Pin*

Because the wildcard basically means (0 or more random characters that could be anything). If instead you used

tar -zxvf *1.9.1*

both of the packages would go ahead and unzip, because both of the packages are possible matches for what you have typed.

Anyway, now that we got that out of the way, unzip your package and delete the whatever.gz file to clean up after yourself. Descend into the new directory that was created (cd thedirectory) and run

makepkg

Then, makepkg will read the PKGBUILD and make sure you have all the dependencies (if you are missing something, it will let you know, and you need to install that dependency and then come back to what you were doing) and... well, make the package. A tar.xz file will be created. All you have to do now is

sudo pacman -U whateverfile.tar.xz

and your package is now installed on your machine (provided everything was successful). The -U flag tells pacman that you are creating a package from a file on your machine (rather than from a repository). Hope this helps!!

P.S. the wildcard (*) can save you a LOT of time when you're working in bash. Learn how to use it efficiently, and all your wildest dreams will come true.

8 points

Install Gentoo... but maybe not on a 10-year-old laptop, as I did. My poor Dell Latitude D610 took over a day to compile libreoffice and chromium. Arch is much more suitable.

6 points

Echinus was the first window manager I tried for Arch, when I was still pretty much a noob. It was incredibly frustrating for me, as I didn't understand the concept of window manager vs. desktop environment, or that I could create a desktop environment out of a window manager and some separate software.

Now I'm using xmonad, which is basically echinus written in haskell and more tiling-focused. Coupled with xmobar, feh, and pseudo-transparent urxvt, it can be really gorgeous.

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.