Newest questions tagged linux - Super User © superuser.commost recent 30 from superuser.com2018-03-18T08:03:32Z client : No keychain service available © superuser.comDBLouis<p>I have installed the nextcloud-client package from <a href="" rel="nofollow noreferrer"></a>, with qtkeychain, libgnome-keyring and gnome-keyring.</p><p>I run the daemon in my <code>.xinitrc</code> like explained on the <a href="" rel="nofollow noreferrer">ArchWiki</a>:</p><pre><code>eval $(gnome-keyring-daemon --start)export SSH_AUTH_SOCK</code></pre><p>And it is still not working (No keychain service available).Any advice?</p> NFD-encoded filenames © superuser.comLukeLR<p>I have rsync'd a directory from a Mac to a linux box containing files and folders with special characters (umlauts). Unfortunately, the Mac uses NFD encoding (thanks, Apple!) which rsync didn't convert to the NFC standard file name encoding. <code>rsync</code> lists those files as e.g. <code>Einversta?\#210ndniserkla?\#210rung.pdf</code> what should be <code>Einverständniserklärung.pdf</code> during transfer. On the linux box, that leads to duplicate files, e.g. the folder containing two files of the same name <code>Einverständniserklärung.pdf</code> (one in NFD and one in NFC encoding).</p><p>How can I find all files in NFD-encoding and delete them? This must be possible, e.g. by using <code>find</code>.</p> Wget to login to website (need help) © superuser.comSteiner K<p>I am trying to login to a website using wget and saving cookies + session active to be able to download another page on this website (it require to be logged in)</p><p>I did look into the source of the page and it look like it is the following:</p><p> wget --no-check-certificate --save-cookies cookies.txt --keep-session-cookies --post-data "loginId=<strong></strong>&amp;password=<strong>PASSWORD</strong>&amp;submit-btn" "<a href="" rel="nofollow noreferrer"></a>" </p><p>I think I am missing a token or a referer... Are you able to help me please?</p><p>Please note I can automate the process to download the login page and keep the token value into a variable and use this token into my wget. I am saying this because I know it might not be acheivable with only wget since login page usually return a token and it is random each time.</p><p>%40 is for the @</p><p>Let me know</p><p>Thanks!</p> about to install a software need x windows on linux and need the x windows build process pls [on hold] © superuser.comdan neumad<p>Thats the software page: <a href="" rel="nofollow noreferrer"></a></p><p>Its says on the software page these words: "MindGuard X has been successfully compiled and run on Linux 2.0.35 and 2.2.* and requires X Windows with GTK+ 1.2.x or better. MindGuard X is released under the MindGuard Public License (MGPL)."</p><p>My question is : Does how may i build the x windows at minimum steps for running that software?</p><p>And does this software will run on linux mint with x windows and all of the other software in your opinion?</p><p>I tried to look in x windows page btw.</p> graphics artifacts after waking up from suspend on Linux and macOS © superuser.comarcus_mannen<p>I have an iMac from 2007 with a ATI Radeon HD 2400 XT graphics card. When I run Debian or Lubuntu on it, and wake it up after suspend, there are some pretty severe graphics artifacts showing. This image is pretty much what it looks like for me. <a href="" rel="nofollow noreferrer">Credits</a></p><p><a href="" rel="nofollow noreferrer"><img src="" alt="Artifacts image"></a><br><a href="" rel="nofollow noreferrer"><sup>[Click to see larger image.]</sup></a></p><p>However, when I took a screenshot of my own artifacts, the screenshot looked fine! No sign of artifacts at all.</p><p>Some observations:</p><ul><li>Wake up from suspend on Debian/Lubuntu <em>with</em> drivers causes artifacts.</li><li>Wake up from suspend on Debian <em>without</em> drivers doesn't work at all. (Doesn't surprise me. On other computers, on both Windows and Linux, I haven't been able to wake up from suspend without graphics drivers).</li><li>Wake up from suspend on macOS el Capitan <em>doesn't</em> cause artifacts.</li><li><strong>However</strong>, the computer's previous owner has reported that artifacts showed up on mac OS. I don't know when though. So far I haven't been able to reproduce them.</li><li>For <em>all</em> OSes when running (before suspend) and during installations, no artifacts at all!</li></ul><p>I read <a href="" rel="nofollow noreferrer">this post</a> where post #7 is of interest. It sounded promising. I did what was suggested when booted in mac OS, but it didn't change anything (since I had no artifacts to begin with).</p><p>My questions then are</p><ul><li>How can I apply the suggested fix on Linux?</li><li>Is there anything else I can try?</li></ul><p>It might be a hardware failure on some part. But it only shows up some times, and other times the failure isn't noticeable. So I thought, how to keep things so the failure isn't noticeable? What differs before and after suspend?</p> Globbing in Unix or Linux, [duplicate] © superuser.comAbdul Moeed<div class="question-status question-originals-of-duplicate"><p>This question already has an answer here:</p><ul><li><a href="/questions/1217773/find-utility-does-not-output-all-files-when-using-wildcards" dir="ltr">&#39;find&#39; utility does not output all files when using wildcards</a><span class="question-originals-answer-count">1 answer</span></li></ul></div><h1>Explain the difference between these two commands.</h1><blockquote><p>$ find /data -name "*.txt"</p><p>$ find /data -name *.txt</p></blockquote> wifi not detected in Cent OS 7.4 (mac) (EFI) © superuser.comRajdeep Bhattacharjee<p>I have a MacBook Pro Mid-2012 with a bcm4331 wifi chip. I'm using Cent OS 7.4 and it can't detect my wifi hardware. I want to share that I've tried using wl-kmod from the website (which installs wl module) -</p><p><a href="" rel="nofollow noreferrer"></a></p><p>which worked although was giving frequent disconnection and was unable to connect to my university network most of the times ( which has a proxy ). So I tried using the method of installing b43 module, following instruction from the following website -</p><p><a href="" rel="nofollow noreferrer"></a></p><p>which I did correctly (I think :P), but at the end it says that "modprobe: FATAL: Module b43 not found" as a response to "modprobe b43" input.</p><p>Please help me _/|\_ Thanks in advance :-)</p> Applications not working in other user © superuser.comFirst dev<p>I am new in Kali Linux.</p><p>I am running Kali from USB in persistent mode, I created a new user and I logged into it.</p><p>When I try to run an app like mdk3 it does not work. It give me this error: <code>bash: mdk3: command not found</code></p><p>All apps are working correctly when using root user.</p> scan from Fujitsu ix500 to Linux over USB © superuser.comens<p>I want to start a scan by pressing the scanner's scan button and have the data delivered to a Linux box.</p><p>Unfortunately, I can't use the scanner's WLAN interface, so I'm stuck with USB.</p><p>Is there any chance to make this work?</p><p>Here's a few speculative ways to achieve this. Did you have success with any of these?</p><ul><li>Run a client on Linux that (partially) adheres to the protocol that's implemented in ScanSnap's Windows and macOS clients (unlikely)</li><li>Install a USB-to-Ethernet adapter on the scanner and get the scanner to use it as an ethernet device. I could then scan to FTP.</li><li>Install the official Windows client via Wine.</li></ul> There An Ansible Task To Create Services © superuser.comopticyclic<p>Ansible has a task to ensure services (systemd in this case) are started or stopped etc.</p><p>However, is there a task to create the service?</p><p>Right now I am copying a template to the correct directory to create it.</p> can't connect to ms sql instance - internal © superuser.combatmanforever<p>The Platform and Software versions I am using are as follows :</p><pre><code>Red Hat Enterprise Linux Server release 7.4 (Maipo)Microsoft SQL Server 2017 (RTM-CU3-GDR) (KB4052987) - 14.0.3015.40 (X64) Dec 22 2017 16:13:22 Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) onWindows Server 2012 R2 Standard 6.3 &lt;X64&gt; (Build 9600:) (Hypervisor)</code></pre><p>I have searched a lot for answers on Google but haven't found any solution yet. I can't connect to <code>RDS instance having MS SQL instance</code> via Linux.</p><p>It shows following errors If I try to :</p><pre><code>[ec2-user@ip-~]$ sqlcmd -H -P 1433-U userXXXXX -P aXXXXXX-Q 'SELECT TOP 1 [n] FROM [dbbase2].[dbo].[table_people]'Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server :Login timeout expired.Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server :TCP Provider: Error code 0x2749.Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server :A network-related or instance-specific error has occurred whileestablishing a connection to SQL Server. The server is not foundor not accessible. Check if instance name is correct and if SQLServer is configured to allow remote connections. For moreinformation see SQL Server Books Online.[ec2-user@ip- ~]$ Check if instance name is correct and if SQL Server isconfigured to allow remote connections.</code></pre><p>Could anyone please tell the issue and resolution ?</p><p>Thanks.</p> scp to remote system © superuser.comArnold<p>I try to copy files from my raspberry pi. I can rsh from my host into the pi and list the files but I cannot scp. When I issue:</p><pre><code>scp -r /home/arnold/pi arnold@</code></pre><p>I get the error message:</p><pre><code>setterm: $TERM is not defined.</code></pre><p>TERM is set both on the host as on the raspberry. I googled for the error but in connection with scp I could not find any useful reference. I am somewhat baffled that scp needs TERM. Does anyone know what I am doing wrong?</p> static address in a Yocto custom filesystem © superuser.comMark<p>I'm using a third-party custom Yocto image that by default set the network connection with DHCP. <code>/etc/network/interfaces</code> file is not present at all.</p><p>In order to set a static address I create the file as usual:</p><pre><code>auto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress</code></pre><p>and rebooted but nothing has changed:</p><pre><code># ifconfigeth0 Link encap:Ethernet HWaddr 00:60:80:40:00:11inet addr: Bcast: Mask: addr: fd00::260:80ff:fe40:11/64 Scope:Globalinet6 addr: fe80::260:80ff:fe40:11/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:2037 errors:0 dropped:0 overruns:0 frame:0TX packets:924 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:157492 (153.8 KiB) TX bytes:100759 (98.3 KiB)Interrupt:152 Base address:0xc000</code></pre><p>I don't find a "usual" way to set or restart networking services (I know a bit Debian) hence I'm not sure if I need to enable something else.</p><p>I checked any script in <code>/etc/init.d</code> but there are only scripts for dropbear, ntpd and few others.</p><p>Here some other information:</p><pre><code># uname --aLinux 3.10.31-ltsi-05172-g28bac3e-dirty #10 SMP Mon Nov 6 16:01:20 EST 2017 armv7l GNU/Linux</code></pre><p>Any idea how to request to use the interfaces file?</p> are my option to add links inside a PDF (I am using Linux)? © superuser.comnotalentgeek<p>I want to add link into a PDF. I think this can be done easily with Acrobat (I have not try Acrobat myself but every Google searches point me there).</p><p>There are some web application options, but they add an ugly square above my PDF as a link. I don't want that.</p><p>Not necessarily to be opensource (but preferably free to use), what are my options?</p> output from program to a dynamic named file (contains date) © superuser.compoor_red_neck<p>I am still a bottle feeding linux newbie, so go easy. I've googled myself this far but can't find the answer.</p><p>I'm running a program that outputs csv data, and piping it to log.csv</p><p>I'm looking for a way to have the piped output contain the date/time it was created.</p><p>Right now the command looks like this (hand key'd every morning, no crontab yet until I get this working)</p><pre><code>rtlamr -format=csv -msgtype=scm | tee /home/jonboy545/energy/logs/3-16-18_7_30.csv</code></pre><p>I'm using <code>| tee</code> so I can still see the output on the terminal as well as log the file.</p><p>So, how do I pipe the output to a dynamic filename? I have a simple bash script that will output text but how do I tell rtlamr to | a bash script to generate a filename?</p><p>Here's the script called "" to create the text file name:</p><pre><code>#!/bin/bashtoday=`date '+%m_%d__%H_%M_%S'`;filename="/home/jonboy545/energy/logs/$today.csv"echo $filename;</code></pre><p>If you run <code></code>then it just outputs the text like you'd expect:</p><pre><code>/home/jonboy545/energy/logs/03_16__17_30_39.csv</code></pre><p>So my stupid thinking is something like this (which obviously doesn't work)</p><pre><code>rtlamr -format=csv -msgtype=scm | tee /home/jonboy545/</code></pre><p>Now that I think about it, it may be easier to just create a script that does all that. So something like this?</p><pre><code>#!/bin/bashtoday=`date '+%m_%d__%H_%M_%S'`;filename="/home/jonboy545/energy/logs/$today.txt"/usr/bin/rtlamr -format=csv -msgtype=scm | tee $filename;</code></pre><p>Thinking I may have just answered my own post but I'm sure that script above has got something wrong with it.</p>'t install umake, error retrieving gpg key on ubuntu 17.04 © superuser.comKaito Einstein<p>i can't install ubuntu-make , i have ubuntu 17.04 when i run the command shown in the official website </p><pre><code>sudo add-apt-repository ppa:lyzardking/ubuntu-make</code></pre><p>the result is:</p><pre><code> Daily build for ubuntu-makeMore info: [ENTER] to continue or ctrl-c to cancel adding itgpg: keybox '/tmp/tmpirfoq2__/pubring.gpg' createdError: retrieving gpg key timed out.gpg: /tmp/tmpirfoq2__/trustdb.gpg: trustdb createdgpg: key 43FDBC385ADA701F: public key "Launchpad PPA for Galileo Sartor" importedgpg: Total number processed: 1gpg: imported: 1OK</code></pre><p>any help please about Error: retrieving gpg key timed out.</p> am I seeing retransmissions across the network using iperf3? © superuser.comdlamotte<p>I'm seeing retransmissions between two pods in a kubernetes cluster I'm setting up. I'm using kube-router <a href="" rel="nofollow noreferrer"></a> for the networking between the hosts. Here's the setup:</p><p>host-a and host-b are connected to the same switches. They are on the same L2 network. Both are connected to the above switches with LACP 802.3ad bonds and those bonds are up and functioning properly.</p><p>pod-a and pod-b are on host-a and host-b respectively. I'm running iperf3 between the pods and see retransmissions.</p><pre><code>root@pod-b:~# iperf3 -c to host, port 5201[ 4] local port 55482 connected to port 5201[ ID] Interval Transfer Bandwidth Retr Cwnd[ 4] 0.00-1.00 sec 1.15 GBytes 9.86 Gbits/sec 977 3.03 MBytes[ 4] 1.00-2.00 sec 1.15 GBytes 9.89 Gbits/sec 189 3.03 MBytes[ 4] 2.00-3.00 sec 1.15 GBytes 9.90 Gbits/sec 37 3.03 MBytes[ 4] 3.00-4.00 sec 1.15 GBytes 9.89 Gbits/sec 181 3.03 MBytes[ 4] 4.00-5.00 sec 1.15 GBytes 9.90 Gbits/sec 0 3.03 MBytes[ 4] 5.00-6.00 sec 1.15 GBytes 9.90 Gbits/sec 0 3.03 MBytes[ 4] 6.00-7.00 sec 1.15 GBytes 9.88 Gbits/sec 305 3.03 MBytes[ 4] 7.00-8.00 sec 1.15 GBytes 9.90 Gbits/sec 15 3.03 MBytes[ 4] 8.00-9.00 sec 1.15 GBytes 9.89 Gbits/sec 126 3.03 MBytes[ 4] 9.00-10.00 sec 1.15 GBytes 9.86 Gbits/sec 518 2.88 MBytes- - - - - - - - - - - - - - - - - - - - - - - - -[ ID] Interval Transfer Bandwidth Retr[ 4] 0.00-10.00 sec 11.5 GBytes 9.89 Gbits/sec 2348 sender[ 4] 0.00-10.00 sec 11.5 GBytes 9.88 Gbits/sec receiveriperf Done.</code></pre><p>The catch here that I'm trying to debug is that I don't see retransmissions when I run the same iperf3 across host-a and host-b directly (not over the bridge interface that kube-router creates). So, the network path looks something like this:</p><pre><code>pod-a -&gt; kube-bridge -&gt; host-a -&gt; L2 switch -&gt; host-b -&gt; kube-bridge -&gt; pod-b</code></pre><p>Removing the kube-bridge from the equation results in zero retransmissions. I have tested host-a to pod-b and seen the same retransmissions.</p><p>I have been running dropwatch and seeing the following on the <em>receiving</em> host (the iperf3 server by default):</p><pre><code>% dropwatch -l kasInitalizing kallsyms dbdropwatch&gt; startEnabling monitoring...Kernel monitoring activated.Issue Ctrl-C to stop monitoring2 drops at ip_rcv_finish+1f3 (0xffffffff87522253)1 drops at sk_stream_kill_queues+48 (0xffffffff874ccb98)1 drops at __brk_limit+35f81ba4 (0xffffffffc0761ba4)16991 drops at skb_release_data+9e (0xffffffff874c6a4e)1 drops at tcp_v4_do_rcv+87 (0xffffffff87547ef7)1 drops at sk_stream_kill_queues+48 (0xffffffff874ccb98)2 drops at ip_rcv_finish+1f3 (0xffffffff87522253)1 drops at sk_stream_kill_queues+48 (0xffffffff874ccb98)3 drops at skb_release_data+9e (0xffffffff874c6a4e)1 drops at sk_stream_kill_queues+48 (0xffffffff874ccb98)16091 drops at skb_release_data+9e (0xffffffff874c6a4e)1 drops at __brk_limit+35f81ba4 (0xffffffffc0761ba4)1 drops at tcp_v4_do_rcv+87 (0xffffffff87547ef7)1 drops at sk_stream_kill_queues+48 (0xffffffff874ccb98)2 drops at skb_release_data+9e (0xffffffff874c6a4e)8463 drops at skb_release_data+9e (0xffffffff874c6a4e)2 drops at skb_release_data+9e (0xffffffff874c6a4e)2 drops at skb_release_data+9e (0xffffffff874c6a4e)2 drops at tcp_v4_do_rcv+87 (0xffffffff87547ef7)2 drops at ip_rcv_finish+1f3 (0xffffffff87522253)2 drops at skb_release_data+9e (0xffffffff874c6a4e)15857 drops at skb_release_data+9e (0xffffffff874c6a4e)1 drops at sk_stream_kill_queues+48 (0xffffffff874ccb98)1 drops at __brk_limit+35f81ba4 (0xffffffffc0761ba4)7111 drops at skb_release_data+9e (0xffffffff874c6a4e)9037 drops at skb_release_data+9e (0xffffffff874c6a4e)</code></pre><p>The sending side sees drops, but nothing in the amounts we are seeing here (1-2 max per line of output; which I hope is normal).</p><p>Also, I'm using 9000 MTU (on the bond0 interface to the switch and on the bridge).</p><p>I'm running CoreOS Container Linux Stable 1632.3.0. Linux hostname 4.14.19-coreos #1 SMP Wed Feb 14 03:18:05 UTC 2018 x86_64 GNU/Linux</p><p>Any help or pointers would be much appreciated.</p><p><strong>update:</strong> tried with 1500 MTU, same result. Significant retransmissions.</p><p><strong>update2:</strong> appears that <code>iperf3 -b 10G ...</code> yields no issues between pods and directly on host (2x 10Gbit NIC in LACP Bond). The issues arise when using <code>iperf3 -b 11G</code> between pods but <em>not</em> between hosts. Is iperf3 being smart about the NIC size but can't on the local bridged veth?</p> Linux Distribution to be used with Flask + Gunicorn + Nginx without a windowing system [on hold] © superuser.comF TE<p>I asked the same question on Stackoverflow and it was suggested to use Superuser. So I'll repeat below what I've written there:</p><p>I'm thinking about what Linux distribution shall I use alongside with Flask, Nginx and Gunicorn. The OS will be used as a web server, to store the data base (Postgres), and it doesn't need any graphical library. It must to serve at least 100 hundred users(and provide them realtime videos, high resolution images, several different kinks o tinny apps), it should be installed into a small pc (something like Intel NUC but not so costly). The distro should be stable, and the maintenance should be easy to be done using the network. So, in your experience, what Linux distro I should use?</p> sda1 (or whatever) to a file. Then at some point mount that file as ISO or some other means? © superuser.comterary<p>Death to windows. I am done with it.<br>I would like to preserve the windows partition in case I will need it later. I was wondering if I can use dd to copy the partition to some file so that if I need to I can restore the partition as-is. That if, in the course of things I need some files from that partition(file), can I mount the file like an iso file.</p><p>A) dd if=/dev/sda1 of=/my/preserved/windows.isoB) mount window.isoIs that doable? Is there another method/suggestion? </p> to install Kali Linux by USB drive © superuser.comitman<p>I have a Toshiba satellite crrently has Window 10 loa. I downloaded 64 Bit Kali Linux 2018.1 and when I try to install from a USB I get, "There was a problem reading data from the CD-ROM. Please make sure it is in the drive. If retrying does not work, you should check the integrity of your CD-ROM. Pls , I need a help.Thanks.</p><p>I tried <code>mount -t vfat /dev/sdb1 /cdrom</code>but it doesn't work, and it show this message below. </p><p><a href="" rel="nofollow noreferrer"><img src="" alt="enter image description here"></a></p> configuration will work without any problems in UEFI mode? © superuser.comPavel K<p>I am a beginner in UEFI, so excuse me if this question is vey simple. I have two 3 TB disks and want to install Debian 9.4 with RAID1 in UEFI mode.After reading all the information I am thinking about such configuration:</p><pre><code>sda1 512 MB EFIsda2 5 GB RAIDsda3 rest RAIDsdb1 512 MB EFIsdb2 5 GB RAIDsdb3 rest RAIDand I create two raid:/md0 RAID 1 - swap (sda2 and sdb2)/md1 RAID 1 - ext4 mounted as / (sda3 and sdb3)</code></pre><p>Will such configuration work without any problems in UEFI mode? Or it is wrong?</p> cannot stat /proc/sys/net/ipv4/icmp_echo_ignore_broadcast: No existe el fichero o el directorio © superuser.comoruz<p>I have a Debian 9 Stretch and I'm configuring as webserver. For this I'm applying rules in iptables and another parameters in <code>/etc/sysctl.conf</code></p><p>I would like to apply this rule in FW:(it's inside the file <code>/etc/sysctl.conf</code>)</p><pre><code>net.ipv4.icmp_echo_ignore_broadcast=1</code></pre><p>And the system show this error:</p><blockquote><p>sysctl: cannot stat /proc/sys/net/ipv4/icmp_echo_ignore_broadcast: file not exist</p></blockquote><p>It's missing any module or something, I don't know... Could you help me?</p> protocol with weakest cipher and best performance? [on hold] © superuser.comDarren Wu<p>I want to set up a VPN server on a vps with a lame cpu (to be specific, DigitalOcean $5 plan in San Francisco). Due to its limited computing ability, the weakest possible cipher is appreciated. I will write a dumb cron/systemd-timer to automatically generate a new random password periodically at fixed times.</p><p>What is the VPN protocol with weakest cipher, best performance and open-source server&amp;client?</p><p>P.S. no access to without it...</p> consumption in Windows 10 and Linux © superuser.comcarpediem<p>How does Windows 10 compute the percentages of power used by various applications and hardware devices without any external power measurement device? </p><p><a href="" rel="nofollow noreferrer"><img src="" alt="Windows 10 Power usage screen"></a></p><p>It's a fascinating problem to be able to calculate the values simply from software. How does PowerTop (on linux) make these calculations to get the power consumption values in Watts? How reliable/accurate are these numbers?</p><p><a href="" rel="nofollow noreferrer"><img src="" alt="PowerTop screenshot"></a></p> scrollbar appearance © superuser.comdavid.perez<p>I have several Linux servers that I use to check changes in appearance of our web app. I capture automatically screenshots.</p><p>I use CentOS 7, Firefox.All servers are theorically equal, but in one of them, scrollbars are shown differently. I have installed no firefox extensions. Size is different. Firefox version is the same: 56.</p><p>In one server, I've installed a Gnome desktop, so it has more Gnome packages.</p><p>After some research, I've come to the conclusion that it is something related to GTK 3 theme.</p><p>The command:</p><pre><code>gsettings get org.gnome.desktop.interface gtk-theme</code></pre><p>returns adwaita in both of them.</p><p>There is no ~/.theme file.<a href="" rel="nofollow noreferrer"><img src="" alt="Server 1, with more gnome packages"></a><a href="" rel="nofollow noreferrer"><img src="" alt="Server 2"></a></p><p>How can I make all the scrollbars look the same for consistent results?</p> smb.service management © superuser.comColinux<p>I have recently added some samba shares into the smb.conf file on RHEL 7.2 Following this, I restarted the samba service in systemctl. However this caused all the citrix service to disconnect and resulted in some stale sessions that are causing issues. It now looks like even after clearing the sessions the citrix boxes will need to be bounced.</p><p>The question here is: Could I have used</p><p>systemctl reload smb.service instead of systemctl restart smb.service ?</p><p>I can't find any list to state which services are supported by reload, and which have to be restarted. Does anyone know for sure about this?</p><p>Thanks Colin</p> is it possible that the output of two commands differs, one being symlink of the other? © superuser.comuser322908<p>One executable file is symlink of another:</p><pre><code>#ls -l /sbin/depmodlrwxrwxrwx 1 root root 11 Mar 15 07:00 /sbin/depmod -&gt;</code></pre><p>Then why is this:</p><pre><code>#/sbin/depmod depmod: ERROR: could not open directory /lib/modules/3.10.0-693.5.2.el7.x86_64: No such file or directory</code></pre><p>(...)</p><pre><code>#/bin/kmodmissing command</code></pre><p>(...)</p> does Bash handle variables in memory? © superuser.comTeoma<p>I just challenged myself to find and change a value in memory using <strong><a href="" rel="nofollow noreferrer">scanmem</a></strong> and wrote this script to increment a simple value every 5 seconds.</p><pre><code> #!/bin/bashi=88 #start counting from..printf "Variable increments every 5s\n"while [ 1 ]do printf "Variable is %d\n" $isleep 5sif [ $i -eq 300 ]; then printf "Variable is now 300! WELL DONE!!\n"exit 1elsei=$(( $i + 1))if [ $i -gt 299 ]; thenprintf "Time is up!\n"exit 0fifidone</code></pre><p>Crappy scripting aside (I'm betting it's that causing me trouble though!); I can find the value (always 4 results) in 2 scans in <strong>scanmem</strong> attached to the PID (from <strong>ps ax | grep bash</strong>) but the variable refuses to SET to 300. I confirmed they're correct using UPDATE and LIST. It will actually SET but always returns to the next increment.</p><p>So why does the value refuse to be changed?script is run as user, scanmem is sudoed</p> + x264 install. Pthreads not workng? "libpthread.a" errors © superuser.comsupredoe<p>Nothing I've tried so far works.</p><p>x264 is already installed.</p><p>OpenSSL and FDKaac are also installed.</p><p>Configure line for FFMPeg:</p><pre><code>PKG_CONFIG_PATH="$HOME/ffmpeg/lib/pkgconfig" --prefix="$HOME/ffmpeg" --extra-cflags="-I$HOME/ffmpeg/include" --extra-ldflags="-L$HOME/ffmpeg/lib" --enable-gpl --enable-libx264 --enable-openssl --enable-libfdk_aac --enable-nonfree --enable-libmp3lame</code></pre><p>This is an old version of FFMPeg (version ffmpeg-1.0.10). Upgrading is not possible on this machine.</p><p>This is strange because installation has worked in the past, but of course I don't remember what version was working; it was deleted and needs to be reinstalled.</p><p>The error message during compilation of ffmpeg-1.0.10 is this:</p><pre><code>HOSTLD doc/print_optionsGENTEXI doc/avoptions_format.texiGENTEXI doc/avoptions_codec.texiPOD doc/ffmpeg.podPOD doc/ffplay.podPOD doc/ffprobe.podPOD doc/ffserver.podMAN doc/ffmpeg.1MAN doc/ffplay.1MAN doc/ffprobe.1MAN doc/ffserver.1TXT doc/fate.txtCC cmdutils.oCC ffmpeg_opt.oCC ffmpeg_filter.oCC ffmpeg.offmpeg.c:154:13: warning: ‘free_input_threads’ declared ‘static’ but never defined [-Wunused-function]static void free_input_threads(void);^LD ffmpeg_g/usr/local/lib/libpthread.a(ptw-write.o): In function `__write_nocancel':(.text+0x26): undefined reference to `__syscall_error'/usr/local/lib/libpthread.a(ptw-write.o): In function `__write_nocancel':(.text+0x56): undefined reference to `__syscall_error'/usr/local/lib/libpthread.a(ptw-read.o): In function `__read_nocancel':(.text+0x26): undefined reference to `__syscall_error'/usr/local/lib/libpthread.a(ptw-read.o): In function `__read_nocancel':(.text+0x56): undefined reference to `__syscall_error'/usr/local/lib/libpthread.a(ptw-close.o): In function `__close_nocancel':(.text+0x20): undefined reference to `__syscall_error'/usr/local/lib/libpthread.a(ptw-close.o):(.text+0x4b): more undefined references to `__syscall_error' followcollect2: error: ld returned 1 exit statusmake: *** [ffmpeg_g] Error 1</code></pre><p>It's also not possible to change the libpthread version or upgrade the kernel, because other software depends on the current kernel version.</p><p>Upgrading ffmpeg and/or x264 is not possible; they return pthreads errors that are similar to the ones above.</p><p>Changing the '' line to include '--disable-pthreads' has no effect on the ffmpeg build outcome. The error is the same as above.</p><p>Any different ideas? Thanks in advance.</p> kernel mode dependent on CS? © superuser.commathworker<p>How does os detect if the present code is being run in kernel mode or user mode? Is it inherent to code section i.e., a specific code section can be run only in kernel mode(or user mode)? Or can a code section be run in both kernel and user mode?</p><p>EDIT: to be specific My question is protetection rings set in DPL (Descriptor Privilage Level) inate to Code Section?</p>