Re: [gentoo-user] Gentoo on a Surface Pro 3?

2017-02-20 Thread Daniel Quinn
Well even if you can't figure it out, I'd be happy to do things manually 
if you open an issue on github for me with some instructions.  I know 
from experience what a pain in the ass git can be for first-timers ;-)



On 20/02/17 15:33, Daniel Frey wrote:

On 02/19/2017 09:40 AM, Daniel Quinn wrote:

On 30/01/17 08:24 PM, Daniel Frey wrote:

I acquired (on the cheap) a used Surface Pro 3 with the keyboard cover
off of a relative who wasn't using it (they said the screen was too

small.)

I am considering putting Gentoo (or attempting to) and am wondering if
anyone has had success.

It looks like newer kernels have some builtin support for the hardware.
Due to its form factor I will be setting up distcc to help with the
build process, and using -bin packages for monstrosities like firefox
and libreoffice.


I'm sorry that I didn't see this sooner, but I've been running on my SP3
now for about 2years.  I maintain a GitHub repo with kernel configs and
a installation manual, so if you'd like to give that a spin and submit
patches/ideas as they come, I'd be happy to merge them:

   https://github.com/danielquinn/Gentoo-Surface-Pro-3


Thanks,

After messing around manually with the kernel I found your .config, that
could've saved me a lot of time.

I have a .config for 4.9.6-r1 I believe. I've noticed some patches have
been partially applied in 4.9.6-r1 and will modify the patches
accordingly. If I can figure out how to use git I can send the updates.

Dan







Re: [gentoo-user] Gentoo on a Surface Pro 3?

2017-02-19 Thread Daniel Quinn
On 30/01/17 08:24 PM, Daniel Frey wrote:
> I acquired (on the cheap) a used Surface Pro 3 with the keyboard cover
> off of a relative who wasn't using it (they said the screen was too
small.)
>
> I am considering putting Gentoo (or attempting to) and am wondering if
> anyone has had success.
>
> It looks like newer kernels have some builtin support for the hardware.
> Due to its form factor I will be setting up distcc to help with the
> build process, and using -bin packages for monstrosities like firefox
> and libreoffice.


I'm sorry that I didn't see this sooner, but I've been running on my SP3
now for about 2years.  I maintain a GitHub repo with kernel configs and
a installation manual, so if you'd like to give that a spin and submit
patches/ideas as they come, I'd be happy to merge them:

  https://github.com/danielquinn/Gentoo-Surface-Pro-3



[gentoo-user] I'm missing key parts of GNOME

2017-01-13 Thread Daniel Quinn
So rather than install *all* of GNOME, I opted for setting `-extras` and
then just did an `emerge gnome`.  However, now that everything is
installed, I have two rather important features missing that I'm
wondering if I can install special without rolling in things like
evolution and trackers etc.

The two features are:

* The GNOME extensions plugin is missing from all of my browsers
* The keyboard settings are severely limited.  I can only change a few
hotkey combinations.  Repeat rate for example is gone.

To be honest, I'm not even sure that this is a result of missing the
extras as I'm pretty sure both of these features were there when I did a
fresh install a few months ago (I did after all install a bunch of
extensions at that point that continue to work today)  However things
appear to have gone awry since the update to 3.22.

Any insight on this would be appreciated.



Re: [gentoo-user] Anyone else having trouble with x11-libs/cairo?

2016-12-06 Thread Daniel Quinn
For those who might stumble across this in the future, iamben helped me
out with this on IRC and the solution was rather annoying.

I had symlinked /usr/bin/lolcat to /usr/local/bin/cat

Apparently, somewhere in the stack of things that go on when compiling
x11-libs/cairo, `cat` was used and however it was use conflicted with
the would-be drop-in replacement games-misc/lolcat.

So kids, let this be a lesson to you.  Some drop-in replacements, no
matter how fun, can be mighty unkind to your sanity in the long run.



On 02/12/16 20:21, Mick wrote:
> On Friday 02 Dec 2016 09:57:14 Daniel Quinn wrote:
>> Well the only difference between the output of `emerge -pv
>> x11-libs/cairo` on your machine vs. mine is that you appear to be
>> building 64 and 32 bit:
>>
>> mine: `ABI_X86="64 -32 -x32"`
>> yours: `ABI_X86="64 32 -x32"`
>>
>> As for the global setting for `threads`, I have it enabled, but isn't
>> that a good thing?  Should I disable threads globally?  I removed it
>> from make.conf and cairo still won't build, but that's unsurprising,
>> since the build makes no mention of that USE flag.
>>
>> # emerge --info | grep threads
>> USE="X a52 aac acl acpi aes alsa amd64 avx avx2 berkdb bluetooth
>> branding bzip2 cairo cdda cdr cli colord cracklib crypt cxx dbus dri dts
>> dvd dvdr eds emboss encode evo exif fam firefox flac fma3 fortran fuse
>> gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer
>> gtk iconv introspection ipv6 jpeg lcms libnotify libsecret mad matroska
>> mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses
>> networkmanager nls nptl offensive ogg ogm opengl openmp pam pango pcre
>> pdf png policykit popcnt ppds pulseaudio qt3support readline sdl seccomp
>> session spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3
>> startup-notification svg systemd tcpd theora threads tiff truetype udev
>> udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis vpx x264
>> x265 xattr xcb xml xpm xv xvid xvmc zlib" ABI_X86="64"
>> ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
>> emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
>> intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
>> APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias
>> auth_basic authn_alias authn_anon authn_dbm authn_default authn_file
>> authz_dbm authz_default authz_groupfile authz_host authz_owner
>> authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir
>> disk_cache env expires ext_filter file_cache filter headers include info
>> log_config logio mem_cache mime mime_magic negotiation rewrite setenvif
>> speling status unique_id userdir usertrack vhost_alias"
>> CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon
>> braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load
>> memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext
>> popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc"
>> GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
>> gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
>> rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx"
>> INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en"
>> LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
>> ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
>> presenter-minimizer" LINGUAS="en_GB en"
>> OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6"
>> PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4"
>> RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia"
>> XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p
>> iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark
>> dhcpmac delude chaos account"
> euse and 'equery hasuse' show me that threads are not enabled globally on my 
> machine, but boost sets IUSE="+threads" in the ebuild.
>
> HTH.




Re: [gentoo-user] Anyone else having trouble with x11-libs/cairo?

2016-12-02 Thread Daniel Quinn
Well the only difference between the output of `emerge -pv
x11-libs/cairo` on your machine vs. mine is that you appear to be
building 64 and 32 bit:

mine: `ABI_X86="64 -32 -x32"`
yours: `ABI_X86="64 32 -x32"`

As for the global setting for `threads`, I have it enabled, but isn't
that a good thing?  Should I disable threads globally?  I removed it
from make.conf and cairo still won't build, but that's unsurprising,
since the build makes no mention of that USE flag.

# emerge --info | grep threads
USE="X a52 aac acl acpi aes alsa amd64 avx avx2 berkdb bluetooth
branding bzip2 cairo cdda cdr cli colord cracklib crypt cxx dbus dri dts
dvd dvdr eds emboss encode evo exif fam firefox flac fma3 fortran fuse
gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer
gtk iconv introspection ipv6 jpeg lcms libnotify libsecret mad matroska
mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses
networkmanager nls nptl offensive ogg ogm opengl openmp pam pango pcre
pdf png policykit popcnt ppds pulseaudio qt3support readline sdl seccomp
session spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3
startup-notification svg systemd tcpd theora threads tiff truetype udev
udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis vpx x264
x265 xattr xcb xml xpm xv xvid xvmc zlib" ABI_X86="64"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias
auth_basic authn_alias authn_anon authn_dbm authn_default authn_file
authz_dbm authz_default authz_groupfile authz_host authz_owner
authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif
speling status unique_id userdir usertrack vhost_alias"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon
braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load
memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext
popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx"
INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
presenter-minimizer" LINGUAS="en_GB en"
OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6"
PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4"
RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p
iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark
dhcpmac delude chaos account"




[gentoo-user] Anyone else having trouble with x11-libs/cairo?

2016-12-01 Thread Daniel Quinn
I just won’t build for me and my research on the forums and BGO keeps 
turning up very old bugs that don’t really feel like they apply to my 
case exactly.


What’s happened so far:

 * I installed a complete GNOME/systemd system with no trouble (~amd64)
 * This installation included a perfect emerge of x11-libs/cairo
 * About a month later, I’ve been doing “emerge -auDN @world” every
   other day or so, and suddenly cairo needs to rebuild, and now it
   fails with a long slew of errors:

|In file included from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-type-private.h:45:0, 
from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-scaled-font-private.h:45, 
from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairoint.h:422, 
from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-atomic.c:34: 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-impl-private.h:262:3: 
error: #error "XXX: No mutex implementation found. Cairo will not work 
with multiple threads. Define CAIRO_NO_MUTEX to 1 to acknowledge and 
accept this limitation and compile cairo without thread-safety support." 
# error "XXX: No mutex implementation found. Cairo will not work with 
multiple threads. Define CAIRO_NO_MUTEX to 1 to acknowledge and accept 
this limitation and compile cairo without thread-safety support." ^ In 
file included from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-type-private.h:45:0, 
from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-scaled-font-private.h:45, 
from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairoint.h:422, 
from 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-atomic.c:34: 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-impl-private.h:271:11: 
error: unknown type name ‘cairo_mutex_impl_t’ typedef cairo_mutex_impl_t 
cairo_recursive_mutex_impl_t; ^  
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-type-private.h:161:9: 
error: unknown type name ‘cairo_mutex_impl_t’ typedef cairo_mutex_impl_t 
cairo_mutex_t; ^ 
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-botor-scan-converter.c:2076:1: 
warning: ‘botor_add_edge’ defined but not used [-Wunused-function] 
botor_add_edge (cairo_botor_scan_converter_t *self, ^ make[3]: *** 
[Makefile:2352: cairo-botor-scan-converter.lo] Error 1 make[3]: Leaving 
directory 
'/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6-abi_x86_64.amd64/src' 
make[2]: *** [Makefile:1950: all] Error 2 make[2]: Leaving directory 
'/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6-abi_x86_64.amd64/src' 
make[1]: *** [Makefile:906: all-recursive] Error 1 make[1]: Leaving 
directory 
'/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6-abi_x86_64.amd64' 
make: *** [Makefile:757: all] Error 2 |


The digging I do online mentions something about custom LDFLAGS, but 
since I don’t even know what those are, I’m thinking that’s not it. I’m 
not running any special overlays, but I am running a complete ~amd64 
installation. I’ve try running |revdep-rebuild| (nothing to do) and 
|emerge @preserved-rebuild| just loops in cairo and explodes again.


Anyone have some tips to get me through this?

​


Re: [gentoo-user] GTK+ circular dependency

2016-10-13 Thread Daniel Quinn
> Because the ebuild says so. The question you should be asking is "why",
> especially as none of the other gtk+ ebuilds contain this DEPEND. And
> that's a question that is probably best asked on b.g.o.

Sorry, but what's "b.g.o."?  Are you saying that this might be a bug?



Re: [gentoo-user] GTK+ circular dependency

2016-10-13 Thread Daniel Quinn
On 13/10/16 02:36, wabe wrote:
> Since the update process is dead slow anyway and I really don't care
about a few minutes less ore more, I always use --backtrack=999.

Unfortunately yes.  I took your advice just now and it's still
complaining about circular dependencies.  Maybe I'm missing something,
but how can gtk+ *depend* on gtk-engines-adwaita?



[gentoo-user] GTK+ circular dependency

2016-10-12 Thread Daniel Quinn
Have any of you seen this before?  This is on a fresh install.  I can't
get anything GNOME-based to install as it looks like gnome-keyring is
bringing in an older version of gtk+ which somehow depends on
gtk-engines-adwaita which in turn depends on gtk+.

Details:
* ACCEPT_KEYWORDS="~amd64"
* Profile: gnome/systemd
* No additional USE flags.



# emerge -auDN --keep-going --with-bdeps=y @world

These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge   ] app-crypt/libsecret-0.18.5::gentoo  USE="crypt
introspection -debug {-test} -vala"
[nomerge   ]  gnome-base/gnome-keyring-3.20.0::gentoo  USE="caps
filecaps pam ssh-agent (-selinux) {-test}"
[nomerge   ]   app-crypt/pinentry-0.9.7-r1::gentoo 
USE="gnome-keyring gtk ncurses -caps -emacs -qt4 -qt5 -static"
[nomerge   ]x11-libs/gtk+-2.24.31-r1:2::gentoo
[3.20.9:3::gentoo] USE="introspection vim-syntax (-aqua) -cups -examples
{-test} -xinerama" ABI_X86="(64) -32 (-x32)"
[ebuild  N ] x11-themes/gtk-engines-adwaita-3.20.2::gentoo 
ABI_X86="(64) -32 (-x32)" 2,812 KiB
[ebuild  NS]  x11-libs/gtk+-2.24.31-r1:2::gentoo
[3.20.9:3::gentoo] USE="introspection vim-syntax (-aqua) -cups -examples
{-test} -xinerama" ABI_X86="(64) -32 (-x32)" 12,506 KiB
[ebuild  N ]   app-crypt/gnupg-2.1.15::gentoo  USE="bzip2 gnutls nls
readline usb -doc -ldap (-selinux) -smartcard -tofu -tools" 5,590 KiB
[ebuild  N ]app-crypt/pinentry-0.9.7-r1::gentoo 
USE="gnome-keyring gtk ncurses -caps -emacs -qt4 -qt5 -static" 423 KiB
[ebuild  N ]  gnome-base/gnome-keyring-3.20.0::gentoo  USE="caps
filecaps pam ssh-agent (-selinux) {-test}" 1,187 KiB
[nomerge   ] sys-apps/openrc-0.22.2::gentoo  USE="ncurses netifrc
pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs -tools"
[ebuild   R]  sys-auth/pambase-20150213::gentoo  USE="cracklib
gnome-keyring* nullok sha512 systemd (-consolekit) -debug -minimal
-mktemp -pam_krb5 -pam_ssh -passwdqc -securetty (-selinux)" 4 KiB

Total: 6 packages (4 new, 1 in new slot, 1 reinstall), Size of
downloads: 22,519 KiB

 * Error: circular dependencies:

(x11-libs/gtk+-2.24.31-r1:2/2::gentoo, ebuild scheduled for merge)
depends on
 (x11-themes/gtk-engines-adwaita-3.20.2:0/0::gentoo, ebuild scheduled
for merge) (runtime)
  (x11-libs/gtk+-2.24.31-r1:2/2::gentoo, ebuild scheduled for merge)
(buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.




Re: [gentoo-user] How to find the EFI partition?

2016-10-12 Thread Daniel Quinn
On 12/10/16 19:15, Mick wrote:
> The OP can mount and have a look in those partitions for any efi
files, which
> would be a give away;  or in MSWindows 10, go to Start menu, press and
hold
> the Shift key, and click Restart. Then select Troubleshoot/Advanced
Options
> and check to see if there is an entry saying "UEFI Firmware Settings. 
If not,
> your MSWindows installation was an MBR based installation.

And that confirms it!  Thank you!  I'm definitely running an MBR-based
setup.



Re: [gentoo-user] Small computing recommendations?

2016-10-12 Thread Daniel Quinn
A while back I looked into a similar setup and was frustrated with the 
hacker-esque nature of these tiny machines.  They typically don't come 
with a case, sometimes not even with power, and getting a working Gentoo 
setup was likely going to be an effort I didn't want to spend.


So I ended up buying an Intel NUC: basically a tiny main board with a 
CPU in a small simple square case + ram (you pick) + a hard drive (SSD 
or HDD, you pick).  It has HDMI or VGA out, sound, a few USB ports and 
on-board ethernet as well.  Getting Gentoo up & running on it was 
painless once I turned of UEFI (it makes my head hurt).  Details on how 
I did it all was here: http://danielquinn.org/blog/gentoo-on-the-intel-nuc/


It'll cost you more than a Pi or some of the others, but it's basically 
a tiny, quiet, whole computer, so the hassle is probably greatly diminished.





Re: [gentoo-user] How to find the EFI partition?

2016-10-12 Thread Daniel Quinn

On 11/10/16 22:47, Alarig Le Lay wrote:
> As far as I know, you can’t use UEFI on a msdos partitioned hard drive.
> So… are you not just using an old but known and stable BIOS?

Honestly, that hadn't occurred to me.  The BIOS is fancy (lots of colour 
and supports a mouse!) and I thought that Windows 10 only worked with 
UEFI.  Alright, I'll proceed under the impression that I'm working with 
a standard BIOS and write Grub to the MBR as in the Old Days.  Thanks 
for the clarity on this.




[gentoo-user] How to find the EFI partition?

2016-10-11 Thread Daniel Quinn
I just bought the prettiest desktop there ever was and I'm having
trouble with the install.  I'm quite comfortable with a BIOS setup, but
UEFI is still making my brain hurt and Windows 10 co-existing on the
machine isn't helping.

Basically, I can't find where to tell Grub and everything else to look
for boot stuff.  On my laptop (Surface Pro), the machine came
partitioned (by Windows 8) to have an "EFI system partition".  So the
output of `parted` on my laptop looks like this:


Number  Start   End SizeFile system 
Name  Flags
 1  1049kB  379MB   377MB   ntfs Basic data
partition  hidden, diag
 2  379MB   588MB   210MB   fat32EFI system
partition  boot, esp
 3  588MB   722MB   134MBMicrosoft reserved
partition  msftres
 4  722MB   53.2GB  52.4GB   Basic data
partition  msftdata
 5  53.2GB  256GB   203GB   ext4
 6  256GB   256GB   16.1MB


However, my new desktop came pre-installed with Windows 10 and there's
no EFI system partition on either of the drives:


# parted /dev/nvme0n1
GNU Parted 3.2
Using /dev/nvme0n1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Unknown (unknown)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   EndSize   Type File system  Flags
 1  1049kB  106MB  105MB  primary  ntfs boot
 2  106MB   354GB  354GB  primary  ntfs
 4  354GB   512GB  157GB  primary  ext4
 3  512GB   512GB  524MB  primary  ntfs diag


# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA WDC WD4002FFWX-6 (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End SizeFile system 
Name  Flags
 1  17.4kB  134MB   134MBMicrosoft reserved
partition  msftres
 2  135MB   4001GB  4001GB  ext4 Basic data
partition  msftdata


Note that all I did to the partitioning scheme above was:

* Shrink partition #3 on the first disk and create a new one in the
vaccuum (ext4) for Gentoo
* Delete partition #2 on the second disk (it was empty ntfs) and replace
it with one big ext4.

So what do I tell grub and the kernel to use for boot information?  The
handbook mentioned that there were differences between gpt and msdos
partition setups, but the machine came this way, setup with msdos on the
first disk and I'd rather not blow away all 300GB of Windows on a
hunch.  Do any of you have experience with this?  Some guidance here
would be super.




Re: [gentoo-user] Emerge is confusing me

2016-10-03 Thread Daniel Quinn
On 03/10/16 21:39, Neil Bothwick wrote:
> You haven't told us the command that produced this output. Is this a
> world update or and you trying to update Bash separately?

Sorry, it was part of a world update:

emerge --ask --update --deep --changed-use --keep-going
--quiet-build --with-bdeps=y --verbose @world

> You could also use the --tree option. Are you using arch or ~arch, or a
> mixture of the two?

I'm using full ~arch with the exception of chromium and libreoffice (to
keep the updates to a minimum).

>From the gist of the responses though, it sounds like I should just add
bash to that list, so that's what I've done and the problem has gone
away :-)  I hope the other packages catch up in time for when Bash
stabilises.



[gentoo-user] Emerge is confusing me

2016-10-03 Thread Daniel Quinn
Could someone help explain this emerge output to me?

>From what I can tell, it looks like Bash has a new requirement that's
not playing nice with 17 other packages on my system.  What's the best
work around for this?  Should I just mask Bash 4.4?



!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-libs/readline:0

  (sys-libs/readline-6.3_p8-r2:0/0::gentoo, installed) pulled in by
>=sys-libs/readline-5.2:0/0= required by
(sys-block/parted-3.2-r1:0/0::gentoo, installed)
  
^   

 
(and 16 more with the same problem)

  (sys-libs/readline-7.0:0/7::gentoo, ebuild scheduled for merge) pulled
in by
>=sys-libs/readline-7.0_rc2:0= required by
(app-shells/bash-4.4:0/0::gentoo, ebuild scheduled for merge)
^^ 
^^  

 

NOTE: Use the '--verbose-conflicts' option to display parents omitted above




Re: [gentoo-user] 2000 emails - printing, sorting by date

2016-08-17 Thread Daniel Quinn

I’m a Python guy, so my answer to this would be "use Python" :-)

[The ReportLab 
library](https://www.reportlab.com/docs/reportlab-userguide.pdf) is 
extremely powerful and can be used to generate a PDF for every email or 
a pdf for all emails.  I've not used it myself, but I hear it's very good.


That’s the hard part really. Outside of that, you’d just use something 
like this:


```python
import os
from email import policy
from email.parser import BytesParser

maildir = "/path/to/maildir"
messages = []

for mail in os.listdir(maildir):
with open(os.path.join(maildir, mail)) as f:
raw = f.read()
message = BytesParser(policy=policy.default).parsebytes(f.read())
if "some...@somedomain.com" in raw:
messages.append(message)
```

Once you've created a collection of email objects, you can use the 
powers of the email module to easily parse out the bits you want. You 
can take a look at some code I wrote that does just that 
[here](https://github.com/UKTradeInvestment/barbara/blob/master/interactions/mail.py#L27). 
Once you've parsed the message, you can then sort your list based on the 
date.  Something like this:


```python
messages.sort(key=lambda _: _["Date"])
```

At that point you have a sorted list of email objects which you can then 
use ReportLab to generate a PDF.


Good luck :-)


[gentoo-user] How to stop ls from quoting output

2016-05-03 Thread Daniel Quinn
Some time ago after an update |ls| started returning output that looked
like this:

|8hOk25T.jpg 'Janeway Wallpaper-iPhone.png' 'Screenshot from 2016-04-06
16-15-15.png' microsoft.png 'Away mission Wallpaper-iPhone.png'
'Screenshot from 2016-03-18 14-29-06.png' 'Screenshot from 2016-04-07
11-29-02.png' gcal.png |

Note that some of the files have a single quote (‘) surrounding them,
and others don’t. I understand that this makes things easier to do stuff
like

|for f in $(ls /path/to/whatever); do something; fi |

But since I do that a lot less than I just do this:

|ls -l |

I’d like to revert to the old way so my eye isn’t jumping left & right
all the time.

I see that I can just write an alias:

|alias ls="ls --quoting-style=literal" |

But I’d hate to do that if the default is “literal” and there’s some
config installed somewhere that’s changing this. Does anyone have some
information regarding whether this is a new default upstream or if a
Gentoo package was somehow modified to do this?

​


Re: [gentoo-user] Preserving the initial partionin/formatting of an usbstick

2016-03-30 Thread Daniel Quinn
On 29/03/16 17:18, meino.cra...@gmx.de wrote:

The usbstick I want to make an initial backup is 64GB of size.
That means, I will backup mostly zeroes.

You could just use dd to take a full backup and then compress it. If it
is indeed mostly zeros it’ll compress very well:

|# dd if=/dev/usbstick | xz > usb.xz |

Of course you can use bzip, lbzip, gzip, etc. instead of xz too.

​


Re: [gentoo-user] (Free|Open|Strong)Swan and Gentoo as a client

2016-02-19 Thread Daniel Quinn
The problem is that the names of the fields on iThings are different
from the fields I see in NetworkManager, so I don’t know what correlates
to what.

I have just uninstalled libreswan and installed strongswan, but I can’t
find evidence of a networkmanager plugin for strongswan in Portage. |eix
stronswan| only returns one record: |net-misc/strongswan|, which is
installed. Can I use it without NetworkManager while using
NetworkManager for basic connectivity?

Here’s the .mobileconfig file, with the juicy-bits redacted:

| http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
PayloadDisplayName My IKEv2 VPN Profile  PayloadIdentifier REDACTED  PayloadUUID REDACTED
PayloadType Configuration
PayloadVersion 1 PayloadContent
PayloadIdentifier
REDACTED  PayloadUUID REDACTED
PayloadType com.apple.vpn.managed
PayloadVersion 1 
UserDefinedName My IKEv2 VPN
VPNType IKEv2 IKEv2   RemoteAddress
REDACTED  RemoteIdentifier
REDACTED 
LocalIdentifier  
OnDemandEnabled 1 OnDemandRules
  Action Connect 
 
AuthenticationMethod SharedSecret
SharedSecret REDACTED 
ExtendedAuthEnabled 0  AuthName 

AuthPassword
  |

​


[gentoo-user] (Free|Open|Strong)Swan and Gentoo as a client

2016-02-19 Thread Daniel Quinn
Hello all, I’ve been asked to connect my Gentoo box to a StrongSwan VPN
and was offered a .mobileconfig file as means to connect. Unfortunately,
this appears to be a special-Apple-only-format and I can’t make heads or
tails of the contents. I understand that the server is Ubuntu running
StrongSwan using a shared secret, but that’s all I know at this point,
so my questions are:

  * Can I use NetworkManager (and as I understand it, LibreSwan) to
connect?
  o If so, how do I translate the fields in the .mobileconfig to
gateway, group name, user password, group password, user name,
phase 1 algorithms, phase 2 algorithms, and domain? (The fields
presented in GNOME’s NetworkManager dialogue for an OpenSwan VPN).
  * If I can’t (or shouldn’t?) use NetworkManager, what’s the right way
to handle this? Is there a utility for handling .mobileconfig files
in Linux?

​


Re: [gentoo-user] Modern Docker?

2016-02-18 Thread Daniel Quinn
Excellent idea!  I hadn't considered that, thank you.



[gentoo-user] Modern Docker?

2016-02-17 Thread Daniel Quinn
I tried to run a docker-compose.yaml file and it exploded with a version
error.  When I asked around about what I did wrong, it turns out that it
requires docker-compose version 1.6.x and Gentoo doesn't have anything
newer than 1.5.2.  Is there an official overlay for this sort of thing,
or do Gentooers do something else with Docker typically?



Re: [gentoo-user] OpenSSL blocking installation of GNOME

2016-02-03 Thread Daniel Quinn
Ugh, nevermind.  The
[howto](https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide) I was
following had me put `bindist` in the USE flags early in the process and
I didn't think twice about it.  I've removed it and everything is ok now.



[gentoo-user] OpenSSL blocking installation of GNOME

2016-02-03 Thread Daniel Quinn
I’m trying to install GNOME this morning on my new work laptop and it
fails out, complaining about OpenSSL:

|!!! Multiple package instances within a single package slot have been
pulled !!! into the dependency graph, resulting in a slot conflict:
dev-libs/openssl:0 (dev-libs/openssl-1.0.2f:0/0::gentoo, installed)
pulled in by >=dev-libs/openssl-0.9.8f:0[bindist=] required by
(net-misc/openssh-7.1_p2-r1:0/0::gentoo, installed) 
(dev-libs/openssl-1.0.2f:0/0::gentoo, ebuild scheduled for merge) pulled
in by >=dev-libs/openssl-0.9.8g:0[-bindist] required by
(net-voip/telepathy-gabble-0.18.3:0/0::gentoo, ebuild scheduled for
merge)  |

I figure that this probably has to do with the GLSA that I saw in the
forums, but I don’t know how to get GNOME installed at this point. Am I
understanding correctly that openssh requires the |bindist| use flag,
while telepathy-gabble requires that it be explicitly unset? Is this a
conflict that can ever be resolved, and if not, how can this be a thing
when openssh is basically standard software on all Linux machines?

​


[gentoo-user] Why we no Heroku?

2016-01-19 Thread Daniel Quinn
I wanted to start fiddling with Heroku , so
naturally the first thing I tried was

|$ eix heroku |

…but alas there was nothing. So I poked around their site to see how one
might install their client manually and the instructions

are the typically horrifying:

|# wget -qO- https://toolbelt.heroku.com/install.sh | sh |

The thing is, a quick look at what that || sh| is actually doing isn’t
all that terrifying. Basically it untars a bunch of ruby scripts into a
directory and then puts the path to the |heroku| “binary” (a ruby
script) in your $PATH. Surely, this is a good candidate for an ebuild, yes?

So I thought I’d ask: am I missing something, or is this really as easy
as it looks? Is this just waiting for someone to write an ebuild?
Bugzilla has nothing
 about it, but I
can’t believe that Heroku use hasn’t come up before in Gentoo land.
Surely there must be some web developers / ops people who would like to
use Heroku stuff from Gentoo…. right?

​


Re: [gentoo-user] Re: ujson in a virtualenv explodes with undefined symbol: Buffer_AppendShortHexUnchecked

2016-01-11 Thread Daniel Quinn
I've been using Gentoo since 2000 and I've never used elogv or used
genlop.  Thanks for pointing those out, I'll give them a shot.




[gentoo-user] ujson in a virtualenv explodes with undefined symbol: Buffer_AppendShortHexUnchecked

2016-01-08 Thread Daniel Quinn
I'm hoping someone can explain what's going on to me here.

I had a perfectly reasonable dev environment for months, and then one
day, I upgrade ujson in that virtualenv and it explodes with this:

ImportError:
/home/daniel/.virtualenvs/myvenv/lib/python2.7/site-packages/ujson.so:
undefined symbol: Buffer_AppendShortHexUnchecked

Assuming it was just the update, forced a downgrade from 1.34 to 1.33. 
The error is still there.  In fact, no matter what version I install
now, even to go so far back as 1.4, the same error comes up.

Now, knowing that the error doesn't happen on other machines at these
versions, and knowing that even on this machine it was working fine
until this afternoon, I have to assume that it has to do with the host
system and not the virtualenv.  Indeed, the steps to produce this
problem are:

virtualenv myvenv
. myvenv/bin/activate
pip install ujson
python -c 'import ujson'

Interestingly, ujson works just fine *outside of a virtualenv*.  As in,
if I install it with `emerge dev-python/ujson` it works just fine.  It's
the existence within a virtualenv that appears to be the problem.  I did
run an update recently that updated dev-python/setuptools, but
downgrading that from 19.2 to 19.1.1 doesn't appear to fix the problem
either.  Also, reinstall virtualenv (just for kicks) didn't fix things.

I'm really at a loss here and I'd like to get some work done today.  Any
suggestions?



[gentoo-user] CPU "choking" under high load

2010-03-26 Thread Daniel Quinn
I don't know if this is a hardware issue or not, but I thought that maybe I'd 
configured my kernel incorrectly and that this might be a known issue someone 
here has run across in the past so here goes:

My computer is a pretty impressive AMD 64 X2 Dual Core Processor 6400+ box 
with 2GB of RAM and for the most part, I just use it to write code at work.  
However, whenever I'm doing something CPU-intensive, two things happen:

  * The load on the box goes up to 4
  * The box intermittently wobbles from running at full-speed and dropping to
a crawl.  This is best seen while watching Flash videos online, 
compressing/encoding video, or compiling.  Everything is fine for a few 
minutes, then suddenly the rate of compiling/compression/playback etc. 
drops to a crawl for about 1-3minutes, then back up to full speed.

I don't know why it's happening.  I've tried various kernel options with no 
change in behaviour.  Outside of that though, I don't know what to try.  
Suggestions welcome :-(




Re: [gentoo-user] Formating a USB stick

2009-10-07 Thread Daniel Quinn
On October 7, 2009 10:30:23 pm Mick wrote:
> What's the best way to reformat a USB stick? 

The thing about USB sticks is that if you want to use them to transfer files 
cross-platform (Windows & Mac as well as Linux) you have to use a common 
filesystem.  Typically, I use FAT32 for this since I don't think Windows 
supports anything else that Linux and Mac can both deal with (NTFS support in 
Linux is still unavailable on most machines)

So, if you're going to go with FAT32, you can use fdisk to partition your 
stick as usual, and mark it as type "b" (Win95 FAT32) (there's a few options 
related to FAT32 in there, but I *think* that that's the right one).  Write to 
the stick and exit fdisk.

Then when you're back at the prompt, run:

  # mkfs.vfat /dev/sda1

...if sda is in fact your key.  You can even add "-L LabelName" to attach a 
label to the stick:

  # mkfs.vfat -L "USB Stick" /dev/sda1

I'm pretty sure spaces are ok there... If not, nuke the space ;-)



[gentoo-user] win32codecs on an ARM architecture?

2009-09-02 Thread Daniel Quinn
I have 3 Sheevaplugs (http://www.marvell.com/featured/plugcomputing.jsp) which 
all run ARM cpus.  For the most part I've had very few problems setting these 
up to run Gentoo but now I'm trying to have one of them run Mencoder to record 
CBC's The National from an MMS stream and I'm having this problem:

  Sorry, this file format is not recognized/supported

I can only assume that this is due to the fact that mplayer won't emerge with 
the win32codecs USE flag, probably relating the architecture I'm using.  Isn't 
there a way to make this work?  Emulate an x86 space or something?  I'm rather 
new at working across architectures so I'm kinda poking around in the dark 
here.



Re: [gentoo-user] Packages in other architectures (arm)

2009-08-05 Thread Daniel Quinn
On August 5, 2009 02:09:21 pm Stroller wrote:
> Simply copy the package's ebuild to your local tree, edit it to add
> the ARM keyword and try it. If it works, open a bug at Gentoo asking
> for the package to be marked as table on your architecture.
>
> http://en.gentoo-wiki.com/wiki/Overlay#Creating_a_local_overlay

Thanks!  I'll try that tonight and if it works out, I'll do just as you 
suggest.




[gentoo-user] Packages in other architectures (arm)

2009-08-05 Thread Daniel Quinn
I've just come into possession of a few of these fabulous little machines:

http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp

They have 512mb ram, 1ghz Arm CPU and a sketchy jffs2 "hard drive" inside, 
along with an SDHC slot, one USB plug and one gigabit ethernet port.  
Naturally, I'm turning them into a little cluster of web/mail/dns/torrent 
servers :-)

Unfortunatly though, I've discovered that one of my favourite command-line 
based torrent clients, "rtorrent" doesn't have "arm" in its KEYWORDS variable.  
Can someone tell me why this is?  If it's just due to it not having been 
tested, I'd be happy to do that, but I'd need to know the "right" way to do 
that.