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.

learn more… | top users | synonyms

0
votes
0answers
7 views

displaying a date after specific number days by reading a number

i have a file, in which there is a line Password=md@2507 where 2507 is the date when i changed the password for the last time. i want a script that read the date from the Password line of that file ...
0
votes
1answer
19 views

Static IP address setting failed

/etc/sysconfig/network-scripts/ifcfg-eth0: EVICE=eth11 TYPE=Ethernet ONBOOT=no NM_CONTROLLED=yes BOOTPROTO=static ...
0
votes
0answers
20 views

JCE provider usable as root but not regular user

I am trying to install a new JCE provider and have done the following - Copied the provider.jar file to $JAVA_HOME/jre/lib/ext Updated $JAVA_HOME/jre/lib/security/java.security with the line ...
1
vote
1answer
14 views

Preparing a Ubuntu install for sharing

I have a virtual version of Ubuntu running in VirtualBox. Currently I have lots of personal information in it. I want to share the virtual image disk with other developers, but I don't want them to be ...
2
votes
1answer
68 views

How to shrink, clone an entire Linux disk and boot it?

I had an Ubuntu 14.04 running on a 1024 GB disk (disk A), which only used up to 130 GB spaces. I want to clone it to a 256 GB SSD disk ( disk B ). But failed. I used gparted to shrink the partitions ...
15
votes
4answers
838 views

Is slash (/) part of the name of Linux root directory?

Is the slash (/) really part of the name of the Linux root directory? or its just a symbol for this? What about /etc and so on?
0
votes
0answers
19 views

ARP poisoning needs a non empty host list?

I'm trying to use Ettercap from the Text only interface and GUI but the problem I come up with is this ettercap -T -q -i wlan0 -M ARP:remote /192.168.1.1// /192.168.1.2-10// ettercap 0.8.2 copyright ...
6
votes
3answers
897 views

Linux installation stops working after a few reboots

I'm trying to set up a dualboot Win8/Linux on my HP tablet (touchsmart tm2-1050ez). However, when I'm finished setting it all up, after a few more reboots, I'm not able to boot to Linux anymore, as I ...
0
votes
0answers
12 views

How do I set up one GTX 960 to run three monitors using displayport Nvidia driver on Fedora 24?

How do I configure three monitors on a GTX960 gfx card for a continuous display across all three monitors on Linux (Fedora 24)? I've tried to Xorg -configure with the three monitors plugged into the ...
0
votes
2answers
21 views

Failover default route on primary link outage

I have 2 ISPs, and a server with two IP addresses, something like this: eth0: 161.0.0.2 eth1: 171.0.0.2 I have set www.example.com with two A records, so that I have DNS LB. App is working fine ...
0
votes
1answer
29 views

openpty returning zero as master file descriptor

I am opening a pseudoterminal with openpty function. This will be used to redirect some data coming from a serial port into an external application (in this case, a GPS receiver). The fact is that ...
0
votes
0answers
13 views

Making Kodi Autostart

This is a really basic question but I'm losing my mind. I'm currently running the latest Raspian version which is based on Debian v8 (Jessie). I have been trying to get Kodi to autostart when the ...
2
votes
1answer
2k views

Ubuntu: wire network is not stable and must restart network-manager periodcally

I don't know why my wire network now is not stable. After a short time of using, maybe 30 minutes, 15 minutes or maybe just 2 minutes, my network is down. When my network is down, I must run this ...
0
votes
1answer
49 views

problem in login with default /bin/fish shell in gdm

I set fish as default shell for my user in Linux. /etc/passwd file: mlibre:x:1000:1000::/home/mlibre:/bin/fish and now, in GDM I can't login with my user (mlibre). GDM prints some error. I turned ...
5
votes
1answer
800 views

Migrate an unprivileged LXC container between users

I have an Ubuntu 14.04 server installation which acts as an LXC host. It has two users: user1 and user2. user1 owns an unprivileged LXC container, which uses a directory (inside /home/user1/.local/......
1
vote
1answer
19 views

Linux USB installer does not see my internal SSD drive

Laptop Lenovo 710s. The hard drive is a Samsung internal SSD drive 250 gigabytes. Model: NVMe Samsung MZVLV256 45 gigabytes unallocated space. Intel ChipSet Sata Raid Here is the issue I have ...
0
votes
2answers
1k views

nmcli device eth1 “unavailable”

I have a motherboard with two Ethernet ports, and I would like to get a connection on both ports. Eth0 already has a connection and can be used without problems. Eth1 however shows up as "unavailable" ...
56
votes
10answers
133k views

How to list all files ordered by size

I would like to list all files in the order of big to small in size and the files could be present anywhere in a certain folder.
1
vote
2answers
1k views

Hardware to install 64-bit OS

If I search on Internet for minimum requirements to install a 64-bit operating system, Microsoft and allied forums recommend 4 GB RAM as the minimum criteria. On the other hand, when I look at Linux ...
0
votes
0answers
36 views

How to Change the Priority/Size of Swap file?

Situation: change sda3's size and priority to 99 Motivation: 8 GB RAM is too little; 30 GB free space in my SSD; I want to turn 20 GB to SSD swap Characteristics Command cat /proc/swaps Filename ...
0
votes
2answers
27 views

red hat Linux + UTC properties and hw clock

from redhat documentation The /etc/sysconfig/clock file controls the interpretation of values read from the system hardware clock. UTC= where is one of the following boolean values: true or yes — ...
15
votes
4answers
43k views

Output traffic on different interfaces based on destination port

My question is basically the same as Only allow certain outbound traffic on certain interfaces. I have two interfaces eth1 (10.0.0.2) and wlan0 (192.168.0.2). My default route is for eth1. Let's say ...
1
vote
1answer
25 views

moving a linux to another device

I am working on an embedded linux ip-camera. I need to have a backup of our Linux for testing and repairing cameras. I have tested multiple options like using tar and rsync , but it does not work and ...
0
votes
1answer
30 views

How to share a connection between two interfaces

Okay so either I am dummer then I look or there is a real problem here. Fedora 23 Interface 1: enp9s0 192.168.1.137 255.255.255.0 Wired (Internet connection) Interface 2: wlp0s20u14 192.168.10.1 255....
0
votes
0answers
15 views

Sharing a linux x-session desktop using X11RDP

I want to share an x-server session over a remote connection. I have an application that runs under x using just open box. I would like the user to be able to push a button and have them connect to ...
13
votes
3answers
45k views

iptables: allow certain ips and block all other connection

How do I allow certain ips and block all other connection in iptables?
3
votes
1answer
5k views

snmpwalk community results to timeout

My snmpwalk suddenly stopped working, which was working earlier, after restarting the snmp also didn't work out, snmpwalk -v1 -c gives me timeout and it's working for other machines as well. I tried ...
4
votes
2answers
5k views

Use curl to send binary file through POST with content-type multipart/form-data;

A post request is made to: http://www.example.com/example/ and the post data is as follows: ------WebKitFormBoundaryB8NNdk2kNdndnnn Content-Disposition: form-data; name="picture[uploaded_data]"; ...
0
votes
0answers
26 views

Why I can not open port on redhat?

I want to host sinopia (https://www.npmjs.com/package/sinopia) on the server. My problem is I can not open port for it. Default port for sinopia is 4873. OK. Lets start sinopia and then try to ...
0
votes
1answer
19 views

systemd: user service starts at boot with target default/graphical but not multi-user

I tried to start at boot a service running in my user's context, which did not work with multi-user as target but only with default, i.e., graphical. I enabled lingering for my user and the service ...
-1
votes
0answers
12 views

Problem with Mint 18 and VMwareTools

just installed Mint 18 as a virtual machine using vmware12, the problem is i can't install vmware-tools, at first i tried to install open-vm-tools as it's recommended by Mint, but it didn't work, so i ...
0
votes
0answers
6 views

Album Shaper replacement suggestions [migrated]

When I shoot photos they are usually not in order. Back in the days I used Album Shaper to arrange photos (drag and drop) in a correct sequence, then export those photos to a new directory. Album ...
2
votes
2answers
11k views

How to force drop all partitions and erase disk from terminal?

My question is in fact related to OS X, however I'm using Linux tools to resolve my problem. I'm trying to delete all the partitions on my SSD drive and create new GUID (HFS+) partition table. Native ...
1
vote
0answers
14 views

Why so many `scsi 4:0:0:0: CDB: Inquiry: 12 00 00 00 24 00` in my message log?

My os is debian8. cat /var/lgo/messages Jul 23 16:56:27 hwy kernel: [ 117.736167] scsi 4:0:0:0: CDB: Jul 23 16:56:27 hwy kernel: [ 117.736168] Inquiry: 12 00 00 00 24 00 so many Jul 23 16:56:...
0
votes
1answer
25 views

What happened to my install when I ran fdisk on /dev/sda2?

I was trying to create an extended partition on /dev/sda2 which was an empty primary partition on a hard drive. The partition table is msdos I ran: fdisk /dev/sda2 instead of fdisk /dev/sda I ...
0
votes
0answers
22 views

Automatically to connect to open network with the highest signal strength [on hold]

How can I tell Arch to connect to whatever open Wi-Fi network has the highest signal strength? (I want this behaviour with a honeypot partition or user in case my computer is ever stolen.)
4
votes
3answers
30k views

How to remount as read-write a specific mount of device?

How to remount as read-write a specific mount of device? (one folder) The file is "Read-only file system", rw-r-r, so it not allow to change permissions. I need to replace that file, then change ...
39
votes
4answers
5k views

Why is Linux commonly used as operating system for supercomputers?

As of november 2010, Linux is used on 459 out of the 500 supercomputers of the TOP500. What are the reasons behind this massive use of Linux in the supercomputer space?
0
votes
0answers
11 views

Error installing On a GPT parritioned Harddrive [on hold]

I have a GPT partitioned hard drive... I've windows 10 pre installed, I've tried installing Windows 7 alongside windows 10, It couldn't due to GPT partitioned drive, So i am wondering if Linux mint ...
0
votes
1answer
3k views

What variables are valid within /etc/default/useradd file?

My /etc/default/useradd file is as follow: # useradd defaults file GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes man page for useradd provides many ...
1
vote
0answers
16 views

“swap cache” of vmstat vs. “SwapCached” of /proc/meminfo

On my Fedora 24, I executed two commands to examine the memory information, however, I got two different results about swap cache's size. The first command is as follows: [root@localhost ~]# vmstat -...
0
votes
1answer
22 views

Why do I have more packets than bytes? [on hold]

I don't know how to explain this. mind blown. ip -s link 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether RE:DA:...
0
votes
0answers
24 views

What's the meaning of the letter 's' in file name “/proc/$$/smaps”?

I know /proc/$$/maps means sections in a process' virtual address space. However, I cannot guess the meaning of the letter s in file name /proc/$$/smaps. Any explanations?
0
votes
2answers
35 views

How to Get Equivalent parameter to `mkdir -p` for `mount`?

Condition: mount if not mounted; do not give error if mount already done Command sudo mount /dev/"$PARTITION" /media/"$USER"/"$LABEL" I do not want to receive notifications mount: /dev/sdb is ...
0
votes
1answer
26 views

Can't login after editing /etc/security/limits.conf

After edited the /etc/security/limits.conf file to set the nofile parameter to unlimited, server got hanged . Can't login in via ssh. Tried to take console, issue with console. Will reboot of the VM ...
0
votes
1answer
37 views

Copying files from one sub directory to another

I think I must be missing something obvious. I am in a directory called AmHist, with 2 subdirectories, Assign and Resources. I want to move 2 files from Assign to Resources. I try cp LinuxHist ...
2
votes
1answer
37 views

How to compile against a custom kernel (Debian)?

There is a file version.h in /usr/include/linux. Many header files include this file and use the defines in there for their own ifdefs. However, when I compile my own kernel, I cannot see how this ...
0
votes
1answer
1k views

What are the other alternative to test a LDAP connection on linux machine

I have Linux machine, Redhat 5.8, that gets data via LDAP. For an unclear reason, I can’t get the data via LDAP. I see that from /var/log/messages and /var/log/secure the problem is that the ...
0
votes
1answer
44 views

How do I grant read access to all home directories of members in a group?

So I have 4 users on my redhat system. *P- primary group S- supplementary/secondary group* UserA - P: Teacher S: USA UserB - P: Teacher S: School UserX - P: Student S: School UserY - p: ...
3
votes
0answers
33 views

How to determine how much time a process is blocked waiting for networking (socket) activity?

We are having issues with high load (top and uptime) but high CPU idle. Usually, that means high IO wait but that's also low. I believe IO wait typically does not include time a process is blocked ...