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
2answers
11 views

Blocking only a certain subpage of a website

Is it possible to blocking only a certain subpage of a website instead of all domain by modifying /etc/hosts file? For example I want to block http://example.com/whatever.html instead of all domain ...
5
votes
1answer
799 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
18 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
33 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
20 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 — ...
0
votes
0answers
15 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 ...
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
21 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
21 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
13 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 ...
0
votes
0answers
17 views

Import/Export running GUI applications between localhost and SSH client running x11 forwarding?

I am running a Centos Linux server which I connect to using Putty/SSH with x11 forwarding enabled and an X11 server (Xming) running on the client machine... I am able to open GUI applications from my ...
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
25 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
17 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
10 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
24 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
29k 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
15 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
20 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
23 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 ...
1
vote
0answers
7 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 ...
0
votes
1answer
36 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
34 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 ...
1
vote
2answers
38 views

How can I run Linux in a VM on a Retina MacBook Pro in Hi-DPI mode?

I use a Retina MacBook Pro. I run Linux in virtual machines for development work. I occasionally use the Linux GUI directly in the virtual machine, but most of the time I ssh (with the -Y parameter) ...
0
votes
1answer
953 views

java.lang.UnsatisfiedLinkError: libawt_xawt.so: libXi.so.6: cannot open shared object file: No such file or directory

I am trying to run an executable on remote Linux through Putty (SSH). When I run the executable on remote Linux through Putty I get the following error: Exception in thread "main" java.lang....
1
vote
3answers
11k 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
1
vote
3answers
49 views

Lost in the world of VPN

The Q. If i have a server, is it possible to have that server with a VPN connection, while simultaneously having an entirely separate connection to be able to SSH to from client machine. The Why. I ...
2
votes
2answers
31 views

Problem with Wireless LAN on Linux Mint

I currently have a problem with Wireless LAN on Linux Mint 17.1. I can't enable WLAN, when trying to enable it, it disables immediately. Here some commands which I already tried out and found by ...
0
votes
0answers
27 views

both USB ports randomly stop working

the problem usually occurs about once per day, seemingly at random, but occasionally two times, and occasionally zero times. devices connected are: a new STAR printer with it's own power supply, ...
1
vote
0answers
14 views

How to detect a specific WIFI network is connected by udev?

My system on laptop is Funtoo. I have a NAS at home and I'd like to mount some partitions automatically. Manually mount through NFS works already. Simply add lines to /etc/fstab is not a good solution,...
20
votes
5answers
5k views

Is there any reason why I get ^[[A when I press up arrow at the console login screen?

Whenever I'm at the console login, I press up arrow intentionally to see the previously typed commands. But I see this ^[[A. But when I press Ctrl Alt Print Screen Scroll Lock Pause Break Page Up ...
39
votes
12answers
18k views

A tool for automatically applying RandR configuration when external display is plugged in

is there a tool which enables one to: remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis, automatically apply last known good configuration as soon as ...
0
votes
1answer
28 views

How to call a script from one file location in another bash script

I have a script named initTEST.ora at location $ORACLE_HOME/dbs. I want to call initTEST.ora script in another script named test.sh which is present in /home/oracle/script.