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
14 views

Installing Linux on external drive, then booting up a different machine with it

So I have a machine that I want to install Linux on but for some reasons I won't get into, I can't. What would happen if I hook up an external drive to my laptop, install Linux on it, then plug that ...
0
votes
1answer
10 views

nohup nice job aborted when disconnected

I've learned that "nohup" command allows the command to keep running if you lose your connection or need to logout. I'm running "nohup nice my command &" in remoter through shh, and after my lap ...
0
votes
0answers
4 views

Setting umask of libvirt/virt-manager for proper permissions in a directory shared by host and guest

I'm attempting to create a directory that is fully available to both the host and guest systems of a virt-manager/libvirt/QEMU/KVM virtual machine, with read, write and execute permissions for ...
1
vote
2answers
3k views

Unable to install anything on a linux on HP t610 Thin Client

I'm trying to install a Dymo Label Printer on HP t610 Thin Client which has a light read only Linux on it and is connecting to a Citrix environment for users to bring up their virtual desktop. I ...
23
votes
2answers
16k views

What is the proper sudoers syntax to add a user?

According to the comments in /etc/sudoers (Fedora 13): ## Syntax: ## ## user MACHINE=COMMANDS ## ## The COMMANDS section may have other options added to it. My two related questions: What ...
0
votes
2answers
17 views

sed + add comment to IP - only if IP is matched exactly

my target is to add "#" to the IP's with sed, But Only if IP is matched exactly!!! for example: sed 's/72.16.90.12/#72.16.90.12/g' /etc/hosts more /etc/hosts 72.16.90.121 host1 ...
0
votes
0answers
14 views

Reading file using shell script, format of the line has changed

I am reading a file using the following code: displayLine(){ echo $line } filename="SampleFile" while read line do displayLine $line done < "$filename" The format of the file that I am ...
0
votes
0answers
8 views

Location of interrupt vector table in Linux kernel v4.4

I'm trying to find where the vector table is set inside of the kernel, but I haven't had any luck locating it. I have a feeling it is located under arch and is one of the architecture dependent ...
1
vote
1answer
21 views

sed + update 4 different IP's in hosts file in one sed command

how to run the follwoing sed command in one command line? sed -i s'/12.1.0.11/#12.1.0.11/g' /etc/hosts sed -i s'/12.1.0.12/#12.1.0.12/g' /etc/hosts sed -i s'/12.1.0.21/#12.1.0.21/g' /etc/hosts ...
3
votes
2answers
415 views

Can AIDE scan a directory inside a directory the user doesn't have read permissions for?

I would like to use AIDE to help me verify the integrity of my home directory on a shared Linux system. I am not an administrator of this system. I have built and installed AIDE in my home directory ...
0
votes
1answer
11 views

unable to detect newly added lun in rhel4

Unable to detect newly added lun in RHEL4 running with 2.6.9-103.ELsmp..Tried LIP protocol but that didn't helped echo "1" > /sys/class/fc_host/hostx/issue_lip Any help is appreaciated
1
vote
0answers
5 views

wvdial and ppp connection drop out issues

I am using a serial port based 3G modem to connect to the internet on my system running on ubuntu 12.0.4 LTS. One issue that I am facing is that after some time (like 3-4 hrs of connection ...
-1
votes
1answer
37 views

How can I mount a disk without formatting it?

I have a disk filled with my precious data which was mounted in a machine. I want to mount this disk into another machine and read the data in it. It seems I have to set the disk partition and format ...
3
votes
1answer
30 views

How can I get the amount of available memory portably across distributions?

The standard files/tools that report memory seem to have different formats on different Linux distributions. For example, on Arch and Ubuntu. Arch $ free total used free ...
0
votes
0answers
22 views

How to execute a command after ssh login via batch file

I want to execute a set of commands at once I login to a ssh session everytime via a batch file. Eg: start putty.lnk -load "session" -ssh username -pw password -m <commands> Here I am using ...
-1
votes
1answer
21 views

Need a script for adding bulk IP aliases in CentOS [on hold]

Need a script for adding bulk IP aliases in linux server (CentOS 6.7) As we manually add for eg. ifcfg:eth0:1 but adding 150 to 200 interfaces manually is a lengthy work. SO need a script which will ...
0
votes
0answers
5 views

Archlinux Raid Setup

So I want to setup a raid setup with 2 drives but I want to have the possibility to upgrade along the line. I watched a video on Linus Tech Tips today and saw he used a Raid card with 2 SAS ...
12
votes
2answers
8k views

How do I force a user to change a password at the first time login using ssh?

I'm trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did ...
0
votes
3answers
35 views

display lines with not more than 4 words in the second column

I have a symbol table of the form M07UP49A0870I422.wav <s> haraa keelaa <bn> </s> M07UP49A0870I423.wav <s> <horn> jau <babble> </s> ...
0
votes
1answer
13 views

GNU screen locked, how to unlock?

So here's what happened: I ssh to the server with a normal user I run sudo -i I run screen Then I accidentally locked the screen session. to unlock it, it asks for root's password not the ...
0
votes
2answers
19 views

Problem in installing new software - RHEL6

I am currently having difficulty in installing new software/plugins on my rhel6 work pc. I don't have any internet connection on it and have to download anything I require on a separate internet PC ...
2
votes
1answer
22 views

Found Duplicate PV in LVM disk scan

I have a VPS, and I attached another hard disk to it. It contains the same partitions I have on my current disk; it has / and /boot and swap. I need all data on the / partition. Here is the output of ...
0
votes
0answers
23 views

I cannot open up my flash drive

I have a flash drive that has a storage space of 8GB, a mark of ASA MANHATTAN. When I plug it in my computer, I get the following message: This location could not be displayed. Sorry, could not ...
0
votes
0answers
4 views

conky variables in downspeedgraph

How can I use a color variable in my .conkyrc Content : color_var = FF00FF ${color_var}Name ${downspeedgraph wlan0 32,175 ffffff ffffff} How can i replace ffffff by for example color_var A ...
0
votes
2answers
49 views

command not found error after giving permission to access file using chmod

I've been trying to run a script using chmod. Here's how I tried to execute the script: $ chmod u+x tester $ ./tester ./tester: Command not found. I always get the Command not found error and I'm ...
2
votes
1answer
4k views

Unable to use yum repos whether with baseurl or mirrorlist in CentOS 6.5

Since a couple of days, I'm unable to retrieve repositories data with Yum, in my CentOS 6.5 server. I did yum clean all a dozen of times, it emptied all but didn't solved the problem. I tried to ...
0
votes
1answer
774 views

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'

I am running PHP 5.6 on Linux. When I try to load a PHP page, I'm getting the following PHP error. PHP Startup: Unable to load dynamic library /usr/lib64/php/modules/php_mysql.so' When I look ...
30
votes
4answers
35k views

How to attach terminal to detached process?

I have detached a process from my terminal, like this: $ process & That terminal is now long closed, but process is still running and I want to send some commands to that process's stdin. Is ...
3
votes
3answers
31 views

kernel configs and dependencies

When a particular kernel config is turned on, e.g. CONFIG_CRYPTO_FIPS=y a bunch of other dependencies (CONFIG_XXX_YYYY) get turned on during compilation. Is there a way to know all the dependencies ...
0
votes
0answers
17 views

All files created in directory should be owned by bob

I'm looking to have all files in a directory owned by bob. I'm aware I can chmod g+s to get the group set on new files but I don't think I can do anything like that for the user. This is what I've ...
2
votes
2answers
190 views
+50

High memory usage but no process is using it

I run free -m on a debian VM running on Hyper-V: total used free shared buffers cached Mem: 10017 9475 541 147 34 909 ...
1
vote
0answers
11 views

How should the `crypto` kernel parameter be passed?

I've encrypted a root drive using a cipher with this format: <cipher>-<chainmode>-<ivmode>:<ivopt>. Let's call this [CIPHER] for short. To boot from this device, certain ...
1
vote
2answers
833 views

Command/scripts to check the Reverse DNS Lookup time

I am working on a project in which one master communicates with numbers of slaves. For that it has to make connection with hosts in network. But sometimes it hangs. I think that the reason behind is ...
19
votes
2answers
41k views

How to use command line to change volume?

I am trying to control the volume using my programming script. How can I do the following in Fedora 15, Ubuntu linux? Mute/ Unmute Volume up and volume down Note: Please note that I use a web USB ...
0
votes
0answers
8 views

how to remove a RFL_SourceSumbission_20150901 - header .csv [duplicate]

I have created csv file like RFL_SourceSumbission_20150901 - header .csv. I am able to delete other csv files which created normaly but i am unable to remove RFL_SourceSumbission_20150901 - header ...
0
votes
0answers
11 views

MySQL Cluster node crashed, how to re-add in cluster?

We have 2 data node in mysql cluster, and one of them got crashed (totally). I have re-install new OS and now i want to re-add same node back to cluster. How to do that without re-starting whole ...
3
votes
4answers
302 views

8G RAM and SSD - how big should the swap be?

I have a computer with 8G RAM and a 128G SSD. I don't plan hibernating. What swap size would you recommend? Would you change any swappiness? In the nearest future I'll compile programs (or even ...
42
votes
3answers
98k views

Finding the PID of the process using a specific port?

I am installing hadoop on my Ubuntu system. When I start it, it reports that port 9000 is busy. I used netstat -nlp|grep 9000 to see if such a port exists and I got this: tcp 0 0 ...
40
votes
9answers
157k views

Unix/Linux undelete/recover deleted files

Is there a command to recover/undelete deleted files by rm? $ rm -rf /path/to/myfile How can I recover myfile? If there is such a tool how can I use it?
0
votes
1answer
23 views

Linux file system corruption due to improper shutdown (fs ext4)?

I have been managing many Linux servers, It is very easy to play with Linux servers than any other OS. But Sometime I encounter a problem with Linux OS is that, The file system corruption. This ...
1
vote
2answers
1k views

tkdiff error on Linux Redhat 5.5

I installed tkdiff as root, and it runs fine under that user, but when I switch to a local user I get the error: Application initialization failed: Can't find a usable init.tcl in the following ...
1
vote
1answer
31 views

linux unbuffered compression options

I'm working on a embedded system and due to persistent memory restrictions, I need to compress a log file "on the fly". My objective is to have a one liner inside a script, which would look like ...
2
votes
3answers
4k views

How to enable libass on Linux?

I tried to enable libass for ffmpeg with this --enable-libass in command but it didn't recognise the command. Does anyone know how to enable libass on Linux?
0
votes
1answer
39 views

netstat shows over 44K connections without ip address, what's that?

I have a question about linux netstat usage and output results. I'm trying to solve a dilema about why my server is facing communications delays and bottle neck issues, So I started digging and ...
13
votes
1answer
13k views

Updating disk free size without rebooting the host

I use RHEL4 with LVM2 on it. At times even after removing large files more that a GB the partition size is not getting updated when is see using df command. -bash-3.00$ df -h Filesystem ...
0
votes
1answer
2k 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 ...
2
votes
2answers
50 views

USB flash drive formatted as “Linux Live CD” keeps the CD-ROM name after re-partitioning

I have an USB flash drive that I formerly used as installation medium for Linux Fedora. The stick still has the "Fedora Live USB" installation files on it. When I insert it into my olde laptoppe, it ...
3
votes
1answer
823 views

Can I use a parallel port as a CUPS input device?

I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect ...
0
votes
0answers
14 views

Create iso Frame buffer video [on hold]

How to create a ISO and only frame buffer video console? (Example: archlinux, fedora, debian, Ubuntu, etc)
1
vote
0answers
515 views

How to install AMD Catalyst 15.12 (fglrx 15.302) on Kali 2.0 (Sana)?

Previously I faced an issue installing Catalyzt 15.7 (fglrx 15.20.1046) on Kali Sana because of the whole /usr/lib and /usr/lib64 co-existing. Following the post How to install AMD Catalyst 15.7 ...