Skip to content

u/extra_

In this archive from Dec 2013 to Apr 2015

0
posts
19
comments
0
media
74
score

I have my laptop setup with LVM on top of a LUKS encrypted partition. I just have one giant root partition inside LVM (so full disk encryption, including /boot).

What is neat is that GRUB can actually handle the decryption, so you don't need to separate out /boot somewhere (unless you want to put it on a USB...but that added hassle isn't worth a slight increase in security, for me).

This blog post helped me get it working.

2 points

Everyone here is recommending an ssh agent (and that will probably work), but here is an alternative that is imo simpler: SSH ControlMaster. What the following config options will do is actually cache/keep open all SSH connections for however long you specify (Google it for a better/more detailed explanation).

# add this to ~/.ssh/config
Host *
    ControlMaster Auto
    ControlPath ~/.ssh/cm/%r@%h:%p
    ControlPersist 10m

If you don't want this enabled for all of your ssh connections, change the "*" above to "github.com". Also change the "10m" to however long you think is appropriate. So instead of caching your credentials, this persists the connection. (As a side effect, if you don't push/pull anything for a while you will see a timeout message, but this can be ignored. Simply means that next time you push/pull you will need to login again.)

4 points

Edit: After some digging and learning a bit more about bash substring removal, I've found the problem. This line of code tries to match everything after the first double space in the date/filename string.

Your locale formats the date string with a double space before PHT. After checking my locale string, it does not have any double spaces (it just ends in " EST 2014"). It seems that they only expected there to be a double space between the date string and filename, not inside the date string itself.

Edit2: As for fixing this problem, I'm not really sure. See my comment below.

2 points

Mine is pretty minimal...though chromium adds 5-10 more processes.

 PID TTY      STAT   TIME COMMAND
 1782 ?        Ss     0:00 /usr/lib/systemd/systemd --user
 1783 ?        S      0:00 (sd-pam)
 1785 ?        S      0:00 bspwm
 1796 ?        S      0:00 compton
 1798 ?        S      0:00 urxvtd
 1799 ?        S      0:00 sxhkd
 1874 ?        Ss     0:00 urxvt
 1875 pts/0    Ss     0:00 bash
 1876 pts/0    Rl+    0:01 weechat
 1896 ?        Ss     0:00 urxvt
 1897 pts/1    Ss     0:00 bash
 1914 pts/1    R+     0:00 ps x
1 points

Taking a guess here, the problem is that you're logging into GitHub via public key credentials but when you 'sudo su' to get into '/srv/http' you're now accessing root's public keys and none of them are in your GitHub account.

Edit: So to resolve, you should probably generate a new key pair for root & add it to your GitHub account.

Edit Edit: Do what /u/Katana__ said.

7 points

The way device naming works is kind of arbitrary with udev. So one way to find out which is which is to do something like 'fdisk /dev/sdb' or whatever and then see what it says about each partition type/size. But yes, also looking at drive sizes will tell.

In your case, you're trying to install Arch on a new SSD so that SSD will have no existing partitions on it. Then I'd say it is safe to assume sda is the correct one b/c it has no partitions.

1 points

I'm doing the same thing with my laptop. If you already have W7 installed, then just pop in your new SSD and run through this.

Assuming your new SSD is third, it will be something like:

/dev/sdc

So you'll just install arch onto that instead of /dev/sda (but check your drives to be sure, don't take my word for it).

To answer your question, yes, you can set the arch drive to 1st boot priority and then assuming you setup GRUB correctly, boot into W7 from there.

As for a file system, you probably just want to use ext4 and enable TRIM support (look in the wiki). If you have enough RAM 8gb (maybe?) you don't really need a swap partition, so honestly you can just create one giant root '/' partition on the SSD and leave it at that.

Edit: Also most of these questions are answered on the wiki, so try to search around there too for some useful insights. i.e. TRIM, Dual-boot, Partitioning.

4 points

End of this list.

Back to top

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.