Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Search
  • Search

Search found 3815 matches

Go to advanced search

Advanced search
Search found 3815 matches
  • Page 1 of 153
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 153
  • Next
by Sadako
Mon Jun 08, 2020 8:33 pm
Forum: Portage & Programming
Topic: Python, 3rd party modules work interactively, not in scripts
Replies: 4
Views: 3329

Okay, I don't really get this, but I think I dismissed your question far too easily, I was executing the script I had saved as http.py with "python3.7 http.py", working within the directory the file is in.

By simply renaming the file to _http.py and executing it under that name it just works as ...
  • Jump to post
by Sadako
Mon Jun 08, 2020 6:25 pm
Forum: Portage & Programming
Topic: Python, 3rd party modules work interactively, not in scripts
Replies: 4
Views: 3329

fedeliallalinea wrote:

Code: Select all

...
  File "/tmp/.private/sadako/http.py", line 6, in <module>
    http = urllib3.PoolManager() 
...
Why python search something in /tmp/.private?
It's not, that's just the script I had saved and was running.
  • Jump to post
by Sadako
Mon Jun 08, 2020 5:44 pm
Forum: Portage & Programming
Topic: Python, 3rd party modules work interactively, not in scripts
Replies: 4
Views: 3329

Python, 3rd party modules work interactively, not in scripts

Hi, I'm trying to learn a little python while I have so musch free time at present, I know a little C but don't have much actual experience.

Anyways, I can get the following example code to work just fine from an interactive python prompt; import urllib3

http = urllib3.PoolManager()

r = http ...
  • Jump to post
by Sadako
Sun Apr 08, 2018 9:12 pm
Forum: Networking & Security
Topic: Firefox won't go "offline" when using a proxy on localhost
Replies: 2
Views: 2531

Firefox won't go "offline" when using a proxy on l

I'm using firefox 52.6 with privoxy, and have only just noticed that it can still connect to non-https sites just fine even when "work offline" is enabled.

https sites show the "Offline mode" warning as expected, as I'm only sending http traffic to privoxy, not ssl.

If I change privoxy to listen ...
  • Jump to post
by Sadako
Wed Jun 07, 2017 3:40 pm
Forum: Portage & Programming
Topic: shell case statement patterns...[SOLVED]
Replies: 3
Views: 14597

POSIX shell patterns are not nearly as powerful as regular expressions.
In your case you can come through with negating:
case ${FOO:-x} in
*[!0123456789abcdefABCDEF]*)
echo "FOO not hex";;
esac
The :-x is there to make an undefined or empty string to be not considered as hex. Note that [!0-9a-fA ...
  • Jump to post
by Sadako
Wed Jun 07, 2017 12:09 am
Forum: Portage & Programming
Topic: shell case statement patterns...[SOLVED]
Replies: 3
Views: 14597

Upon further reading, seems that '+(pattern)' for matching one or more relies on shopt -s extglob, meaning it's bash-specific, or at the very least not posix.

D'oh...
  • Jump to post
by Sadako
Tue Jun 06, 2017 8:59 pm
Forum: Portage & Programming
Topic: shell case statement patterns...[SOLVED]
Replies: 3
Views: 14597

shell case statement patterns...[SOLVED]

Hi, I'm trying to use a case statement in a shell script to match a hexadecimal string.
case "${FOO}" in
[0-9a-eA-E]* ) echo BAR ;;
esac This pretty much works, but it'll match anything that simply begins with a hex digit.

Supposedly, prefixing a pattern with '+' should make it match "one or more ...
  • Jump to post
by Sadako
Sun Jun 04, 2017 4:18 pm
Forum: Portage & Programming
Topic: Don't need, don't want CUPS [SOLVED]
Replies: 7
Views: 7807

Opera is a binary package, so you can't reasonably expect USE flags to offer much customization with it, the ebuild devs don't have a lot to work with there...

That said, it is possible Opera doesn't need cups to run, you could check run lddtree on it's binaries and see if any link to libraries ...
  • Jump to post
by Sadako
Sat Jun 03, 2017 3:52 pm
Forum: Networking & Security
Topic: netcat-like stdio to tcp "proxy"? [SOLVED]
Replies: 3
Views: 8563

Thank you both very much for your responses, as it turns out I was looking at this wrong, the actual problem was that the http server was closing the connection after serving a single request, which is why netcat was exiting.

I was just testing with busybox httpd, which doesn't support http keep ...
  • Jump to post
by Sadako
Thu Jun 01, 2017 9:40 pm
Forum: Portage & Programming
Topic: gcrypt vs. openssl
Replies: 7
Views: 6174

Uhm, did you disable the openssl USE flag globally?

Yeah, don't do that. :P

You'll get a ton of conflicts just like that if you do, and what I said about disabling those flags having no ill effects was about sudo specifically, other packages would lose some real and potentially important ...
  • Jump to post
by Sadako
Thu Jun 01, 2017 9:28 pm
Forum: Portage & Programming
Topic: gcrypt vs. openssl
Replies: 7
Views: 6174

From /usr/portage/profiles/use.local.desc; app-admin/sudo:gcrypt - Use SHA2 from dev-libs/libgcrypt instead of sudo's internal SHA2.
app-admin/sudo:openssl - Use SHA2 from dev-libs/openssl instead of sudo's internal SHA2. These were only added as options in 1.8.20, you can probably disable both with ...
  • Jump to post
by Sadako
Thu Jun 01, 2017 8:53 pm
Forum: Networking & Security
Topic: netcat-like stdio to tcp "proxy"? [SOLVED]
Replies: 3
Views: 8563

netcat-like stdio to tcp "proxy"? [SOLVED]

I'm playing around with http requests from shell, and I have a working script with both bash's networking and by using netcat/socat with named pipes, but , both nc and socat terminate after one http request and response...

I`m looking for a solution where "proxy" I'm using will keep running and ...
  • Jump to post
by Sadako
Thu May 11, 2017 6:37 pm
Forum: Portage & Programming
Topic: [solved]Problems with the USE flag 'bindist'
Replies: 5
Views: 17085

From that, net-libs/nodejs obviously needs openssl without bindist, and I'm guessing [bindist=] means both openssh requires openssl to be built with the same flag setting as itself,
so yeah, unset bindist USE flag, then 'emerge --oneshot --newuse openssh', which should re-emerge both ssh and ssl ...
  • Jump to post
by Sadako
Mon May 08, 2017 8:35 pm
Forum: Networking & Security
Topic: Deniable Encryption using Luks
Replies: 1
Views: 7835

When creating a new luks mapping, you can simply pass the '--header /path/to/luks-header' option to cryptsetup, I hate to 'RTFM' you, but I do suggest reading the cryptsetup manual, pretty much everything you need to know about it is in there.

As for grub, no patching is necessary, you can simply ...
  • Jump to post
by Sadako
Sat Apr 29, 2017 3:23 am
Forum: Networking & Security
Topic: hardened-sources going forward
Replies: 45
Views: 43087

Beware of "security industry" people who try to sell you a cure using FUD and then run away and hide when someone points out it's poison. There have been a number of major kernel exploits in recent years that were completely ineffective against properly configured grsecurity-patched kernels.

Say ...
  • Jump to post
by Sadako
Tue Apr 18, 2017 7:19 pm
Forum: Gamers & Players
Topic: WildStar PlayOnLinux Gentoo
Replies: 2
Views: 7729

I'm not sure any of that is needed, at least with the current gentoo defaults.

You can typically just run (for example) 'startx xterm', and it'll start a new xorg-server instance with xterm being the only client, ie no window manager.

So, replacing xterm with whatever command you would use to ...
  • Jump to post
by Sadako
Tue Apr 18, 2017 4:13 pm
Forum: Kernel & Hardware
Topic: The binfmt-misc module needs to be configured in... [solved]
Replies: 23
Views: 22526

I get the same warning upon boot, it's actually coming from /etc/init.d/procfs, however I've seen NO negative effects from not loading the module, I'm pretty damn sure it's not needed for gentoo in general or portage specifically.

Looking at /etc/init.d/procfs, it looks like the kernel adds the ...
  • Jump to post
by Sadako
Fri Apr 14, 2017 8:12 pm
Forum: Multimedia
Topic: Problem with audio - ALSA woes
Replies: 5
Views: 3904

I think you need to determine if sound works with something much simpler than mpd or firefox first, aplay will work for wav files, or mplayer/mpv for most audio formats, or whatever else you may already have installed.

Are you using pulseaudio or not?

lame should only be needed if mpd on your ...
  • Jump to post
by Sadako
Fri Apr 14, 2017 8:01 pm
Forum: Portage & Programming
Topic: Auto remove kernel function
Replies: 9
Views: 5637

Not a requirement, but typically variable names in shell scripts are all uppercase. No. Environment variables are typically all uppercase. Shell parameters (aka variables) local to the script are usually kept lower-case. Huh, interesting.
Pretty much every example I've seen has used all uppercase ...
  • Jump to post
by Sadako
Fri Apr 14, 2017 6:04 pm
Forum: Portage & Programming
Topic: Auto remove kernel function
Replies: 9
Views: 5637

Ok, first off, some shell basic shell scripting guidlines;
Shell scripts don't require semicolon ( ; ) at the end of a line, it's only really needed to separate two commands if they are on the same line, iow you need either a semicolon OR line break between commands.
Not a requirement, but typically ...
  • Jump to post
by Sadako
Fri Apr 14, 2017 3:44 pm
Forum: Networking & Security
Topic: [solved] don't understand ntp.conf
Replies: 15
Views: 10865

Perhaps net-misc/openntpd would be a better alternative for you?

Smaller, supposedly more secure codebase, and includes the following option in the config file; # Addresses to listen on (ntpd does not listen by default)
#listen on *
Meaning by default it does NOT function as a server as well as a ...
  • Jump to post
by Sadako
Wed Apr 12, 2017 2:59 pm
Forum: Portage & Programming
Topic: [Solved]/usr/lib/portage/python3.6/helper-functions.sh:segfa
Replies: 2
Views: 9212

That's very odd, looks like the 'mkfifo' binary itself is segfaulting...

Can you run (for example) 'mkfifo -m 600 mkfifo /tmp/mkfifo-pipe' yourself?
If that fails, how about 'mknod -m 600 /tmp/mknod-pipe p', which does the same thing?

Does dmesg report anything, and are all 3 PCs identical in ...
  • Jump to post
by Sadako
Sat Apr 08, 2017 3:52 pm
Forum: Desktop Environments
Topic: xorg no onboard keyboard,mouse. external usb work (laptop)
Replies: 7
Views: 6243

You said "typing startx", so the laptop keyboard works just fine on the console, then?

What do you have INPUT_DEVICES set to? ( `emerge -pv xorg-drivers` )

What do you have under /dev/input/. and it's subdirectories?
  • Jump to post
by Sadako
Sat Apr 08, 2017 3:45 pm
Forum: Desktop Environments
Topic: non-suid Xorg fails to start
Replies: 2
Views: 3834

I never tested xorg without suid, but you followed this guide ? Yep.

I had it working on my (now dead) laptop with intel graphics for about 4 years, but I couldn't get it working on my desktop with the radeon at that time, however a good bit of work has gone into xorg-server to make this work ...
  • Jump to post
by Sadako
Fri Apr 07, 2017 7:52 pm
Forum: Desktop Environments
Topic: non-suid Xorg fails to start
Replies: 2
Views: 3834

non-suid Xorg fails to start

I'm trying to get xorg-server to run as user, ie without suid, but it's failing miserably.

This is with xorg-server-1.19.3, libdrm-2.4.76 and a 4.9.18 kernel, open radeon driver on a hd6670 (or something like that).

Not using systemd or any display manager, running startx.

Last few lines of Xorg ...
  • Jump to post

Search found 3815 matches
  • Page 1 of 153
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 153
  • Next

Go to advanced search

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy