Re: [Trisquel-users] Testing The Trisquel 8 Upgrade Process

2017-12-31 Thread amrprznu
I hope that this helps: https://3g2upl4pq6kufc4m.onion/?q=grub+boot+iso (it  
will if you are using Tor with your browser)


Re: [Trisquel-users] Minifree's Libreboot X200 laptop comes with Trisquel pre-installed. Now with other keyboard layouts available, and free stickers

2017-12-31 Thread amrprznu

I did not mean to disrespect you. It was just a joke.


Re: [Trisquel-users] Minifree's Libreboot X200 laptop comes with Trisquel pre-installed. Now with other keyboard layouts available, and free stickers

2017-12-31 Thread amrprznu
As it often happens, a well-intended post is taken the wrong way. I guess it  
never happened to you... Sorry.


Re: [Trisquel-users] Minifree's Libreboot X200 laptop comes with Trisquel pre-installed. Now with other keyboard layouts available, and free stickers

2017-12-26 Thread amrprznu

F**k off. She is my girlfriend... right Leah? wink, wink!


Re: [Trisquel-users] Testing The Trisquel 8 Upgrade Process

2017-12-25 Thread amrprznu

I didn't have a problem. Did you check your  -m  (memory) parameter?


Re: [Trisquel-users] Testing The Trisquel 8 Upgrade Process

2017-12-25 Thread amrprznu

Yes, it helped. Thank you.


Re: [Trisquel-users] Trisquel development questions

2017-12-21 Thread amrprznu

.-*| In support of the community |*-.

Dear Trisquel,

You know that they don't let me hack with you at work anymore. They even  
pushed me to use M$ and Ma¢ crap. You also know that I am using another  
distro at home, because I just needed more recent software. But girl! I have  
found more love for you: having to build every single package for this new  
distro made me realise how much work is needed to keep a free GNU/Linux like  
you. So, I want you to know that in the little free time that I may have I  
will try to find the way to contribute to your development. If anyone ever  
overhears our conversation, I hope that they will have the time to outline a  
first of couple (or more) steps to follow.


For the uninformed: where do I start? Thanks.


Re: [Trisquel-users] Xfce 4.10 without display manager on trisquel 7

2014-08-08 Thread amrprznu
I don't have time to go through all the process right now (I will continue  
later), but basically, you have to do this (use with care, and let me know if  
it worked; more references will come):


Remove any display manager

Make sure there is no $HOME/.xinitrc (or that it sources /etc/X11/Xsession)

Install all of xfce4 that you like

Install lxpolikit (just to make sure)

Install libpam-ck-connector [as per https://wiki.debian.org/Xfce]

Add the following before pam_ck_connector.so
to /etc/pam.d/common-session [https://wiki.debian.org/Xfce] (disregard the  
lines with ---):

--- File begins ---
--- File continues ---
session   optional  pam_loginuid.so
--- File continues ---
session optionalpam_ck_connector.so nox11
--- File continues ---
--- File ends


Make sure that there is no ~/.bash_profile or ~/.bash_login


Create a $HOME/.profile [to be referenced]:
--- File begins ---
# ~/.profile: executed by the command interpreter for login shells.
# The login to a virtual terminal without a display manager is handled
# by upstart in Trisquel and Ubuntu by means of the /etc/init/ttyXX.conf
# files. These normally run getty (agetty) which "opens a tty port,
# prompts for a login name and invokes the /bin/login command"
# [man getty].
# This file is not read by bash(1), if ~/.bash_profile or
# ~/.bash_login exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
#
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi

# No display manager autologin with Xfce4
# Check that no display managers exist
if [ -f /usr/bin/startxfce4 ] &&\
   [ ! -f /etc/lxdm/lxdm.conf ] &&\
   [ ! -f /etc/xdg/lubuntu/lxdm/lxdm.conf ] &&\
   [ ! -f /etc/kde4/kdm/kdmrc ] &&\
   [ ! -d /etc/lightdm ] &&\
   [ ! -d /etc/gdm ]; then
[[ -z $DISPLAY  && $XDG_VTNR -le 2 ]] && exec startx -- vt$XDG_VTNR
fi
--- File ends ---


Create $HOME/.xsession [to be documented]:
--- File begins ---
if [ -f /usr/bin/startxfce4 ] &&\
   [ ! -f /etc/lxdm/lxdm.conf ] &&\
   [ ! -f /etc/xdg/lubuntu/lxdm/lxdm.conf ] &&\
   [ ! -f /etc/kde4/kdm/kdmrc ] &&\
   [ ! -d /etc/lightdm ] &&\
   [ ! -d /etc/gdm ]; then
ck-launch-session dbus-launch --exit-with-session startxfce4
fi;
--- File ends ---

May be (will check later) this to avoid permission issues other than  
mounting, suspend, hibernate and power off in  
/etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf [man  
pklocalauthority] (replace lisa or marge for your username, see manual of  
polkit):

[Configuration]
AdminIdentities=unix-user:lisa;unix-user:marge


And that's the penguin!


[Trisquel-users] Xfce 4.10 without display manager on trisquel 7

2014-08-08 Thread amrprznu

Fellows,

I only found this: https://trisquel.info/en/forum/trixquel-trisquel-con-xfce
which is in Spanish and is blocked. I want to share how I manged to do this,  
and I don't know if I should make a new manual for it. So, I will show it in  
the next post, just in case that I have to change something. Let me know if  
this is the right way to post this info, or I should create the manual.


Re: [Trisquel-users] How can I remaster Trisquel?

2014-08-02 Thread amrprznu

https://trisquel.info/en/wiki/customizing-trisquel-iso


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-14 Thread amrprznu
turns out that if you run update-initramfs -d -k «version» (in my case  
"a"), it deletes it completely. Then, I just removed every other file. Thanks  
again!


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-14 Thread amrprznu
I don't know why or how, but I go a strange initrd.img-a in /boot/. I tried  
removing it as root, but every time I run update-initramfs -u -k all it comes  
back from the dead. Any ideas? Should I open a new discussion about this?


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-14 Thread amrprznu

Lessons to be learnt:
1) initramfs is in charge of loading modules, scripts and hooks into the  
initrd.img files. These are files containing the kernel.
2) if you get to busybox because your kernel was not loaded, don't panic, you  
just probably only need the appropriate modules, scripts and hooks (check How  
to solve boot problems with Ubuntu after kernel upgrade:  
www.dedoimedo.com/computers/ubuntu-initrd-bug.html).
3) you need to do a chroot environment with the required modules and  
decrypting your dm-crypt or LUKS partition  
(https://trisquel.info/en/forum/grub-cryptsetup-not-booting-after-kernel-update#comment-40597)
4) just to make sure, purge cryptsetup (aptitude purge cryptsetup  
cryptsetup-bin libcryptsetup4) and reinstall (aptitude install cryptsetup  
cryptsetup-bin+M libcryptsetup4+M)
5) just to make sure, try installing another kernel or purge and reinstall  
the one you have now (I'm not giving instructions for this in case you are a  
newbie, and want to take it easy, but if you really dare use aptitude search  
'~ilinux' --disable-columns -F '%p' | grep `image\|headers' to see which ones  
are installed)
6) use the name for the current unencrypted partition (I used "root" in step  
3: cryptsetup luksOpen "$encpart" root) and modify your /etc/crypttab so that  
it says something like (le'ts say I used root):

root UUID= none luks

(to get the UUID you can type blkid). You are free to check the man-pages of  
crypttab: man crypttab

7) make sure that you have an according entry in /etc/fstab
/dev/mapper/root0 1

, 


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-14 Thread amrprznu

Following four things:
1) Your advice

2) Linux Encrypted Filesystem with dm-crypt - FrontPage - CentOS ...
wiki.centos.org/HowTos/EncryptedFilesystem

3) How to configure LVM & LUKS to autodecrypt partition? - AskUbuntu
www.askubuntu.com/ questions/ 59487/  
how-to-configure-lvm-luks-to-autodecrypt-partition


4) Encrypt an existingDebianGNU/Linuxinstallation with LUKS
ada.adrianlang.de/existing-debian-luks

I changed /etc/crypttab to look something like this:
root UUID= none luks

and my /etc/fstab now contains
/dev/mapper/root  /  ext4  errors=remount-ro  0  1

I should say that I tried another value in the crypttab (instead of root),  
but it didn't work when I tried update-initrafms -u -k a. I kept getting  
messages from cryptsetup not knowing how to deal with it:

update-initramfs: Generating /boot/initrd.img-3.5.0-36-generic
device-mapper: table ioctl failed: No such device or address
Command failed
cryptsetup: WARNING: failed to determine cipher modules to load for cryproot

I think that it might have to do with me doing this in busybox:
(initramfs) cryptsetup luksOpen /dev/sda5 root
(initramfs) lvm
lvm> vgchange -a y Lap
lvm> CTRL+D
(initramfs) CTRL+D

I have no clue

I also used the advice from (4) and installed qemu:
aptitude install qemu-system xtightvncviewer

And ran the image on a virtual machine:
sudo qemu-system-x86_64 -hda /dev/sda -vnc :0 &
sudo vncviewer localhost

I am now worried about my keyboard distribution, because the disk is not  
un-encrypted in the virtual machine, and it even complains about some .


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-14 Thread amrprznu
The part_msdos and changing set root='(hd0,msdos1)' to set  
root='(hd0,msdos5)' didn't work. I guess that the root partition has to be  
the boot partition for the menuentry for some reason.


I installed the busybox package from repo and uninstalled busybox-static. It  
didn't help. Then, I uninstalled busybox again and put back busybox-static,  
and the error message was gone in the busybox shell, but I was still dropped  
into it.
I am pretty sure that this has something to do with initramfs, but I can't  
get what it is.


Any ideas on how to get the manual procedure from above (comment #15:  
https://trisquel.info/en/forum/grub-cryptsetup-not-booting-after-kernel-update#comment-40635)  
automatically run at boot?


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu

Nice! Thanks! Now I will take over your computer lulz!

Guess what? in busybox:

(initramfs) cryptsetup luksOpen /dev/sda5 root_disk
(initramfs) lvm
lvm> vgchange -a y Lap
lvm> CTRL+D
(initramfs) CTRL+D

...and I'm writing to you now! (I don't remember if I mounted something).  
Anyhow, I can work now, and I will continue to fix this a little bit later.  
May be it's the part_msdos and the set root='(hd0,msdos5)' that I'm missing.


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu
The modules are there: aes, xts, dm_crypt (after doing cat /proc/modules),  
but it doesn't work. My last try: tweaking grub.cfg, because it seems that  
the cryptdevice thing is before the root=


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu

go to →
https://trisquel.info/en/forum/grub-cryptsetup-not-booting-after-kernel-update#comment-40620


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu
I tried by adding the modules into the /etc/initramfs-tools/modules (man  
initramfs.conf)


echo -e "crypto\nxts\n\ndm-crypt\naes" >> /etc/initramfs-tools/modules


and by modifying the /etc/default/grub file a little (  
https://wiki.archlinux.org/index.php/GRUB#Root_encryption
https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS#Kernel_parameter_configuration_of_the_bootloader  
) like this:

[... snip ...]
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda5:cryptoroot"
[... snip ...]


so that I get /boot/grub/grub.cfg
[... snip ...]
linux   /vmlinuz-3.5.0-36-generic cryptdevice=/dev/sda5:cryptoroot  
root=/dev/mapper/Lap-root ro   splash quiet $vt_handoff

[... snip ...]

I also added  echo "insmod lvm"  to /etc/grub.d/00_linux , just in case.


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu
Well, I restarted, did the cat /proc/modules again in busybox, and dm_crypt  
is not there. It is in my initrd.img file (zcat /boot/initrd.img | cpio -t)


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu

Yes, that is done already. Back-up ready to f**k everything else to the sky.


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu
1) I hadn't done the update-grub, I only did the update-initramfs -u -k all.  
Now that I do it, it says:

Generating grub.cfg ...
cat: /boot/grub/video.lst: No such file or directory
grub-probe: error: no such disk.
done

2) Yes, it is mounted and shown with blkid


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu
I just wanted the latest developments. I began this journey reading ArchWiki  
dm-crypt webpage (dm-crypt with LUKS - ArchWiki  
https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS ), and it said  
something about version 1.6. I saw that the version in the repos was 1.4, so  
I compiled it myself. Which was also a pain in the ass at the beginning. That  
is also why I decided to use checkinstall. I think that I got confused about  
the available options, like xts. I still don't know if the version in the  
repos has it.


Re: [Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-13 Thread amrprznu
Well, it seems that I shot myself in the foot. I compiled cryptsetup 1.6.1  
from a tar-ball in the official repo. I built it with checkinstall. What I  
never suspected is that my nice little thing does not provide the appropriate  
hooks for initramfs-tools, which you can find in:


(credits to:
Initramfs - Ubuntu Wiki
https://wiki.ubuntu.com/Initramfs )
/usr/share/initramfs-tools/hooks/

I haven't tested the solution, but I uninstalled my own cryptsetup package  
(which I donate under the advice of not using it very much) and re-installed  
the version in the repos. It automatically created the executables in the  
mentioned directory above.


Also, I managed to load the dm-crypt, aes and xts modules into my image by  
modifying /etc/initramfs-tools/modules

(inspiration from
Custom kernel, encrypt hook not working... help. [SOLVED]
https://bbs.archlinux.org/viewtopic.php?id=157246:)
echo -e "crypto\nxts\ndm-crypt\naes" >> /etc/initramfs-tools/modules

Which I think is not really needed after installing the official cryptsetup,  
but I think it would be useful for someone trying to debug ther initrd.img


Now, I will restart my computer, and see if it works! Wish me luck.

If someone would be so kind in telling me how to add the required things to  
my deb package or modify the current package to update it to version 1.6, I  
would appreciate it.


[Trisquel-users] grub + cryptsetup not booting after kernel update

2013-08-12 Thread amrprznu
ello, my boot is broken. I installed the new kernel (3.0.36?) last night with  
aptitude, but I run torsocks with it. It was late and I cancelled the thing  
(WRONG!). Before shutting down the computer with 'shutdown now' (and then  
pressing the power button), I did  'dpkg --configure -a'  '/usr/bin/aptitude  
install linux-image-' and had to come back from bed, because the laptop was  
not off. I pushed the power button, and went to sleep. This morning, grub is  
telling me that it can't find my root partition which is encrypted with  
dm-crypt (cryptsetup). For what I have read, this might have to do with  
initrd.img not loading the dm-crypt modules, but I don't know. I end up being  
in a busybox shell that tells me that root is not found (that is  
/dev/mapper/Lap-root).


I tried doing a chroot by first mounting the encrypted drive:
(credits go to
http://stephentanner.com/index.php/2011/05/restoring-grub-for-an-encrypted-lvm/
blog.lifebloodnetworks.com/?p=1348
)
modprobe dm-crypt;
cryptsetup luksOpen /dev/sda5 hd;
vgscan;
vgchange -a y system;
lvscan;
mount /dev/system/root /mnt && sudo mount /dev/sda1 /mnt/boot && sudo mount  
-o bind /dev /mnt/dev ; sudo mount -t proc proc /mnt/proc ; sudo mount -t  
sysfs sys /mnt/sys;

chroot /mnt;
grub-install /dev/sda;
update-grub


the blkid from liveCD shows:
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="5a07711e-189b-441f-a84c-774924575bb4" TYPE="ext2"
/dev/sda5: UUID="23020fcc-61ae-47f0-9215-a77a446b78c1" TYPE="crypto_LUKS"
/dev/sr0: LABEL="trisquel-mini 6.0 amd64" TYPE="iso9660"


the grub.cfg shows
...
search --no-floppy --fs-uuid --set=root 5a07711e-189b-441f-a84c-774924575bb4
linux   /vmlinuz-3.5.0-36-generic root=/dev/mapper/Lap-root ro   splash quiet  
$vt_handoff

...


zcat /mnt/grub/ | cpio -t | grep crypt
lib/modules/3.5.0-36-generic/kernel/drivers/block/cryptoloop.ko
lib/modules/3.5.0-36-generic/kernel/crypto
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_memcpy.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_pq.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_xor.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_tx.ko
lib/modules/3.5.0-36-generic/kernel/crypto/async_tx/async_raid6_recov.ko
lib/modules/3.5.0-36-generic/kernel/crypto/xor.ko

So... can someone help me? Should I give more info?


Thanks!