Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
71 views
Is it possible to protect package from removing while removing its dependencies?
I have an utility installed that requires some package (`inxi`). When I try to remove `inxi`, package manager offers to remove my utility too. ``` [root@host-15 ~]# apt-get remove inxi Чтение списков пакетов... Завершено Построение дерева зависимостей... Завершено Следующие пакеты будут УДАЛЕНЫ: inx...
I have an utility installed that requires some package (inxi). When I try to remove inxi, package manager offers to remove my utility too.
[root@host-15 ~]# apt-get remove inxi
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Следующие пакеты будут УДАЛЕНЫ:
  inxi my-utility
0 будет обновлено, 0 новых установлено, 2 пакетов будет удалено и 166 не будет обновлено.
Необходимо получить 0B архивов.
После распаковки будет освобождено 5671kB дискового пространства.
Продолжить? [Y/n]
Is there a way to protect my-utility from removing while I'm removing inxi? I I use Alt Linux with apt 0.5.15lorg2 version based on RPM packages.
nst1911 (93 rep)
Apr 25, 2025, 08:55 AM • Last activity: Apr 26, 2025, 06:25 AM
0 votes
1 answers
111 views
How to compile Go programs in AltLinux?
I'm trying to install aptly from source (I'm using [Simply Linux 9][1]), I followed their instructions under the [BINARY RELEASES][2] section: ```lang-shellsession $ git clone https://github.com/aptly-dev/aptly` ``` But I'm getting this error: ```lang-shellsession $ make install go generate go insta...
I'm trying to install aptly from source (I'm using Simply Linux 9 ), I followed their instructions under the BINARY RELEASES section:
-shellsession
$ git clone https://github.com/aptly-dev/aptly` 
But I'm getting this error:
-shellsession
$ make install
    go generate
    go install -v
    main.go:11:2: package embed is not in GOROOT (/usr/lib/golang/src/embed)
    make: *** [Makefile:32: install] Error 1
Ekaterina Ivanova iceja.net (260 rep)
Sep 8, 2022, 01:23 PM • Last activity: Dec 3, 2024, 12:11 PM
0 votes
0 answers
300 views
Is it possible to pass Basic Auth credentials to apt-get as command line arguments?
I use Alt Linux 10.2. The only way to store Basic Auth credentials supported here is to write them directly to the `sources.list` file: ``` rpm [p10] http://login:password@somerepo.com x86_64 classic ``` In the project I work to, the credentials are stored in some utility (suppose it's called `credm...
I use Alt Linux 10.2. The only way to store Basic Auth credentials supported here is to write them directly to the sources.list file:
rpm [p10] http://login:password@somerepo.com  x86_64 classic
In the project I work to, the credentials are stored in some utility (suppose it's called credmaster). I need to hide my credentials as far as possible so just write them to sources.list is not possible. One of idea is to replace apt-get with a wrapper script that would obtain credentials before calling apt-get and pass them to it. Something like that:
LOGIN=$(credmaster --login)
PSWD=$(credmaster --password)
apt-get -o 'BasicAuthCred=somerepo.url:$LOGIN:$PSWD' update
...
I tried the approach with Dir::Etc::netrc option but it did not work out (I guess apt version is too old). Is there another way or workaround to pass Basic Auth credentials to apt-get without need to store them in file?
nst1911 (93 rep)
Oct 21, 2024, 05:00 PM • Last activity: Oct 21, 2024, 05:37 PM
12 votes
1 answers
30960 views
How to enable user_namespaces in the kernel? (For unprivileged `unshare`.)
My Linux kernel must have been configured with [user_namespaces](http://man7.org/linux/man-pages/man7/user_namespaces.7.html) when built, but their use is restricted after boot and has to be explicitly enabled. Which sysctl should I use? (If this was turned on, this would allow to run an isolation c...
My Linux kernel must have been configured with [user_namespaces](http://man7.org/linux/man-pages/man7/user_namespaces.7.html) when built, but their use is restricted after boot and has to be explicitly enabled. Which sysctl should I use? (If this was turned on, this would allow to run an isolation command like unshare --user --map-root-user --mount-proc --pid --fork, and then perform [chroot without being root](https://unix.stackexchange.com/q/72696/4319)--a much anticipated feature of Linux.)
imz -- Ivan Zakharyaschev (15862 rep)
Aug 13, 2016, 04:37 PM • Last activity: Mar 27, 2023, 11:03 AM
3 votes
0 answers
150 views
What exactly is the `/etc/net` project?
I was reading about iproute2 [here](https://wiki.linuxfoundation.org/networking/iproute2) and I saw the following sentence: > The /etc/net project aims to support most modern network technologies, as it doesn't use ifconfig and allows a system administrator to make use of all iproute2 features, incl...
I was reading about iproute2 [here](https://wiki.linuxfoundation.org/networking/iproute2) and I saw the following sentence: > The /etc/net project aims to support most modern network technologies, as it doesn't use ifconfig and allows a system administrator to make use of all iproute2 features, including traffic control. The [link provided](https://wiki.linuxfoundation.org/networking/etcnet) points to multiple pages with some configuration examples. From those examples I infer that the /etc/net project is mostly a set of conventions about files inside the /etc/net directory to store and manage network configuration. After some googling I found what it seems to be the [official website](https://en.altlinux.org/Etcnet) of the project (in russian but with an english translation). The project was created and is maintained by the team behind yet another linux distribution called Alt Linux. So far this is what I know... but I have questions... * Is the project abandoned? Did it ever gain any traction? Why is the Linux Foundation wiki mentioning it as if it is a big deal? * What is exactly the problem that the project intended to solve? Is that problem solved now by another more successful project?
eciii (253 rep)
Oct 6, 2022, 12:14 PM
2 votes
1 answers
338 views
set XMPP priority of the jabber client in pidgin
I'm using *pidgin* Jabber client ([pidgin-2.13.0-alt6](https://packages.altlinux.org/en/sisyphus/srpms/pidgin) on ALT Sisyphus), and I'd like [to set XMPP priority](https://superuser.com/a/1137749/65570) in pidgin. The reason: I'm also connecting to my Jabber account with another client from mobile...
I'm using *pidgin* Jabber client ([pidgin-2.13.0-alt6](https://packages.altlinux.org/en/sisyphus/srpms/pidgin) on ALT Sisyphus), and I'd like [to set XMPP priority](https://superuser.com/a/1137749/65570) in pidgin. The reason: I'm also connecting to my Jabber account with another client from mobile smartphone (*aTalk*), and I'd like to set XMPP priority in pidgin, so that whenever I'm at my computer (where pidgin is running), it is [selected as the one which receives the messages](https://unix.stackexchange.com/q/163698/4319) people send to me, and whenever I'm away, the mobile client receives them (because there is more chance I'll see them on the mobile when I'm away). Where do I set XMPP priority in pidgin?
imz -- Ivan Zakharyaschev (15862 rep)
Feb 20, 2020, 05:51 PM • Last activity: Feb 28, 2020, 11:47 PM
1 votes
1 answers
1898 views
list Windows shared folders (samba) available in the local network?
> **Possible Duplicate:** > [How to get list of computers similar to what is shown under "Network" in Windows](https://unix.stackexchange.com/questions/21965/how-to-get-list-of-computers-similar-to-what-is-shown-under-network-in-windows) I suspect the services shared by Windows (including shared fol...
> **Possible Duplicate:** > [How to get list of computers similar to what is shown under "Network" in Windows](https://unix.stackexchange.com/questions/21965/how-to-get-list-of-computers-similar-to-what-is-shown-under-network-in-windows) I suspect the services shared by Windows (including shared folders) can be looked for with a samba command (similar to avahi-browse -a for exploring the avahi/bonjour services available in the local network). What is this command? (I want to use it to check that the folders shared by Windows can really be seen in the network. Then I'll think how to use the shared files in my GNU/Linux system running on a laptop; perhaps, mount them or use them by exploring them in Nautilus or a similar browser (although I do not usually use such graphical browsers; I'm inclined to command-line and Emacs' eshell and dired).)
imz -- Ivan Zakharyaschev (15862 rep)
Aug 11, 2012, 07:15 AM • Last activity: Oct 13, 2017, 04:27 AM
3 votes
1 answers
3570 views
Can one disable tap-to-click in X server configuration, without synclient?
I want to configure my system so that tap-to-click is disabled on the touchpad. (It's running a rather old version of ALTLinux distro with xorg-server-1.4.2-alt10.M41.1.) The most popular [advice](https://askubuntu.com/a/166407/19753) I have found is to execute `synclient MaxTapTime=0` in the user's...
I want to configure my system so that tap-to-click is disabled on the touchpad. (It's running a rather old version of ALTLinux distro with xorg-server-1.4.2-alt10.M41.1.) The most popular [advice](https://askubuntu.com/a/166407/19753) I have found is to execute synclient MaxTapTime=0 in the user's X session. I could accept this solution, but the problem is that this doesn't work for all users with their different preferred X "environment". The first user has logged in in the linux console, and run startx. X server for his session has occupied the 7th virtual linux console. He uses bare ratpoison. The second user has logged in, run startx. X server for his session has occupied the 8th virtual linux console. He uses WindowMaker. synclient MaxTapTime=0 has had an effect in the second user's X session, but has had no effect when executed in the first user's X session. So, can this setting be done system-wide, for the X server, perhaps in xorg.conf?
imz -- Ivan Zakharyaschev (15862 rep)
Mar 28, 2013, 02:23 PM • Last activity: Aug 28, 2017, 05:14 PM
0 votes
1 answers
2084 views
Why can `lsof -i` not show an open connection which `netstat -n` lists?
A strange situation. I started telnet 0 8081 and `lsof -i` (run under root) doesn't list this connection, but `netstat -n` does. Why can this be?
A strange situation. I started telnet 0 8081 and lsof -i (run under root) doesn't list this connection, but netstat -n does. Why can this be?
imz -- Ivan Zakharyaschev (15862 rep)
Mar 19, 2015, 10:06 AM • Last activity: Nov 10, 2016, 05:09 PM
8 votes
2 answers
10646 views
working with filenames in a different encoding over ssh
I'm ssh'ing to a remote system where a different encoding for the filenames (and for the users' locales) has been used. And this causes some problems. ### Problems solved by matching the locale settings Before I move to the problems with filenames, I want to say that some encoding problems with such...
I'm ssh'ing to a remote system where a different encoding for the filenames (and for the users' locales) has been used. And this causes some problems. ### Problems solved by matching the locale settings Before I move to the problems with filenames, I want to say that some encoding problems with such an ssh session [are solved by setting the remote locale so that it matches the local locale](https://unix.stackexchange.com/q/16784/4319) , namely, * the problems with editing the command line (I pressed Backspace trice, but since on my host the encoding is UTF-8, and on the remote end -- KOI8-R, or perhaps CP1251, some 8-bit Cyrillic encodings, this didn't affect my Cyrillic string correctly): [imz@localhost ~]$ locale LANG=ru_RU.UTF-8 LC_CTYPE="ru_RU.UTF-8" LC_NUMERIC="ru_RU.UTF-8" LC_TIME="ru_RU.UTF-8" LC_COLLATE="ru_RU.UTF-8" LC_MONETARY="ru_RU.UTF-8" LC_MESSAGES="ru_RU.UTF-8" LC_PAPER="ru_RU.UTF-8" LC_NAME="ru_RU.UTF-8" LC_ADDRESS="ru_RU.UTF-8" LC_TELEPHONE="ru_RU.UTF-8" LC_MEASUREMENT="ru_RU.UTF-8" LC_IDENTIFICATION="ru_RU.UTF-8" LC_ALL= [imz@localhost ~]$ echo привет привет [imz@localhost ~]$ echo при при [imz@localhost ~]$ ssh -vv ivan@example.com Last login: Fri Nov 25 13:44:56 2011 from NN.NN.NN.NN [ivan@dell ~]$ locale LANG=ru_RU.KOI8-R LC_CTYPE="ru_RU.KOI8-R" LC_NUMERIC="ru_RU.KOI8-R" LC_TIME="ru_RU.KOI8-R" LC_COLLATE="ru_RU.KOI8-R" LC_MONETARY="ru_RU.KOI8-R" LC_MESSAGES=POSIX LC_PAPER="ru_RU.KOI8-R" LC_NAME="ru_RU.KOI8-R" LC_ADDRESS="ru_RU.KOI8-R" LC_TELEPHONE="ru_RU.KOI8-R" LC_MEASUREMENT="ru_RU.KOI8-R" LC_IDENTIFICATION="ru_RU.KOI8-R" LC_ALL= [ivan@dell ~]$ echo привет привет [ivan@dell ~]$ echo при привÐ [ivan@dell ~]$ export LANG=ru_RU.UTF-8 [ivan@dell ~]$ echo привет привет [ivan@dell ~]$ echo при при [ivan@dell ~]$ * the problem with correct understanding of case-insensitivity for the strings processed; now it would work, after I set the locale: [ivan@dell ~]$ echo привет | fgrep -i ВЕТ привет [ivan@dell ~]$ but this wouldn't work before. ### Minor problems with filenames The utilities that print out filenames (which, as you remember, are stored remotely in a different encoding) wouldn't print them verbatim, but they susbstitute question marks for the foreign characters: [ivan@dell ~]$ find ~mama/Desktop/ -iname '*.xls' /home/mama/Desktop/????????? ????????.xls /home/mama/Desktop/???????? ??? ???????????? (1).xls /home/mama/Desktop/???????? ??? ???????????? (2).xls /home/mama/Desktop/???????? ??? ???????????? (3).xls /home/mama/Desktop/???????? ??? ????????????.xls [ivan@dell ~]$ find ~mama/Desktop/ -iname '*.xls' -print /home/mama/Desktop/????????? ????????.xls /home/mama/Desktop/???????? ??? ???????????? (1).xls /home/mama/Desktop/???????? ??? ???????????? (2).xls /home/mama/Desktop/???????? ??? ???????????? (3).xls /home/mama/Desktop/???????? ??? ????????????.xls [ivan@dell ~]$ The same problem is exhibited by ls, and so on. But this can be easily overcome by passing them as strings to printing commands (that are not aware of the issue with non-matching encodings of the filenames and of the terminal--or for whatever reason, but it works): [ivan@dell ~]$ find ~mama/Desktop/ -iname '*.xls' -print0 | xargs -0 -n 1 echo /home/mama/Desktop/Êðåäèòíûé ïîðòôåëü.xls /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (1).xls /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (2).xls /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (3).xls /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé.xls [ivan@dell ~]$ Also, the fact that they are unreadable wasn't very annoying, because I could always append an | recode -f cp1251..utf-8 at the end of the command. ## The annoying problem The essential problem is that selecting (with a mouse) the filenames in the terminal and pasting them doesn't work: [ivan@dell ~]$ diff '/home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (1).xls' '/home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (3).xls' diff: /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (1).xls: No such file or directory diff: /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (3).xls: No such file or directory [ivan@dell ~]$ I've noticed an escaped representation of the filenames in the output of stat, so I was able to select and paste it (inside $'' in *bash*): [ivan@dell ~]$ diff '/home/mama/Desktop/\300\304\320\305\321\300\322\333 \344\353\377 \357\356\347\344\360\340\342\353\345\355\350\351 (1).xls' '/home/mama/Desktop/\300\304\320\305\321\300\322\333 \344\353\377 \357\356\347\344\360\340\342\353\345\355\350\351 (3).xls' diff: /home/mama/Desktop/\300\304\320\305\321\300\322\333 \344\353\377 \357\356\347\344\360\340\342\353\345\355\350\351 (1).xls: No such file or directory diff: /home/mama/Desktop/\300\304\320\305\321\300\322\333 \344\353\377 \357\356\347\344\360\340\342\353\345\355\350\351 (3).xls: No such file or directory [ivan@dell ~]$ diff $'/home/mama/Desktop/\300\304\320\305\321\300\322\333 \344\353\377 \357\356\347\344\360\340\342\353\345\355\350\351 (1).xls' $'/home/mama/Desktop/\300\304\320\305\321\300\322\333 \344\353\377 \357\356\347\344\360\340\342\353\345\355\350\351 (3).xls' Files /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (1).xls and /home/mama/Desktop/ÀÄÐÅÑÀÒÛ äëÿ ïîçäðàâëåíèé (3).xls differ [ivan@dell ~]$ So, the question is: > How to conveniently work with remote filenames (over *ssh*), which are > in a different encoding? It would be nice if they were readable, and selectable and pastable (and also typable by me from the keyboard and then completable by Tab in *bash*; to be typable by me conveniently, they must be readable, of course). I'm working in *urxvt* in *X.org* on *Linux* on the local host, and it's *bash* on *Linux* at the remote end.
imz -- Ivan Zakharyaschev (15862 rep)
Nov 25, 2011, 05:40 PM • Last activity: Nov 10, 2016, 05:08 PM
6 votes
1 answers
2341 views
Disabling an Xorg server's extension at runtime (for new clients)?
I have an old Xorg server whose ["Render" extension seems to be buggy (if enabled, most of the fonts are invisible, unless hovering over them -- after upgrading the packages with X clients and libraries)](https://bugzilla.altlinux.org/show_bug.cgi?id=29956). So, the problem is solved for new instanc...
I have an old Xorg server whose ["Render" extension seems to be buggy (if enabled, most of the fonts are invisible, unless hovering over them -- after upgrading the packages with X clients and libraries)](https://bugzilla.altlinux.org/show_bug.cgi?id=29956) . So, the problem is solved for new instances of the Xorg server by adding to /etc/X11/xorg.conf: Section "Extensions" Option "RENDER" "Disable" EndSection But what if I want to continue an X session, but make new clients not use the extension? (Of course, logically, [old clients can't be made not to use it](https://unix.stackexchange.com/a/4288/4319) ; but what about new ones?) Some options are: 1. Can I turn one of the server's extension off on the fly, while the server is running? 2. Can I tell the clients not to use it (e.g., those written with a specific toolkit)? 3. IS there an "X proxy" which could be used for my goal: the proxy could simply not advertise that it has a "Render" extension, or translate the requests that involve it, and forward everything to the "physical" X server, and my new clients would then connect to the proxy's DISPLAY.
imz -- Ivan Zakharyaschev (15862 rep)
Apr 7, 2014, 12:01 AM • Last activity: Nov 10, 2016, 05:05 PM
5 votes
1 answers
553 views
Can one disable tap-to-click in X server configuration without "InputClass" sections?
I want to configure my system so that tap-to-click is disabled on the touchpad. (It's running a rather old version of ALTLinux distro with xorg-server-1.4.2-alt10.M41.1.) I'm interested in a solution without running `synclient` in each X session. Probably, my X server is too old so that it doesn't u...
I want to configure my system so that tap-to-click is disabled on the touchpad. (It's running a rather old version of ALTLinux distro with xorg-server-1.4.2-alt10.M41.1.) I'm interested in a solution without running synclient in each X session. Probably, my X server is too old so that it doesn't understand "InputClass" sections in xorg.conf, as [suggested in another answer by Vincent Nivoliers](https://unix.stackexchange.com/a/70435/4319) : Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "MaxTapTime" "0" EndSection The I get an error; from Xorg.*.log: (==) Using config file: "/etc/X11/xorg.conf" Parse error on line 71 of section InputClass in file /etc/X11/xorg.conf "InputClass" is not a valid section name. (EE) Problem parsing the config file (EE) Error parsing the config file Also, my xorg.conf doesn't have any explicit "InputDevice" sections (with a comment: "With libXiconfig we don't need configuration for ps and usb mice."). How do I put the "MaxTapTime" option into my xorg.conf so that the configuration of my input devices (including the touchpad) is not broken? (If I write explicit "InputDevice" sections, I might break the correct configuration obtained automatically..) Perhaps, the output of xinput list can be of some use. I do not want to make the question too specific by posting my xinput list and asking what to do in this specific case. Let it be just an example: $ xinput list "Virtual core keyboard" id=0 [XKeyboard] Num_keys is 248 Min_keycode is 8 Max_keycode is 255 "Virtual core pointer" id=1 [XPointer] Num_buttons is 32 Num_axes is 2 Mode is Relative Motion_buffer is 256 Axis 0 : Min_value is 0 Max_value is -1 Resolution is 0 Axis 1 : Min_value is 0 Max_value is -1 Resolution is 0 "AT Translated Set 2 keyboard" id=4 [XExtensionKeyboard] Type is KEYBOARD Num_keys is 248 Min_keycode is 8 Max_keycode is 255 "PS/2 Mouse" id=3 [XExtensionPointer] Type is MOUSE Num_buttons is 32 Num_axes is 2 Mode is Relative Motion_buffer is 256 Axis 0 : Min_value is -1 Max_value is -1 Resolution is 1 Axis 1 : Min_value is -1 Max_value is -1 Resolution is 1 "AlpsPS/2 ALPS GlidePoint" id=2 [XExtensionPointer] Type is TOUCHPAD Num_buttons is 12 Num_axes is 2 Mode is Relative Motion_buffer is 256 Axis 0 : Min_value is 0 Max_value is -1 Resolution is 1 Axis 1 : Min_value is 0 Max_value is -1 Resolution is 1 $ I expect the answer to give some general advice, not specific for this case.
imz -- Ivan Zakharyaschev (15862 rep)
Apr 17, 2014, 05:53 PM • Last activity: Nov 10, 2016, 05:05 PM
15 votes
2 answers
18942 views
How to use libraries installed by nix at run-time?
I'm using `nix` in "single-user mode" in a system where I'm not the root (see below for a description of my nix setup). I wanted to quickly run one of my binaries which is dynamically linked with a library which is absent in the system. So, I've installed the library with `nix`: $ nix-env -qa 'gmp'...
I'm using nix in "single-user mode" in a system where I'm not the root (see below for a description of my nix setup). I wanted to quickly run one of my binaries which is dynamically linked with a library which is absent in the system. So, I've installed the library with nix: $ nix-env -qa 'gmp' gmp-4.3.2 gmp-5.1.3 $ nix-env -i gmp-5.1.3 But the library is still not found by the linker: $ ldd -r ../valencies ../valencies: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by ../valencies) ../valencies: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ../valencies) linux-vdso.so.1 => (0x00007fffbbf28000) /usr/local/lib/libsnoopy.so (0x00007f4dcfbdc000) libgmp.so.10 => not found libffi.so.5 => /usr/lib64/libffi.so.5 (0x00007f4dcf9cc000) libm.so.6 => /lib64/libm.so.6 (0x00007f4dcf748000) librt.so.1 => /lib64/librt.so.1 (0x00007f4dcf540000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f4dcf33c000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4dcf11f000) libc.so.6 => /lib64/libc.so.6 (0x00007f4dced8b000) /lib64/ld-linux-x86-64.so.2 (0x00007f4dcfde7000) undefined symbol: __gmpz_gcd (../valencies) undefined symbol: __gmpn_cmp (../valencies) undefined symbol: __gmpz_mul (../valencies) undefined symbol: __gmpz_fdiv_r (../valencies) undefined symbol: __gmpz_fdiv_q_2exp (../valencies) undefined symbol: __gmpz_com (../valencies) undefined symbol: __gmpn_gcd_1 (../valencies) undefined symbol: __gmpz_sub (../valencies) symbol memcpy, version GLIBC_2.14 not defined in file libc.so.6 with link time reference (../valencies) undefined symbol: __gmpz_fdiv_q (../valencies) undefined symbol: __gmpz_fdiv_qr (../valencies) undefined symbol: __gmpz_add (../valencies) undefined symbol: __gmpz_init (../valencies) undefined symbol: __gmpz_ior (../valencies) undefined symbol: __gmpz_mul_2exp (../valencies) undefined symbol: __gmpz_xor (../valencies) undefined symbol: __gmpz_and (../valencies) symbol __fdelt_chk, version GLIBC_2.15 not defined in file libc.so.6 with link time reference (../valencies) undefined symbol: __gmpz_tdiv_qr (../valencies) undefined symbol: __gmp_set_memory_functions (../valencies) undefined symbol: __gmpz_tdiv_q (../valencies) undefined symbol: __gmpz_divexact (../valencies) undefined symbol: __gmpz_tdiv_r (../valencies) $ Look, it is present in the filesystem: $ find / -name 'libgmp.so.10' 2>/dev/null /nix/store/mnmzq0qbrvw6dv1k2vj3cwz9ffdh05zr-user-environment/lib/libgmp.so.10 /nix/store/fnww2w81hv5v3dl9gsb7p4llb7z7krzd-gmp-5.1.3/lib/libgmp.so.10 $ What do I do so that libraries installed by nix are "visible"? Probably, the standard user-installation script of nix modifies .bash_profile to add its bin/ into PATH, but does not do something analogous for libraries. ###My nix setup: The only thing I have asked the root to do for me was: mkdir -m 0755 /nix && chown ivan /nix, otherwise I've followed the standard simple nix installation procedure. So now I can use custom programs from nix packages. I couldn't do this nicely without any help from the root at all, i.e., without /nix/, because /nix/ was not available for me; I could of course use another directory, but then the pre-built binary packages wouldn't be valid and all packages would have to be rebuilt, according to the nix documentation. In my case, it was simpler to ask for /nix/ for me. Another thing I've done is adding to ~/.bash_profile: export NIX_CONF_DIR=/nix/etc/nix so that I can edit nix.conf. (It was supposed to be in the root-controlled /etc/ otherwise. I did it because I wanted to build-max-jobs and build-cores settings in it.)
imz -- Ivan Zakharyaschev (15862 rep)
Mar 17, 2015, 01:35 PM • Last activity: Nov 10, 2016, 05:04 PM
2 votes
0 answers
906 views
Where are the default font preferences in a modern Unix desktop stored (those which affect the choice of the font by an uncustomized Emacs 24)?
My situation and my question are like the ones in : > after the recent upgrade to emacs 24.x (...) my font size > is too large (one times C-x C-minus corrects it temporarily for the > buffer). The menu font size is fine, the rest (buffer, mode line, > minibuffer is too large). I've read about the va...
My situation and my question are like the ones in : > after the recent upgrade to emacs 24.x (...) my font size > is too large (one times C-x C-minus corrects it temporarily for the > buffer). The menu font size is fine, the rest (buffer, mode line, > minibuffer is too large). I've read about the various ways to set the > font size. > > **Is there a specific reason why the font size has increased after the > update? And thus a global way to correct it?** So, even having read about all the ways to set a font in Emacs, I haven't found an answer which would explain the difference in font size between an uncustomized Emacs 23.x and Emacs 24.y. Probably, it's as in that answer: > Emacs 24 adds support for gconf and gsettings, so it'll pick whatever > monospace font and sizes you have set as the default in your system > settings I'd like to know the place these settings are stored, and to tweak them (so that not only Emacs, but perhaps other similarly behaving programs would get my font settings). I'm especially interested in making the default font size smaller again. (Now, I'm using Xfce.)
imz -- Ivan Zakharyaschev (15862 rep)
Jan 11, 2015, 01:06 AM • Last activity: Nov 10, 2016, 05:03 PM
1 votes
0 answers
1528 views
How do I ask NetworkManager/ModemManager to run a program before pppd?
The story is not so important for this question, but here it is: the GPRS modem is locked-in to the vendor's software (it doesn't work, if it doesn't receive a correct response to a "challenge" it prints from time to time). To use it under Linux, someone has reverse-engineered/disassembled that code...
The story is not so important for this question, but here it is: the GPRS modem is locked-in to the vendor's software (it doesn't work, if it doesn't receive a correct response to a "challenge" it prints from time to time). To use it under Linux, someone has reverse-engineered/disassembled that code, and now there is a daemon-like program which scans for the device to appear and then starts sending special commands to it. The source of this program has been lost, so we cannot rewrite it. If the daemon is run before NetworkManager starts connecting, NetworkManager fails because of some access conflict. If the daemon is run after the PPP connection has been established, the connection is broken (probably because it interferes with it, at the initial stage, perhaps.) But I've found out that if the daemon is started and then pppd is run manually, everything works fine. But people use NetworkManager. How does one make NetworkManager run another program before pppd for a specific connection? (I know a hack to do this for any connection: simply substitute the pppd binary with a wrapper! Perhaps, it's even not so bad, except for intruding into a distro's package, which means that our wrapper would be overwritten with a package upgrade.) A simpler question: How does one make NetworkManager use another program instead of standard pppd (without replacing pppd at its standard location)? A harder question: How does one make NetworkManager run this special program if it is going to use some defined model of GPRS modem?
imz -- Ivan Zakharyaschev (15862 rep)
Mar 29, 2015, 04:15 AM • Last activity: Nov 10, 2016, 05:03 PM
2 votes
1 answers
226 views
Where can I find mailfromd RPM's for CentOS 6?
I have been trying to locate an RPM for GNU Mailfromd and it's dependencies and have been quite surprised to find it absolutely nowhere on the 'net. Only place I could find any [RPM's were for ALTLinux](http://packages.altlinux.org/en/Sisyphus/srpms/mailfromd/get). Anyone know where I could find it?...
I have been trying to locate an RPM for GNU Mailfromd and it's dependencies and have been quite surprised to find it absolutely nowhere on the 'net. Only place I could find any [RPM's were for ALTLinux](http://packages.altlinux.org/en/Sisyphus/srpms/mailfromd/get) . Anyone know where I could find it? I have some advanced filtering needs for postfix and it seems to be the most flexible solution available. I've had a lot of trouble trying to compile the dependencies (also not available it seems) myself (GNU mail-tools, guile, etc). Does GNU have an RPM repository somewhere?
Clint Priest (326 rep)
Dec 12, 2012, 03:15 AM • Last activity: Nov 15, 2015, 01:12 AM
1 votes
0 answers
393 views
Canon MF4550d refuses to print from Linux server
We have several Canon mf4550d printers at the office directly connected to Windows 7 machines. I need to print from a Linux server to those printers. I have installed the latest drivers for my model of printer. I've added the printer to CUPS through the web interface on `http://localhost:631`. All p...
We have several Canon mf4550d printers at the office directly connected to Windows 7 machines. I need to print from a Linux server to those printers. I have installed the latest drivers for my model of printer. I've added the printer to CUPS through the web interface on http://localhost:631. All printer jobs are sending without any problems (no errors in log files), but the printer doesn't print. Other printers, for example HP LaserJet 3055, work fine. I guess it'd be connected with the port settings on the local machine, because canon has port settings as usb001 but HP has DOT4_0001. I tried to plug both printers into one computer and in the port settings of the Canon I changed usb001 to DOT4_001. And then when I send printer jobs to the Canon my HP prints the following error: > unable to open the initial device, quitting. How can I resolve my problem? My Linux server uses AltLinux 7.0.4 Centaurus (see its [cups](http://packages.altlinux.org/en/p7/srpms/cups) package).
enik84 (11 rep)
Jul 6, 2014, 03:19 PM • Last activity: Nov 15, 2015, 01:06 AM
Showing page 1 of 17 total questions