Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

0
votes
0answers
3 views

Can I use OpenCL to directly write to FrameBuffer, bypassing X11/Wayland completly?

I am thinking about replacing X11/Wayland completely and create my own display server. Now for this I will directly write to frame buffer, and use hardware acceleration using OpenCL.[I know I will ...
0
votes
1answer
26 views

Replacing cronjob schedule using sed

I want to replace 9 3 * * 3,6 by shivam using sed command. testcron is the file name. I am trying this sed 's/"9 3 * * 3,6"/shivam testcron NOTE: testcron is the file name.
2
votes
1answer
2k views

Device Trees: Difference between labels and aliases?

In the file imx6qdl.dtsi is the following definition of gpio nodes (somewhat shortened): gpio1: gpio@0209c000 { [...] }; gpio2: gpio@020a0000 { [...] }; [...] gpio7: gpio@020b4000 { [.....
0
votes
0answers
4 views

PAM File Modification for Google Authentificator

i use the google authenticator for the ssh authentication, but i use a publickey + authenticator or a password + authenticator (when no publickey is defined it should be ask only for password, but i ...
2
votes
5answers
4k views

Replace all but a set of characters in a file with newline

how to delete all characters in file except numbers and "." , each word (numbers/dot) should be in new line in file see example2 the solution can be with sed or awk or ksh syntax remark - the ...
1
vote
2answers
736 views

Migrate LDAP from one machine to another

My current task is to migrate the content from one machine (source) to another (target). Both machines are identical. One is heavily used and the other is clean. I already have all the files that are ...
0
votes
1answer
25 views

Linux - Checking if user has entered numbers and letters

The script I am trying to create should ask the user to enter a password. This password will then be checked if it contains a capital, characters and numbers This is all I have so far before I got ...
0
votes
1answer
28 views

SSH IP access restriction using tcpwrappers is not working. (hosts.allow and hosts.deny not taken into account)

I am using sles-12 server and i am trying to restrict ssh access to my server to my pc alone. I have tried to use tcpwrappers and it's not working..!!. I am able to ssh to the server from any IP in my ...
1
vote
1answer
70 views

Is `/dev/tty7` not directly accessible to Ubuntu users?

On Ubuntu, /dev/tty7 is the virtual console for desktop GUI. Is the only way to access /dev/tty7 to use chvt 7 or Ctrl+Alt+F7? Besides that, is /dev/tty7 not directly accessible to Ubuntu users, ...
0
votes
1answer
46 views

How is the number of accessible virtual consoles decided?

My Ubuntu 18.04 has /dev/tty{0..63} (and /dev/ttyS{0..31}). Does it mean I have 63 virtual consoles (/dev/tty0 isn't an independent virtual console, and /dev/ttyS{0..31} are perhaps not virtual ...
-1
votes
0answers
9 views

What is the suitable disk IO scheduler for an email server?

What is the suitable/recommended disk IO scheduler from cfq,noop,deadline for a server which runs an email server ? What are the reasons behind to choose the relevant option ?
0
votes
0answers
20 views

When i plug in usb camera i get 2 devices

When I plug in the camera to Linux then I get 2 devices /dev/video0 and /dev/video1 Is that normal? Odd numbered devices do not work. /dev/v4l/by-path looks like that: @pci-0000:00:14.0-usb-0:14:1.0-...
5
votes
3answers
38k views

How to reload routing table on Centos without lost network service

I've add 1 route in configuration network file, how to reload routing table on Centos without lost network service
3
votes
2answers
653 views

How can I list net work devices and ipv4 address on linux without ifconfig/ip command

I already figured out that on Linux I can list network devices (cd /proc/net/dev_snmp6/ && for device in *; do echo $device; done|sort) but how can I get the ipv4 address of the device? I ...
54
votes
10answers
111k views

Linux ls to show only filename date and size

How can I use ls in linux to get a listing of filenames date and size only. I don't need to see the other info such as owner or permission. Is this possible?
0
votes
1answer
51 views

Linux switches to mysterious Kernel Buffer view everytime a new dmesg arrives

There is a mysterious tty that only reacts to sysrq, not to any other keyboard input. It started after I engaged SysRQ+F and SysRq+i. Every 30 seconds or so, Linux switches away from the current tty ...
8
votes
5answers
1k views

How to poweroff when there's no systemd/init (e.g. using init=/bin/bash)?

poweroff complains that it can't connect to systemd via DBus (of course, it's not alive). I did sync followed by kill $$, thinking that pid 1 dying would cue the kernel to poweroff, but that caused a ...
-1
votes
2answers
45 views

What is Games in man page

I'm walking through the manual of man-page. I don't understand the importance of the 6th section Games in Man-pages. What it's really mean?.
5
votes
2answers
3k views

How to format 720k FAT (ie: MS-DOS) floppy on Linux using USB floppy drive

I have a USB 3.5" floppy drive connected to my Linux box. I've verified that it is /dev/sdh on my Linux box, and I can read Linux-formatted floppies from it. (I had an old ext2 floppy lying around.) ...
2
votes
3answers
2k views

Linux - Hades Canyon Intel Nuc 8th Generation

I have recently acquired a Hades Canyon (Intel Nuc8i7hvk) and I'm trying to put Linux on it. I have tried Ubuntu 18.04/Debian 9.4. On the Ubuntu 18.04 version I make it to the GRUB options page, and ...
1
vote
2answers
21 views

linux top load average seems too high

Following this https://unix.stackexchange.com/a/279354/108702, I ran; lscpu | grep -E '^Thread|^Core|^Socket|^CPU\(' CPU(s): 8 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): ...
4
votes
2answers
4k views

Ignoring /etc/logrotate.conf because of bad file mode

How can I do logrotate, i can see no effect when i do logrotate root@me-Latitude-E5550:/etc/logrotate.d# cd .. root@me-Latitude-E5550:/etc# cd .. root@me-Latitude-E5550:/# logrotate -d /etc/logrotate....
0
votes
0answers
10 views

Importing ZFS pool takes forever on boot

I recently moved my Gentoo (OpenRC) root to ZFS, and so far everything works great, except for one thing: importing zpool takes a long time (one-two minutes) on boot. After the import is finished it ...
0
votes
0answers
9 views

'alternatives' system in linux is not listing all installed desktop managers

I'm tring to set WindowMaker to be the default Desktop Manager (xsession) in openSUSE Tumbleweed. This was working fine in Leap. I have set it in YaST -> System -> /etc/sysconfig Editor but it still ...
1
vote
1answer
32 views

Update of /etc/resolve.conf needs restart of application

I am working with an embedded linux Target (ARM) and have the following problem: When /etc/resolv.conf is updated, while a process is running (e.g. C Program using gethostbyname()) the running process ...
1
vote
2answers
72 views

Grep Showing Extra Lines

So I have a text file: 4556 4618 7843 8732 4532 0861 1932 5122 3478 893* 6788 6312 5440 3173 8207 0451 67886 6011 2966 7184 4668 3678 3905 5323 2389 4387 9336 2783 239 235 453 ...
-2
votes
1answer
669 views

Script to find functions in a C program [closed]

I am trying to find solution to this following problem: Given the directory structure: project/ bridge/ mysql_bridge.c postgres_bridge.c My code should retrieve all functions in .c files ...
1
vote
0answers
8 views

Corruption on BCache uppon Kernel Update/Upgrade

After using a write-around bcache on the root device of an old laptop for more than a year (HD + SD card), I finally found out that some severe filesystem corruptions I was facing -- which lead me to ...
-1
votes
2answers
3k views

Install a package manager on a terramaster NAS

I got this NAS and while it has a decent amount of features, I was hoping i could extend them a bit. It's running a dual core Celeron with 2gb of ram. I tried to find the Linux distro, but it seems ...
0
votes
0answers
14 views

Elementary OS crashes on shutdown

I know that there are similar questions to this but none of the given solutions work. I've tried migrating from Windows 10 to Elementary OS and even though installation process works fine (downloaded ...
0
votes
1answer
27 views

Will swap file engage automatically when I write too much to /dev/shm

Text analytics programming today. My program is going to write about 45 million small temporary files to /dev/shm and their size estimate is 177.0 GB. I'm going to delete them soon after the next ...
0
votes
2answers
87 views

How ssh can connect with itself?

I was experimenting with linux ssh. And in terminal I tried to connect with the same linux machine which I was using and it got connected! Its like calling your same phone from your phone! But how ...
1
vote
2answers
49 views

Is it possible to disable ext4 case sensitivity?

With NTFS you can enable or disable case sensitivity. Is there a way to do it with ext4 in Linux?
0
votes
1answer
2k views

Installing mailx on ubuntu 14.04.2

So I've installed mailx but I'm unable to get it to send an e-mail. I do the following: mailx -s "Test" To: myemail@email.com Cc: "This is a test." CTRL-D (does not work) CTRL-D does nothing. It's ...
-1
votes
2answers
48 views

Does gparted make good use of badblocks lists?

Suppose there's a hard drive /dev/sda, and both that: /dev/sda1 is a single ext4 partition taking up the whole disk, and it's mostly empty of data. dumpe2fs -b /dev/sda1 outputs the badblocks ...
1
vote
0answers
6 views

Interpreting AUFS mounts

My question is the opposite of most on AUFS. I don't need to know how to mount two or more directories in a union. Instead I need to understand what I am seeing on an existing system. / aufs ...
0
votes
0answers
12 views

fingerprint-gui on Linux Mint 19 “Tara” cinnamon works but not on first boot or in software center

on my Lenovo Thinkpad X1 Carbon 3rd. Gen., fingerprint-gui works fine when locking the screen or requesting sudo in terminal. It doesn't work when I freshly boot up the system at first login, and it ...
0
votes
0answers
17 views

Linux Mint 19 cinnamon stop job at shutdown

on my Linux Mint 19 "Tara" system with cinnamon desktop, when I shutdown via the GUI, the system halts for 1 min and 30 seconds, and a text says "A stop job is running for Session c2 of user ... (1min ...
0
votes
1answer
62 views

How to strip out white space of a filename

Opering System : RHEL 7 Bash Script: V_No=10.8.3 BUILD_VERSION=`echo ${V_No} | tr ' ' '_'` echo "File Name: Dev-${BUILD_VERSION}.jar" output: File Name: Dev-10.8.3 .jar expected output: File ...
0
votes
2answers
3k views

/usr/bin/install: cannot stat `run': No such file or directory

Im trying to build embeded software using this RSDK toolchain but after make menuconfig and make Im getting following error make[7]: Entering directory `/mnt/hgfs/A/rtl819x-toolchain/users/gdb/gdb-6....
0
votes
1answer
35 views

Where should I store my application files (data, cache, logs, crashes, etc.) [on hold]

Although I did some research on this subject, I couldn't reach the exact information I wanted. Actually, not exactly disclosed, everyone approached in a different way. For the: Filesystem Hierarchy ...
1
vote
2answers
285 views

swapping keys in a virtual terminal

Note: I asked this question in superuser about a month ago, but there hasn't been a reply till then, and the question relates to linux, so I'm posting it here. I want to swap esc and caps_lock keys ...
0
votes
0answers
38 views

How to restrict access to terminal

I have a Raspberry Pi running Raspbian graphical desktop which I have locked down to restrict the user to a limited number of applications. Everything has been removed from the menu except these ...
0
votes
2answers
34 views

X forwarding over ssh, issues with virtualbox

When trying to open virtualbox GUI over a forwarded session, I get the following error: steve@remoteHost:~$ virtualbox OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled ...
1
vote
1answer
4k views

Job for vsftpd.service failed because the control process exited with error code

I can not restart the vsftpd. [root@localhost vsftpd]# service vsftpd restart Redirecting to /bin/systemctl restart vsftpd.service Job for vsftpd.service failed because the control process exited ...
0
votes
0answers
22 views

Duplicate screen Xorg over network

I'm looking for a way to duplicate my desktop on a network. (Something that would work on a web browser client would be amazing.) I tried to use vnc / x11vnc but quality/framerate is too low. (cpu ...
4
votes
1answer
334 views

rx 560x slower than integrated vega gpu on fedora 28

I'm using fedora 28 because it seems that is the only distro where that detects the rx560x correctly. Nonethe ess, I noticed that the performance when using the discrete GPU is significantly worse ...
2
votes
1answer
2k views

SMTP connectivity issue in Zenoss (“Connection unexpectedly closed”)

I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class 'smtplib.SMTPServerDisconnected'&...
58
votes
1answer
43k views

Linux LXC vs FreeBSD jail

Are there any notable differences between LXC (Linux containers) and FreeBSD's jails in terms of security, stability & performance? On first look, both approaches look very similar.
4
votes
1answer
43 views

Inconsistency between “getent group” and “getent group <groupname>” – why?

Question How is the following possible? $ getent group | grep docker $ getent group docker docker:x:600: Note that the first call doesn’t return anything while the second one does. grpck doesn’t ...