[gentoo-user] Scanner and weird streaking
Any chance you need to shield the scanner from light sources outside the scan head? Throw a dark jacket over it for testing.
Re: [gentoo-user] jupyter notebook 500 : Internal Server Error
On 2020-06-25 21:44, Andrés Becerra Sandoval wrote: El jue., 25 de jun. de 2020 a la(s) 14:14, Valmor de Almeida (val.gen...@gmail.com <mailto:val.gen...@gmail.com>) escribió: Hello, I had to enable ~amd64 to emerge jupyter so I know this is bound for problems. However, anyone there able to use jupyter notebooks in gentoo? No matter what notebook I try to open, I get the internal server error. Thank you. -- Valmor Not much help, but I have not had problems with jupyter for years, with ~amd64 profile. -- Andrés Becerra Sandoval I isolate jupyter (actually jupyterlab) in an separate python environment. I do use pipenv to manage the python environment. It boils down to three commands: $> cd projectfolder projectfolder $> pipenv install projectfolder $> pipenv shell projectfolder $> pipenv install jupyter-lab pipenv itself can be installed with emerge. pipenv resolves the dependencies within the virtual python environment. This way of working with python solved most of my troubles with ~amd64 python packages. python packages for system and for programming purposes stay separate this way. -- Urs Schütz
Re: [gentoo-user] Re: simple image annotation software
On 2020-04-02 15:57, Grant Edwards wrote: On 2020-04-02, Grant Edwards wrote: On 2020-04-02, Ashley Dixon wrote: If your original images are screenshots, I'd recommend 'flameshot'. They're not. They're jpeg files produced by running photos though some Imagemagick 'convert' operations. Does that mean flameshot can't be used to annotate them? I installed flameshot (required no additional packages be installed). It can not be used to annotate existing image files. There's a long list of requests for that feature on the GitHub site, but apparently no progress on that front. According to some of those comments, shutter can do it. Personally, I don't really "get" the need for the capture functionality. ImageMagick's 'import' command works for me... -- Grant What about displaying an image and taking a screenshot? To clumpsy? -- Urs
Re: [gentoo-user] query ebuild fields
On 6/21/19 7:27 PM, Ian Zimmerman wrote: Is there a command to show the fields like DESCRIPTION and HOMEPAGE from an installed ebuild, or is this one of the annoying gaps in the framework that must be (and can be) trivially worked around? ... Eix is faster for such things. You can format the output as you need it. Does the following do what you want? eix -I --format '\n\n\n\n' rxvt-unicode urs
Re: [gentoo-user] no more googleearth in portage
On 09/20/17 07:55, Raffaele Belardi wrote: I suppose it's due to Google's choice to support only Chrome, although I missed the Gentoo news bit if there was one. For Android there is the really good Open Street Map application, are there any desktop alternatives in Portage for non-Chrome users? I know OSM has a web interface but I'd prefer a standalone application. raffaele Maybe sci-geosciences/viking ? Try to change the map from MapQuest to MapNik to get a first impression. Urs
Re: [gentoo-user] [OT]: "New to aliexpress" pop up - how to block it?
On 07/16/17 14:08, tu...@posteo.de wrote: On 07/16 01:58, Urs Schütz wrote: On 07/16/17 05:56, R0b0t1 wrote: On Sun, Jul 16, 2017 at 3:44 AM, wrote: On 07/16 03:12, R0b0t1 wrote: On Sun, Jul 16, 2017 at 2:11 AM, wrote: On 07/16 01:59, R0b0t1 wrote: On Sun, Jul 16, 2017 at 1:47 AM, wrote: Hi, that drives my insane: While searching items for my DIY Nixie clock on aliexpress I get one certain popup with each new access to aliexpress asking me, whether I am new to aliexpress and offers me a coupon. I have no othe chance than clicking on this [beep] pop up to be able to see the page contents. I searched the web for according informations how to block this [beep] popup, but I only get informations how to remove a certain kind of adware virus from Mac and Windows. Since this virus pops up an advertisement of constantly changing goods and is page filling I am sure I am not suffering from this. If anyone out there has solved this problem without disabling the possibility to /buy/ something on aliexpress PLEASE HELP ME. I AM NEAR INSANITY! ;) :) Thanks a lot in advance for any life saver! Cheers Meino You might be able to block the element on the page using uBlock Origin, but unfortunately that type of ad is very hard to remove. If you have to interact with it is harder to select using uBlock's interface. You can also use Greasemonkey to block more invasive ads, but I never had much luck with that. It's designed to do more than filter background content. I feel like I need to ask whether or not you've done something like disable cookies. I'd not suggest doing that, at most delete all of them when you close your browser session. It's impossible to use most pages without having cookies enabled (this makes automating things with web libraries infuriating). R0b0t1. Hi R0b0t1, For "normal browsing" I created a profile for firefox which is privacy enhanced -- blocking all sorts of things. This profile works half with the sites I normally visit. Aliexpress get screwed up when visited using this profile. So I created a second profile, which I use for Aliexpress only. This one has only some privacy related things enabled. Aliexpress works -- including poping up this [beep] "Are you new to Aliexpress?" popup. Cookies are enabled with this profile. Does it do this on every page load or just the first time you interact with it? I did the following: *** Surf to www.aliexpress.com (no popup and no way to search despite the fact that a search bar is shown.) *** Click on any product -- product will be displayed and popup pops up (hence the name), click the popup to remove it. Search bar now works. *** Click "reload tab"...the whole [beep] starts from the beginning. I've managed to block something similar using uBlock Origin, but it was really hard to select it with the GUI picker that creates blocking rules for you. The technical term for what the website is using is called a popover and I remember people talking about blocking them with uBlock Origin because they are hard to block, but I can't find anything relevant to this discussion in Google. As soon as I login into Aliexpress the popup disappears -- now Aliexpress is satisfied, because tracking my searches is now personalized. If you can't find a way to target the overlay with uBlock Origin you might try looking at https://greasyfork.org/en and using Greasemonkey. Unfortunately all the premade scripts I could find were simple things like pricing changes. Why Greasemonkey is especially use ful in this case? (this is curiosity -- and NO expression of doubt, R0b0t1! :) Greasemonkey injects JavaScript onto your webpages based on filter criteria, so you can effectively do anything your browser can do when displaying the webpage. Some of the more impressive feats are reengineered webpages that are better than the original service, most of them are mundane and only alter a few values on a webpage. You can also use it for laser-guided adblocking if you need to. Unfortunately Greasemonkey requires quite a bit of knowledge about itself, web development, and the page you are trying to modify, so I can't be of much help apropos. Its the same reason for why buying via Aliexpress App on a smartphone/tablet is cheaper than using a PC. I am using XPrivacy on my Android tablet which shows, blocks or allows ANY access to permissions like "Get your location" et cetera -- I instantly deleted that App after I saw, what this App wants to know. It's sad to see another website doing this. There's a few that make it all but impossible to use the service without logging in or supplying information one way or another. If the creator of the website doesn't want you to use it, I'm not sure there's a lot that can ultimately be done about it. In a similar vein, my phone now displays advertising. The state of computing has me despond
Re: [gentoo-user] [OT]: "New to aliexpress" pop up - how to block it?
On 07/16/17 05:56, R0b0t1 wrote: On Sun, Jul 16, 2017 at 3:44 AM, wrote: On 07/16 03:12, R0b0t1 wrote: On Sun, Jul 16, 2017 at 2:11 AM, wrote: On 07/16 01:59, R0b0t1 wrote: On Sun, Jul 16, 2017 at 1:47 AM, wrote: Hi, that drives my insane: While searching items for my DIY Nixie clock on aliexpress I get one certain popup with each new access to aliexpress asking me, whether I am new to aliexpress and offers me a coupon. I have no othe chance than clicking on this [beep] pop up to be able to see the page contents. I searched the web for according informations how to block this [beep] popup, but I only get informations how to remove a certain kind of adware virus from Mac and Windows. Since this virus pops up an advertisement of constantly changing goods and is page filling I am sure I am not suffering from this. If anyone out there has solved this problem without disabling the possibility to /buy/ something on aliexpress PLEASE HELP ME. I AM NEAR INSANITY! ;) :) Thanks a lot in advance for any life saver! Cheers Meino You might be able to block the element on the page using uBlock Origin, but unfortunately that type of ad is very hard to remove. If you have to interact with it is harder to select using uBlock's interface. You can also use Greasemonkey to block more invasive ads, but I never had much luck with that. It's designed to do more than filter background content. I feel like I need to ask whether or not you've done something like disable cookies. I'd not suggest doing that, at most delete all of them when you close your browser session. It's impossible to use most pages without having cookies enabled (this makes automating things with web libraries infuriating). R0b0t1. Hi R0b0t1, For "normal browsing" I created a profile for firefox which is privacy enhanced -- blocking all sorts of things. This profile works half with the sites I normally visit. Aliexpress get screwed up when visited using this profile. So I created a second profile, which I use for Aliexpress only. This one has only some privacy related things enabled. Aliexpress works -- including poping up this [beep] "Are you new to Aliexpress?" popup. Cookies are enabled with this profile. Does it do this on every page load or just the first time you interact with it? I did the following: *** Surf to www.aliexpress.com (no popup and no way to search despite the fact that a search bar is shown.) *** Click on any product -- product will be displayed and popup pops up (hence the name), click the popup to remove it. Search bar now works. *** Click "reload tab"...the whole [beep] starts from the beginning. I've managed to block something similar using uBlock Origin, but it was really hard to select it with the GUI picker that creates blocking rules for you. The technical term for what the website is using is called a popover and I remember people talking about blocking them with uBlock Origin because they are hard to block, but I can't find anything relevant to this discussion in Google. As soon as I login into Aliexpress the popup disappears -- now Aliexpress is satisfied, because tracking my searches is now personalized. If you can't find a way to target the overlay with uBlock Origin you might try looking at https://greasyfork.org/en and using Greasemonkey. Unfortunately all the premade scripts I could find were simple things like pricing changes. Why Greasemonkey is especially use ful in this case? (this is curiosity -- and NO expression of doubt, R0b0t1! :) Greasemonkey injects JavaScript onto your webpages based on filter criteria, so you can effectively do anything your browser can do when displaying the webpage. Some of the more impressive feats are reengineered webpages that are better than the original service, most of them are mundane and only alter a few values on a webpage. You can also use it for laser-guided adblocking if you need to. Unfortunately Greasemonkey requires quite a bit of knowledge about itself, web development, and the page you are trying to modify, so I can't be of much help apropos. Its the same reason for why buying via Aliexpress App on a smartphone/tablet is cheaper than using a PC. I am using XPrivacy on my Android tablet which shows, blocks or allows ANY access to permissions like "Get your location" et cetera -- I instantly deleted that App after I saw, what this App wants to know. It's sad to see another website doing this. There's a few that make it all but impossible to use the service without logging in or supplying information one way or another. If the creator of the website doesn't want you to use it, I'm not sure there's a lot that can ultimately be done about it. In a similar vein, my phone now displays advertising. The state of computing has me despondent. For your phone: Root it, install XPosed/XPosedInstaller, install XPrivacy, install Bootmanager, install PreventRunning, install AFWall -- and your phone is yours again. Buying XP
Re: [gentoo-user] Re: xorg wiki and graphics drivers
On 02/14/17 07:30, Raffaele Belardi wrote: Harry Putnam wrote: Willie Mattthews writes: Not sure I'm following you here. THe guest addtions come with the Vbox and I've already installed them. This is a windows 10 host and the vbox is the one installable on windows. This is version 5.1.14 Guest additinos have nothing to do with gentoo kernel config. What I'm asking about it setting up a kernel for gentoo os preparatory to installing X. As described in the Xorg gentoo wiki. Vbox vm's need drivers like any other os. I'm asking which driver works with the vbox graphics adapter. x11-drivers/xf86-video-virtualbox I do not know what you need for the hi-res frame buffer using kernel KMS. ---snipped--- -- Urs
Re: [gentoo-user] locale : cannot generate it
On 01/07/17 16:31, Urs Schütz wrote: On 01/07/17 13:24, Mick wrote: On Saturday 07 Jan 2017 17:12:25 Alexander Kapshuk wrote: On Sat, Jan 7, 2017 at 4:59 PM, Helmut Jarausch wrote: On 01/07/17 15:52:20, Alexander Kapshuk wrote: On Sat, Jan 7, 2017 at 4:30 PM, Helmut Jarausch wrote: Hi, hopefully some can help me. cat /etc/locale.gen gives en_US ISO-8859-1 en_US.UTF-8 UTF-8 C.UTF-8 de_DE.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15 but locale-gen gives errors * Generating locale-archive: forcing # of jobs to 1 * Generating 5 locales (this might take a while) with 1 jobs * (1/5) Generating C.UTF-8 ... character map file `de_DE' not found: No such file or directory cannot open locale definition file `C': No such file or directory [ !! ] * (2/5) Generating de_DE.ISO-8859-1 ... character map file `de_DE.UTF-8' not found: No such file or directory cannot open locale definition file `ISO-8859-1': No such file or directo [ !! ] * (3/5) Generating de_DE.UTF-8 ... character map file `de_DE@euro' not found: No such file or directory cannot open locale definition file `UTF-8': No such file or directory [ !! ] * (4/5) Generating de_DE.ISO-8859-15@euro ... character map file `en_US' not found: No such file or directory cannot open locale definition file `ISO-8859-15': No such file or direct [ !! ] * Bad entry in locale.gen: 'UTF-8 '; skipping * (5/5) Generating en_US.ISO-8859-1 ... character map file `en_US.UTF-8' not found: No such file or directory cannot open locale definition file `ISO-8859-1': No such file or directo [ !! ] * Generation complete I've even rebuild glibc (2.24) /usr/share/i18n/SUPPORTED contains the lines de_DE.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15 en_US.UTF-8 UTF-8 en_US ISO-8859-1 Many thanks for a hint, Helmut What's the full contents of your /etc/locale.gen? There are only comments above these lines. Thanks, Helmut The reason I asked for the full contents of your /etc/locale.gen is because users have been known to accidentally make typos when editing the file in question. Also, what's the output of 'locale -a' and 'localedef --list-archive'? There is an incorrect entry in the file. For example this line: C.UTF-8 The locale name C. is not listed in /usr/share/i18n/locales/ on my system. However, the remaining entries appear to be correct according to the contents of /usr/share/i18n/SUPPORTED. So I am not sure what's gone wrong. C.UTF-8 does not work this way. If you delete the C.UTF-8 line it works. You will have a C locale and a POSIX locale even without specifying them in /etc/locale.gen. Let me know if you find a way to produce a locale named "C.UTF-8" on Gentoo. I would be interested in it, as it seems that newest darktable from git needs this to compile correctly. You can generate a "fake" C.UTF-8 locale with localedef: # localedef -i en_US -f UTF-8 C.UTF-8 and remove it when no longer needed: # localedef --delete-from-archive C.utf8 Don't blame me for ugly side effects... Urs
Re: [gentoo-user] locale : cannot generate it
On 01/07/17 13:24, Mick wrote: On Saturday 07 Jan 2017 17:12:25 Alexander Kapshuk wrote: On Sat, Jan 7, 2017 at 4:59 PM, Helmut Jarausch wrote: On 01/07/17 15:52:20, Alexander Kapshuk wrote: On Sat, Jan 7, 2017 at 4:30 PM, Helmut Jarausch wrote: Hi, hopefully some can help me. cat /etc/locale.gen gives en_US ISO-8859-1 en_US.UTF-8 UTF-8 C.UTF-8 de_DE.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15 but locale-gen gives errors * Generating locale-archive: forcing # of jobs to 1 * Generating 5 locales (this might take a while) with 1 jobs * (1/5) Generating C.UTF-8 ... character map file `de_DE' not found: No such file or directory cannot open locale definition file `C': No such file or directory [ !! ] * (2/5) Generating de_DE.ISO-8859-1 ... character map file `de_DE.UTF-8' not found: No such file or directory cannot open locale definition file `ISO-8859-1': No such file or directo [ !! ] * (3/5) Generating de_DE.UTF-8 ... character map file `de_DE@euro' not found: No such file or directory cannot open locale definition file `UTF-8': No such file or directory [ !! ] * (4/5) Generating de_DE.ISO-8859-15@euro ... character map file `en_US' not found: No such file or directory cannot open locale definition file `ISO-8859-15': No such file or direct [ !! ] * Bad entry in locale.gen: 'UTF-8 '; skipping * (5/5) Generating en_US.ISO-8859-1 ... character map file `en_US.UTF-8' not found: No such file or directory cannot open locale definition file `ISO-8859-1': No such file or directo [ !! ] * Generation complete I've even rebuild glibc (2.24) /usr/share/i18n/SUPPORTED contains the lines de_DE.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15 en_US.UTF-8 UTF-8 en_US ISO-8859-1 Many thanks for a hint, Helmut What's the full contents of your /etc/locale.gen? There are only comments above these lines. Thanks, Helmut The reason I asked for the full contents of your /etc/locale.gen is because users have been known to accidentally make typos when editing the file in question. Also, what's the output of 'locale -a' and 'localedef --list-archive'? There is an incorrect entry in the file. For example this line: C.UTF-8 The locale name C. is not listed in /usr/share/i18n/locales/ on my system. However, the remaining entries appear to be correct according to the contents of /usr/share/i18n/SUPPORTED. So I am not sure what's gone wrong. C.UTF-8 does not work this way. If you delete the C.UTF-8 line it works. You will have a C locale and a POSIX locale even without specifying them in /etc/locale.gen. Let me know if you find a way to produce a locale named "C.UTF-8" on Gentoo. I would be interested in it, as it seems that newest darktable from git needs this to compile correctly. Urs
[gentoo-user] HeeksCAD & HeeksCNC under Gentoo, any experiences?
Hi HeeksCAD [1] and HeeksCNC [2] are open-source, 3D manufacturing tools and surprisingly complete in their feature set (from CAD to G-Code generation). I would like to give them a try, and found a way to compile them. What I did: edit opencascade keywords: =sci-libs/opencascade-6.8.0 ~amd64 emerge opencascade compile and install libarea: cd /tmp git clone https://github.com/Heeks/libarea.git cd libarea/ mkdir build cd build cmake .. make sudo make install compile and install HeeksCAD: cd /tmp git clone https://github.com/Heeks/heekscad.git cd heekscad/ mkdir build cd build export LD_LIBRARY_PATH=/usr/lib64/opencascade-6.8.0/ros/lin/lib64 export CASROOT=/usr/lib64/opencascade-6.8.0/ros/lin cmake .. make && sudo make install compile and install HeeksCNC: cd /tmp git clone https://github.com/Heeks/heekscnc.git mkdir heekscnc/build cd heekscnc/build export LD_LIBRARY_PATH=/usr/lib64/opencascade-6.8.0/ros/lin/lib64 export CASROOT=/usr/lib64/opencascade-6.8.0/ros/lin cmake .. make sudo make install To run HeeksCAD: export LD_LIBRARY_PATH=/usr/lib64/opencascade-6.8.0/ros/lin/lib64; heekscad What do others think about this 3D CAD / CAM solution? Has anybody experience with HeeksCAD in a real application situation? Urs [1] https://github.com/Heeks/heekscad [2] https://github.com/Heeks/heekscnc
Re: [gentoo-user] extracting text, numbers from screencasts
On 04/08/16 11:30, Helmut Jarausch wrote: On 04/08/2016 03:26:53 PM, hw wrote: Hi, what would be the best approach to extract data from a screencast? The task is to acquire some data from the display of a GUI program used interactively by a user. There are a couple 'fields' (as in "designated areas of the display") in which the relevant data is being displayed while the program is being used. The acquired data needs to be entered into a mysql database, preferably as soon as possible. (The program needs windoze, and the sources are unavailable :( ) The idea is to make a screen recording and postprocess the recording with some sort of OCR software. This might require using ffmpeg (or the like) to create a single image from each frame of the recording; then treat each image with an OCR software to get the interesting data which can then be entered into the database. Data to extract is mostly numbers. The relevant fields can be expected to be either filled or empty. The FPS rate of the recording can be kept reasonably low, like 1 FPS, or perhaps even less, depending on how frequent the relevant fields change. Using tesseract comes to mind, but after reading that "Tesseract's output will be very poor quality if the input images are not preprocessed to suit it: Images (especially screenshots) must be scaled up such that the text x-height is at least 20 pixels,[12] any rotation or skew must be corrected or no text will be recognized, low-frequency changes in brightness must be high-pass filtered, or Tesseract's binarization stage will destroy much of the page, and dark borders must be manually removed, or they will be misinterpreted as characters."[1] I'm even more doubtful that this would produce usable results with sufficient reliability. So what might be the best way to get text/numbers out of what a program displays? [1]: https://en.wikipedia.org/wiki/Tesseract_(software) I can't help with Gentoo. Try to find an old (free) version of FineReader which runs under wine. If you do it only occasionally, transfer the image to an Android phone where there a good and cheap OCR apps, even FineReader. I had some surprisingly good experience with tesseact in digitizing photographed pages of an old book recently. So I gave it a try today with a cropped screenshot of thunderbird. $ convert scrsht.png -type Grayscale -filter point -resize 300% -normalize upscaled.png $ tesseract -l eng upscaled.png out $ less out.txt convert is from media-gfx/imagemagick-6.9.0.3 tesseract is app-text/tesseract-3.04.00-r2 Here are my findings: Any graphical elements sized similar to an character appear as strange letters. Recognition of serif fonts was better than sans-serif fonts, even at smaller font size. Text which can be spell-checked was nearly perfectly recognized. Gentoo-specific words like "GLSA" and "NVMe" was not correctly recognized. Selected text (white on blue background) was poorly recognized. Dates were not recognized correctly. Times were correctly read. "convert" time for a initial screenshot size of 956 x 639 pixels was 0.4 seconds. "tesseract" time was a little more than 6s on an Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz, without opencl. The image conversion and tesseract ocr could easily be scripted. In short I would say that the following steps would help with tesseract: Avoid GUI with a lot of graphics. Try to screenshot just the relevant areas. Increase GUI font size. Configure GUI to use a well known serif font, or train tesseract for the specific font used. Configure GUI to use high contrasts, avoid colors which get converted to gray. Tesseract time could be improved by enabling opencl. I would be interested to hear about your findings with numerical data, and which approach finally works for you. Urs
Re: [gentoo-user] openscad seg fault
On 03/10/16 02:55, Adam Carter wrote: I can open the program ok, but when I click on New it seg faults. Strace of its death below. I tried recompiling it and all its immediate dependencies. How do i troubleshoot this? Cheers. Hi Adam openscad is working fine here. I propose comparing our versions. Here is mine: $ equery depgraph openscad * Searching for openscad ... * dependency graph for media-gfx/openscad-2015.03 `-- media-gfx/openscad-2015.03 ~amd64 `-- media-gfx/opencsg-1.3.2-r1 (media-gfx/opencsg) ~amd64 `-- sci-mathematics/cgal-4.3-r1 (sci-mathematics/cgal) amd64 `-- dev-qt/qtcore-4.8.6-r2 (dev-qt/qtcore) amd64 `-- dev-qt/qtgui-4.8.6-r4 (dev-qt/qtgui) amd64 `-- dev-qt/qtopengl-4.8.6-r1 (dev-qt/qtopengl) amd64 `-- dev-cpp/eigen-3.2.6 (dev-cpp/eigen) ~amd64 `-- dev-libs/gmp-6.0.0a (dev-libs/gmp) amd64 `-- dev-libs/mpfr-3.1.3_p4 (dev-libs/mpfr) amd64 `-- dev-libs/boost-1.56.0-r1 (dev-libs/boost) amd64 `-- x11-libs/qscintilla-2.8.4-r1 (x11-libs/qscintilla) amd64 [ media-gfx/openscad-2015.03 stats: packages (11), max depth (1) ] Urs
Re: [gentoo-user] /usr/bin/python: no supported Python implementation variant found!
On 12/26/15 13:31, cov...@ccs.covici.com wrote: Hi. I am doing my world update, and although it has noe finished, I am now getting the message in the subject line if I try to execute any python script! I found a gentoo topic which said to emerge python-exec, but it has already done so in the update, and no joy. Thanks in advance for any ideas. Please post the output of eselect python list
Re: [gentoo-user] java virtual machine
On 12/11/15 20:47, Urs Schütz wrote: On 12/11/15 15:12, Frederico Moraes Ferreira wrote: Has anybody happen to know which java distribution, except the oracle one, will carry javaws? Thanks, Fred javaws was working here with icedtea-bin-7. Correction: dev-java/icedtea-web seems to be the package providing javaws for icedtea. -- Urs
Re: [gentoo-user] java virtual machine
On 12/11/15 15:12, Frederico Moraes Ferreira wrote: Has anybody happen to know which java distribution, except the oracle one, will carry javaws? Thanks, Fred javaws was working here with icedtea-bin-7. -- Urs
Re: [gentoo-user] java virtual machine
On 12/10/15 14:56, Frederico Moraes Ferreira wrote: Hi List, Hi Fred I'm trying to set the java virtual machine as follows: mephisto ~ # java-config --list-available-vms The following VMs are available for generation-2: *)Oracle JDK 1.8.0.66 [oracle-jdk-bin-1.8] mephisto ~ # java-config --set-system-vm oracle-jdk-bin-1.8 Now using oracle-jdk-bin-1.8 as your generation-2 system JVM ferreirafm@mephisto ~ $ java-config --set-user-vm oracle-jdk-bin-1.8 Now using oracle-jdk-bin-1.8 as your user JVM # Well, when I try to install some java application, it issues that no virtual machine is in the PATH (as show bellow). ferreirafm@mephisto ~/Downloads $ sh ./install-jalview.bin Preparing to install... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program. # I know I can set PATH in the .bashrc, but shouldn't " java-config --set-user-vm" do the work? I do not know the answer to your question. But here is how I switch java virtual machines: $ eselect java-vm list Available Java Virtual Machines: [1] icedtea-bin-7 system-vm [2] oracle-jre-bin-1.7 $ eselect java-vm set user 2 or $ sudo eselect java-vm set system 2 Urs
Re: [gentoo-user] amavisd: running or not running???
On 04/05/15 14:57, Jarry wrote: Hi Gentoo-users, I have this strange problem: I can not start amavisd because it is running, and at the same time I can not stop amavisd because it is not running. How's that possible? vs4 ~ # /etc/init.d/amavisd start * WARNING: amavisd has already been started vs4 ~ # /etc/init.d/amavisd stop * Stopping amavisd-new ... The amavisd daemon is not running [ !! ] * ERROR: amavisd failed to stop vs4 ~ # /etc/init.d/amavisd start * WARNING: amavisd has already been started vs4 ~ # ps -e | grep amavis vs4 ~ # How can I fix this mess? Jarry /etc/init.d/amavisd zap Urs
Re: [gentoo-user] Re: Please explain X fonts?
On 04/01/15 21:03, lee wrote: Urs Schütz writes: On 03/29/15 06:23, lee wrote: walt writes: On 03/26/2015 07:15 PM, Walter Dnes wrote: As to fonts, I highly recommend "Source Code Pro" and "Source Sans Pro". They finally resolved my long search for good fonts. Unfortunately, they don't come with Gentoo. I copied them over from a Fedora installation, so you might be able to extract them from their RPMs. I haven't been able to create them from their sources, though. It requires some special program which didn't work. Maybe someone knows how to do that? No need to extract them, they come with Gentoo unstable $ eix source-pro [I] media-fonts/source-pro Cool, thank you, I'll try that tomorrow! Is that both fonts or only Source Code Pro? It is both fonts, in different weights.
Re: [gentoo-user] Re: Please explain X fonts?
On 03/29/15 06:23, lee wrote: walt writes: On 03/26/2015 07:15 PM, Walter Dnes wrote: As to fonts, I highly recommend "Source Code Pro" and "Source Sans Pro". They finally resolved my long search for good fonts. Unfortunately, they don't come with Gentoo. I copied them over from a Fedora installation, so you might be able to extract them from their RPMs. > I haven't been able to create them from their sources, though. It requires some special program which didn't work. Maybe someone knows how to do that? No need to extract them, they come with Gentoo unstable $ eix source-pro [I] media-fonts/source-pro Available versions: (~)20121216^bs (~)20130316^bs (~)20141211^bs {X cjk} Installed versions: 20141211^bs(17:20:12 03/29/15)(X -cjk) Homepage:http://adobe-fonts.github.io/source-sans-pro http://adobe-fonts.github.io/source-serif-pro http://adobe-fonts.github.io/source-code-pro Description: Adobe's open source typeface family designed for UI environments Urs
Re: [gentoo-user] [offtopic] GNU Root Gentoo on Android
On 03/16/15 09:08, Helmut Jarausch wrote: Hi, I've installed GNU Root Gentoo on Android from Google Play on my Android-4.4.2 device. Does anybody know how to use it. Many thanks for a hint, Helmut Install GNURoot also. GnuRoot is necessary to unpack and start GNURoot Gentoo. Just follow the screenshots of GNURoot on Google Play. Urs
Re: [gentoo-user] opengl: missing symlink target for header
On 02/13/15 16:19, Nicolas Sebrecht wrote: Hi guys, If you have mesa and eselect-opengl-1.3.X installed, could you please tell me if the symlink /usr/include/GL/glext.h is broken for you? Thanks, Valid symlink here: $ ls -la /usr/include/GL/glext.h lrwxrwxrwx 1 root root 44 Feb 4 15:52 /usr/include/GL/glext.h -> ../../lib64/opengl/global/include/GL/glext.h $ eselect opengl list Available OpenGL implementations: [1] nvidia * [2] xorg-x11 $ eselect mesa list 64bit i915 (Intel 915, 945) [1] classic [2] gallium * 64bit i965 (Intel GMA 965, G/Q3x, G/Q4x, HD) [1] classic * 64bit r300 (Radeon R300-R500) 64bit r600 (Radeon R600-R700, Evergreen, Northern Islands) 64bit sw (Software renderer) [1] classic [2] gallium * 32bit i915 (Intel 915, 945) [1] classic [2] gallium * 32bit i965 (Intel GMA 965, G/Q3x, G/Q4x, HD) [1] classic * 32bit r300 (Radeon R300-R500) [1] gallium * 32bit r600 (Radeon R600-R700, Evergreen, Northern Islands) [1] gallium * 32bit sw (Software renderer) [1] classic [2] gallium * $ eix -I mesa [ ... ] media-libs/mesa [ ... ] Installed versions: 10.2.8(20:57:55 01/10/15)(bindist classic dri3 egl gallium gbm llvm nptl udev xa xvmc -debug -gles1 -gles2 -opencl -openmax -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler -selinux -vdpau -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" KERNEL="linux -FreeBSD" VIDEO_CARDS="intel -freedreno -i915 -i965 -ilo -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware") $ eix -I eselect-opengl [I] app-admin/eselect-opengl [ ... ] Installed versions: 1.2.7(21:12:14 09/05/14)
Re: [gentoo-user] SOLVED: Slow startx - Why does hostname -f hang?
On 01/04/15 15:27, waben...@gmail.com wrote: Am Sonntag, 04.01.2015 um 14:06 schrieb Urs Schütz : Hi list While hunting down slow startx times (12-16s instead the usual 2-5s) I found that "hostname -f" tries to resolve the hostname. This is a slow process (timeout?): Normally this is a fast process. See my results below. urs@cadd ~ $ time hostname -v gethostname()=`cadd' cadd real0m0.001s user0m0.000s sys 0m0.001s user@puter ~ $ time hostname -v gethostname()=`puter' puter real0m0.003s user0m0.000s sys 0m0.000s urs@cadd ~ $ time hostname -v -f gethostname()=`cadd' Resolving `cadd' ... Result: h_name=`cadd' Result: h_addr_list=`127.0.0.1' ^ Does your computer only have an IP address for your localhost? cadd real0m10.011s user0m0.000s sys 0m0.001s user@puter ~ $ time hostname -v -f gethostname()=`puter' Resolving `puter' ... Result: h_name=`puter.local' Result: h_aliases=`puter' Result: h_addr_list=`192.168.44.32' puter.local real0m0.005s user0m0.003s sys 0m0.003s What is the recommended way for /etc/hosts? I'm at a simple home network, behind a NAT cable modem, and do not have a dns domain name. What is the content of your /etc/hosts file? This is my hostfile: 127.0.0.1 localhost ::1 localhost 192.168.44.32 puter.local puter Regards wabe Hi Wabe IP changes dynamically, is assigned by Networkmanager with dhclient use flag. I changed /etc/hosts as Mick/Michael pointed out in an other reply, and this solved the slow response. Here the relevant part of the corrected, working /etc/hosts: # IPv4 and IPv6 localhost aliases 127.0.0.1 cadd.homeLAN localhost ::1 cadd.homeLAN localhost cadd Thanks for your time looking into it and the hints. Urs
Re: [gentoo-user] Slow startx - Why does hostname -f hang?
On 01/04/15 15:20, Mick wrote: On Sunday 04 Jan 2015 16:06:50 Urs Schütz wrote: Hi list While hunting down slow startx times (12-16s instead the usual 2-5s) I found that "hostname -f" tries to resolve the hostname. This is a slow process (timeout?): urs@cadd ~ $ time hostname -v gethostname()=`cadd' cadd real0m0.001s user0m0.000s sys 0m0.001s urs@cadd ~ $ time hostname -v -f gethostname()=`cadd' Resolving `cadd' ... Result: h_name=`cadd' Result: h_addr_list=`127.0.0.1' cadd real0m10.011s user0m0.000s sys 0m0.001s urs@cadd ~ $ man hostname ...snip... -f, --fqdn, --long Display the FQDN (Fully Qualified Domain Name). A FQDN consists of a short host name and the DNS domain name. Unless you are using bind or NIS for host lookups you can change the FQDN and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. ...snip... My /etc/hosts.conf orders hosts before bind: urs@cadd ~ $ grep order /etc/host.conf # recognized are order, trim, mdns, multi, nospoof, spoof, and reorder. order hosts, bind I do not run any NIS or bind services. I solved the slow startx by replacing "hostname -f" by "hostname" in the /usr/bin/startx script, but still feel that I'm missing the real cause for the slow hostname lookup. I do not have a DNS domain name definition in /etc/hosts. I do run networkmanager. Any hints where to search? What is the recommended way for /etc/hosts? I'm at a simple home network, behind a NAT cable modem, and do not have a dns domain name. Thanks for any hints. Urs In my /etc/hosts I have something like this: # IPv4 and IPv6 localhost aliases 127.0.0.1 cad.homeLAN localhost cad ::1 cad.homeLAN localhost cad See if this solves your problem. PS. I remember a thread in this M/L about the correct way to configure a domain name and why how the Gentoo Handbook was wrong. I think there was a bug opened about it, too. Setting up /etc/hosts exactly as above did resolve the slow hostname -f lookup. urs@cadd ~ $ time hostname -v -f gethostname()=`cadd' Resolving `cadd' ... Result: h_name=`cadd.homeLAN' Result: h_aliases=`localhost' Result: h_aliases=`cadd' Result: h_addr_list=`::1' cadd.homeLAN real0m0.001s user0m0.000s sys 0m0.000s :-) Thanks for your help. Urs
[gentoo-user] Slow startx - Why does hostname -f hang?
Hi list While hunting down slow startx times (12-16s instead the usual 2-5s) I found that "hostname -f" tries to resolve the hostname. This is a slow process (timeout?): urs@cadd ~ $ time hostname -v gethostname()=`cadd' cadd real0m0.001s user0m0.000s sys 0m0.001s urs@cadd ~ $ time hostname -v -f gethostname()=`cadd' Resolving `cadd' ... Result: h_name=`cadd' Result: h_addr_list=`127.0.0.1' cadd real0m10.011s user0m0.000s sys 0m0.001s urs@cadd ~ $ man hostname ...snip... -f, --fqdn, --long Display the FQDN (Fully Qualified Domain Name). A FQDN consists of a short host name and the DNS domain name. Unless you are using bind or NIS for host lookups you can change the FQDN and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. ...snip... My /etc/hosts.conf orders hosts before bind: urs@cadd ~ $ grep order /etc/host.conf # recognized are order, trim, mdns, multi, nospoof, spoof, and reorder. order hosts, bind I do not run any NIS or bind services. I solved the slow startx by replacing "hostname -f" by "hostname" in the /usr/bin/startx script, but still feel that I'm missing the real cause for the slow hostname lookup. I do not have a DNS domain name definition in /etc/hosts. I do run networkmanager. Any hints where to search? What is the recommended way for /etc/hosts? I'm at a simple home network, behind a NAT cable modem, and do not have a dns domain name. Thanks for any hints. Urs