Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

0
votes
1answer
29 views

How can I mount /home in a usb drive and keep the files?

I need to write a script that can mount /home in an USB drive at the boot and keep all the files in the USB drive after ejecting it. At every boot, if there is an USB drive plugged in, the script ...
0
votes
0answers
27 views

Alternatives for Bumblebee?

Last commit to Bumblebee was in 2013 and since then the project appears to be dead. Has an better alternative to Bumblebee (a fork perhaps) emerged? Have NVidia started supporting Optimus for Linux in ...
0
votes
1answer
88 views

Can't detect wireless access points on Kali Linux

So i have Kali linux installed on my Lenovo g500 laptop. Wired connections work just fine but i cannot connect to wireless access points or detect them. I am literaly out of ideas, so here is data ...
0
votes
1answer
12 views

Cropping a yuv444_8bit and yuv_420_10bit input using ffmpeg

I have 3 input files to crop: 1. yuv_420 10 bit 2. yuv_444 8 bit 3. yuv_444 10 bit I am unsure about which pix_fmt option to use for these. This is the command line I am using: ffmpeg -s:v 3840x2160 ...
0
votes
1answer
21 views

How to pull one day old data from remote server to local server?

From what I have searched till now I only found command to PUSH one day old data from local server to remoteServer but what I want is to PULL one day old data from remoteServer to localServer. I ...
2
votes
1answer
36 views

Linux screen: Clearing Screen List

Though I have the feeling the answer might be already out there, after reading several questions I did not manage to solve my problem. Apologies in advance in case of duplication. Current Situation: ...
0
votes
0answers
13 views

Lftp include command

Question: How can I download a folder that begins with certain text in LFTP? I am trying to download certain folders with that all begin with "ABD". Assuming I'm already logged into my server/set a ...
1
vote
1answer
30 views

Rotating catalina.out with timestamp format using logrotate. like catalina.$date.out

I am using logrotate to rotate catalina.out, but after rotation the filename is like catalina.out.1.gz. I want it to rotate the file with a timestamp in its name, like: ...
0
votes
0answers
15 views

logdump -i<Inode#> gives partial information

I am using Ubuntu 14.04.2 (x64). While running the logdump -i<> command, i only get three lines of output. It stays the same even if I use the terminal as a root user. The file system is ext4.
0
votes
2answers
62 views

Display CPU cores usage in percentage without using top

I am using java to run a command on linux. Since top is an interactive command and need to press 1 to get the info of all the cpu(s) so I cannot use that. So I am using the following command to get ...
0
votes
1answer
38 views

how to create custom vagrant box from libvirt/kvm instance ?

there is many resource on Internet to create custom vagrant box from VirtualBox instance but i want to know direct method to create custom vagrant box directly from kvm/libvirt instance . please ...
5
votes
3answers
66 views

How can I verify `nice` is working?

Looking at different jobs running on a system with shared resources, it seems the nice values are being ignored. Many jobs with nice set at 19 are running at 100% cpu load while other many other jobs ...
1
vote
1answer
55 views

How to execute a for loop in bash as a string

I need to execute a loop as a string. This: bash -c "for l in $(/bin/ls /dir1); do /bin/ln -sf $l /dir2/; done" Gives an error: /bin/bash: -c: line 1: syntax error near unexpected token `file1' ...
20
votes
3answers
1k views

Linux Debian codenames

I've got few, quite silly, non-technical questions about giving codenames to Debian releases. Each Debian release has its unique codename, which is (so far) characters' name from Toy Story movies by ...
0
votes
1answer
24 views

How to make OpenVPN to autoreconnect to gateway at any time

I've recently discovered a built-in way to have OpenVPN to auto connect to VPN gateway on startup, which is via setting profiles .conf files in /etc/default/openvpn as a part of AUTOSTART parameter. ...
0
votes
0answers
47 views

Kali linux not appearing in grub after installation

Today i have installed Kali linux via bootable USB and during installation there was problem installing the bootloader so I skipped its installation and restarted my computer but GRUB couldnt find the ...
0
votes
0answers
14 views

Renaming build name while build is running on a port

We have a client that hits a server(tomcat) and on that server we have deployed builds which runs on different ports. To understand better lets say we have four builds running on four different ports ...
1
vote
0answers
33 views

Daemonize a perl script at startup Linux

I have a custom version of CENTOS that I need to run a perl script as a daemon in at all times. To do this I want to get it to run on startup as a daemon. When the machine is on I can daemonize the ...
1
vote
0answers
45 views

Work on a remote project with Eclipse via SSH and SVN+SSH (2 remote Linux)

I have the following boxes: a) A Windows box with Eclipse CDT(or PTP) b) A Linux box,including Compiler, accessible for me only via SSH. c) A Linux box, including SVN Source, accessible for me only ...
-2
votes
0answers
27 views

Help with creating temperature humidity script [migrated]

I am a completely inexperienced A level student trying to get to grips with python to complete an assignment. I have been given a week to complete it- I have very little knowledge of what to do and ...
0
votes
1answer
33 views

“Bootstrapping” up from an old Debian 4 installation

I have a decade old laptop that is "working", with Debian 4.x running. It has working USB, but cannot boot from USB. Its optical drive is powered but doesn't seem to work (I have tried booting several ...
4
votes
2answers
67 views

Preventing the creation of a specific directory

I'd like to cover the basis on a vulnerability which tries to download itself and save the result in a newly created directory inside the /tmp/ directory. To be on the safe side, I wish to make it ...
1
vote
1answer
55 views

directory permissions [closed]

I'm currently working on a PHP server explorer, and I have to determine if a directory is empty or not readable because of insufficient permission. My web application is running under the user ...
0
votes
1answer
22 views

How to run a command in linux and use its output in another command? [duplicate]

I want to subtract from the output of the nproc command and run another command using the calculated value. The following doesn't work in linux: somecommand --set_cpus = (nproc - 1)
1
vote
1answer
37 views

How to properly recursively chown files (including hidden dirs)

This conundrum is caused by running git pull from root. There are various reasons for me to do so... I want my device to update code when booting up, and rc.local is run by root. It all works ...
0
votes
0answers
14 views

Need Help to locate the GRUB FILE..!

I know this question has been discussed multiple times but my solution is no where in any one of those. So my apologies for writing such a post again but i am really out of my wits. My system is ...
2
votes
0answers
19 views

Add disks to encrypted LVM partition

If I increase my current encrypted (dm-crypt)LVM partition by adding another disk to it, is the new disk also encrypted or do I need to setup dm-crypt on it as well?
6
votes
2answers
122 views

How to fix intermittant “No space left on device” errors durring mv when device has plenty of space?

Ubuntu 14.04 on a desktop Source Drive: /dev/sda1: 5TB ext4 single drive volume Target Volume: /dev/mapper/archive-lvarchive: raid6 (mdadm) 18TB volume with lvm partition and ext4 There are ...
0
votes
0answers
23 views

Creating new gsettings/dconf schemas

I would like to know how to go about creating new schema entries for gsettings or dconf, to create an entirely new entity that does not exist. ie; /org/gnome/my-schema-entry/property-entry boolean ...
0
votes
1answer
27 views

BusyBox : dhcp client seems to cause NFS mount to stop working

I have a BusyBox based embedded Linux system, mounting the RFS via NFS. This works fine except when I try to use udhcpd to get a DHCP address for eth0. This then causes the NFS mount to stop ...
5
votes
2answers
39 views

Restrict USB access on a Debian

Is it possible to restrict the permissions of USB ports on a Debian (Linux) system ? For examples : Suppressing the ability to plug any kind of material excepted USB key? Giving the ability to ...
0
votes
0answers
19 views

Valid keycode but no scancode [duplicate]

Please reopen the question, it's substantially different. I asked about keys which don't work in this question. In tty I ran showkey --scancodes I found out that the keys don't even send a ...
0
votes
0answers
52 views

error: unknown filesystem entering rescue mode

I had two OS in my laptop. Windows 7 Licence version and I installed Linux Mint in Speparate Drive. It was all working fine before upgrade of windows 7 to windows 10. Problem is in my boot it was ...
0
votes
0answers
22 views

Can't access http anymore

My computer A is connected to an AP with an access to the internet. (interface called new0) I cannot have more than 1 computer connected to this AP. (authentification) I wanted to share internet, so ...
1
vote
1answer
26 views

Force screen output to external monitor while installing/booting linux

I'm currently using a laptop with a missing screen, so I've connected an external monitor which, for the most part, has worked quite well. Problems arise, however, if I have multiple Linux distros ...
0
votes
0answers
13 views

How to know perfect filesystem parameters for flash drive format

I have a flash drive and using btrfs on it with default parameters. And now I'm going to slightly improve read/write speed. I see that "play the game" with page and sector size can helps me. But ...
-2
votes
1answer
44 views

txt file to zip file

I have a simple text file named as 'file.txt' I want to create a .zip file which only include that 'file.txt'. I tried cat file.txt | zip newZipFun.zip -@. But it compressed my parent folder. ...
2
votes
0answers
27 views

Why does Android use SELinux? [migrated]

To restrict/sandbox processes Android uses SELinux. Why was that chosen and not the linux capabilities or cgroups+namespaces solution? After all the cgroups+namespaces is kind of home grown for them ...
0
votes
1answer
1k views

How to install AMD Catalyst 15.7 (fglrx 15.20.1046) on Debian 8 (Jessie)?

A while ago I downloaded Debian 8 and I tried to install Catalyst 15.7, but when restart the computer, I get a black screen on my laptop. I read that Catalyst has some compatibility issues with ...
0
votes
1answer
32 views

Start Server Remotley

I am trying to start my server remotely with this ssh root@xxx.xx.xx.xx /sbin/reboot And keep getting this back ssh: connect to host xxx.xx.xx.xx port 22: Operation timed out Why can't I start ...
1
vote
2answers
39 views

umask permission - where it work, where it doesn't - ftp vs scp

Src = SJOAM Dest = sjoam2 Connecting to a ftp server, get a file from it. On ftp server side. [oracle@SJOAM ~]$ ls -l total.zip -rwxrwxr-x. 1 oracle oinstall 412 Aug 8 09:03 total.zip On ...
0
votes
0answers
21 views

Nullpointer dereference crashes on large memory allocations on ESXi with Linux guests

I think, there should be some type of memory corruption. The problems happen mainly on processes allocating large amount of ram (especially browsers, and cc1plus). JVMs with intensive ram usage die ...
1
vote
1answer
46 views

Killing PGIDs but proceses are respawning, how do I make it persistent?

I ran ps aux --forest -j to see parent and child processes. Here is an example: root 3744 3744 3744 0.0 0.2 77084 4160 ? Ss 09:34 0:00 /usr/sbin/cupsd -f lp 3747 3747 ...
-2
votes
0answers
15 views

Open Source projects for coverage tests

I want to analyze the coverage of tests of open source projects with gcov (total coverage/a specific test's coverage). Could you give 3-5 examples for this (like OpenSSL)? I'm searching projects ...
15
votes
3answers
777 views

Can I make a public directory under a private directory?

I have a personal folder /a/b on the server with permission 700. I don't want others to list the contents in /a/b. The owner of /a is root. Now I need to open the full authorities of directory /a/b/c ...
1
vote
1answer
32 views

Is it better/preferred to kill all child processes by using PPID or PGID?

I need the ability to kill all child processes running under a particular parent. What would be the better option to do this? Using PPID or PGID? Something like this: pkill -TERM -P Would kill ...
2
votes
1answer
51 views

Restrict user script execution

I have a game engine running on a Debian server. The game involves bots, which are coded in Python by the players. A player write a bot in Python Upon validation, the code is sent to the server A ...
0
votes
0answers
32 views

lsusb doesn't list device names

This is what I get from lsusb: $ lsusb Bus 002 Device 002: ID 8087:0024 Bus 002 Device 001: ID 1d6b:0002 Bus 001 Device 004: ID 1bcf:2c18 Bus 001 Device 003: ID 0489:e046 Bus 001 Device 002: ...
0
votes
1answer
16 views

Files are not shown on mounted partition that is booted from LiveCd

I need help. I have installed Arch after Ubuntu and Elementary OS, and after that my grub was messed up, and I was unable to boot again in Elementary OS. So I decided to backup my files from home ...
0
votes
1answer
32 views

How to detect the screen is locked or not when the screen saver is active on Redhat 6.6?

There are two screen saver options in Redhat 6.6 menu "System->Preference->Screensaver": (1) The option "Active screen saver when computer is idle". Check this option will cause the screen saver is ...