0
votes
0answers
3 views

How to change the default site hosted by the ip address of a linux plesk server?

I have a Plesk Ubunutu VPS that had until recently one domain setup. If I accessed the IP address of the server I see the site setup on the domain. The problem is that I've now added a second ...
0
votes
1answer
18 views

Why are UNIX shells like this and how can I work around it?

One of the things I've noticed about BASH and other UNIX shells is that, by default and when used in typical ways, they spawn subshells for almost everything. e.g. foo=$(grep "someword" ...
0
votes
0answers
6 views

Why do I get an error when double quoting single quotes in a script that launches a remote SSH command?

I have this script: port=$1 cmd=$2 ssh root@127.0.0.1 -p $port "'"$cmd"'" When running myscript.sh 1000 "ls /dev/shm" it get this error: bash: ls /dev/shm: No such file or directory In the ...
3
votes
0answers
7 views

Which file system (among XFS, BTRFS and EXT4 only) does provide the best data resilience to disk corruption? [on hold]

Question: Given these three filesystems: XFS, BTRFS and EXT4, I'm wishing to know which does provide the best data resilience to data corruption in a setup without RAID. And, of course, why? ...
0
votes
0answers
5 views

Partition Tabling Not Working

I'm trying to install Kubuntu but the installer just stalls and I was told I first needed to create partition tables. When I tried that with the KDE tool, I got: Create a new partition table on ...
0
votes
1answer
11 views

how to remove the apostrophe and delete the space

I want to remove apostrophe from words such as in the word "duck's". I want to remove the apostrophe and the space left behind the apostrophe. I tried sed and I got "duck s" but what I want to get ...
0
votes
0answers
2 views

Character translation/locale issues in OpenVZ

So I have an OpenVZ instance in the form of a VPS offer. Ubuntu 14.04 is installed on it. For some reason no LANG variable was set system-wide. So I went and did that via /etc/default/locale by ...
0
votes
1answer
23 views

Changing my default directory in passwd changes my prompt

I don't understand what's happening in this scenario. I changed the home directory of a user by editing the /etc/passwd file instead of using usermod -d. It worked: the default directory wasn't ...
1
vote
0answers
7 views

Wildcard for arbitrary depth

I want to use grep where paths are arbitrary depth under the directory /path/to/dir and has the file name foo. I thought that the wildcard for arbitrary depth is **, and I tried grep some_pattern ...
0
votes
3answers
15 views

Shell pattern matching vs. regular expressions occurence

I am relatively new to Unix, and I stumbled across one curiosity. Some shell constructs like case or find, employ pattern matching, but it is not quite regex. Other commands, like ed, sed, vi, and ...
0
votes
2answers
12 views

Permanent header in bash terminal

I'm working on a small server I want to put together (nothing big, an Android HDMI dongle, running Debian armhf, no desktop, just remote), and I want a small little feature I've seen at a few places ...
0
votes
1answer
9 views

Gnome-terminal linux mint startup command

How do you edit gnome-terminal startup command? Someone put gnome-terminal && clear in my startup command box in the preferences panel on linuxmint. How do I either edit the preferences or ...
1
vote
1answer
11 views

Monitoring files continuously with lsof

Is there a way to make lsof work continuously to monitor every file that is being opened in real time? I don't know the name of the process. I want lsof to work continuously for a period of time ...
2
votes
2answers
21 views

List of subdirectories that contains a particular file name

I am wondering if i can do this in a single shell command. I am in home directory and want to find a list of subdirectories that contains a particular file. The file name and the depth is always ...
1
vote
1answer
5 views

How to merge config files interactively after “yum update”

After system packages are updated with "yum update", config files which could not be overwritten are not replaced, but we can find *.rpmnew files near by. By design system administrator must merge ...
0
votes
0answers
9 views

ERROR: init: ttyS0 (/dev/ttyS0) main process (1612) terminated with status 1

I'm getting the following errors every 10-30 seconds on a virtual Red Hat Enterprise Linux 6.5 2 Server on Amazons EC2. Sep 23 09:57:05 ServerName init: ttyS0 (/dev/ttyS0) main process (1612) ...
5
votes
1answer
28 views

How to colourise hidden files in `ls` file listings?

LS_COLORS environmental variable lets you decide on colours for different file types for ls command, such as, directories, regular files, links etc. I suppose that dot files are considered a variation ...
0
votes
0answers
11 views

How do I uninstall homebrew without uninstalling software installed via homebrew?

I don't like messing with my /usr and similar folders. I'm going to install one application via homebrew then I want to uninstall homebrew without uninstalling that application. In this case - wine. ...
1
vote
0answers
16 views

Quick switching between screen sessions

Suppose that I have two screen sessions (screen_session_a and screen_session_b), both of which have several windows (window_1 to window_n). The hierarchical layout looks like this: +--+ ...
0
votes
0answers
5 views

Dual Monitors on Crunch Bang

I'm running Crunch Bang and want to add a second monitor. When I plug the second monitor into my laptop, nothing happens. I can't find anything in the "Super+Space" menu that has to do with display ...
2
votes
2answers
61 views

using modified file content as arguments

In a script I'd like to purge a mercurial repository but be able to retain a number of (configurable) file patterns which I read from $FILENAME. The syntax for the hg command is hg purge --all ...
0
votes
0answers
16 views

Cannot run steam on ubuntu?

I just installed a steam client(Steam (steam-launcher)) from the software center. When I first start the software, it shows up 3 options. However, it shut down when I choose "LOGIN TO AN EXISTING ...
1
vote
0answers
14 views

How to install clang?

I have downloaded the "Clang for x86_64 OpenSUSE 13.1" (I am on Scientific Linux) pre-built binary from here: http://llvm.org/releases/download.html (Should I have got the Fedora one??) and I ...
0
votes
0answers
6 views

How to use secondary VGA device for TTYs

I have a machine (a virtual XEN DomU, but I don't think it matters) with two video cards. I would like to display the TTYs on the monitor connected to the secondary video card (i.e., not the display ...
0
votes
0answers
30 views

extracting data from a log file and plotting it using Gnuplot

I have a logfile with the following data in it: Sat Sep 20 11:25:01 BST 2014 -- temp=53.0'C -- message from script /usr/src/scripts/wifi_test_2.sh Sat Sep 20 11:26:01 BST 2014 -- temp=53.0'C -- ...
0
votes
2answers
21 views

How Linux kernel 3.x manage ramdisk as block device?

I need a block device in RAM. I built a 3.x kernel and added the RAM block device driver. The number of RAM block device drive is 16 (by default) but when the kernel boots there is no ramx in ...
0
votes
0answers
7 views

Security of Fedora third party repo RPMFusion

Due to the nature of Fedora licensing, it does not come with many propeitary software like adobe, flash, and codecs. So many Fedora users resort to using RPMFusion. My question is how safe is ...
0
votes
0answers
4 views

Difference between fsfreeze and lvm snapshot

I heard recently about fsfreeze and I'm very interested in to snapshot my vm with vmware and get a consistent state of disk using quiescence. All my file-systems are lvm volume, and man fsfreeze ...
0
votes
1answer
8 views

KVM bridge network requirement

I am following the following guide on installing my first KVM HV. http://wiki.centos.org/HowTos/KVM I thing I do not understand is the bit about bridge network setup. It states its optional, but what ...
0
votes
2answers
51 views

scp with password and renaming the file [on hold]

I need to execute scp command with renaming the file. I have tried with following code: HOST=lnx25 USERNAME=ngqa PASSWORD=xxxxx FILE=$1 FILE_NAME=`echo $FILE | awk 'BEGIN{FS="/"} {print $NF;}'` ...
0
votes
0answers
9 views

How to sync all Gnome/Unity settings across multiple machines?

I have three desktop PCs that I am planning to install either Ubuntu or Ubuntu Gnome on. So I am looking for a way to sync the configurations across them. These three machines are not of the same ...
0
votes
0answers
17 views

Why can't I use tab expansion/auto-complete of shell variables with cd?

I have setup a variable in .bashrc: export SOME_DIR=/path/to/some/dir Now, with ls I can type ls $SOME_DIR[tab] and the variable will be expanded, and I can then use tab for auto-completion when ...
3
votes
0answers
13 views

Strange cpu usage values reported by pidstat

I have a script that reports the cpu usage of a specific program reading values from pidstat. The script launches as: pidstat -C ^frontend$ -h -l -p ALL 1 1 The values reported this way sometimes ...
0
votes
0answers
15 views

Nginx don't follow symlinks

Nginx not follow symlinks, i get a 404 error, in my directory i have this link: lrwxrwxrwx 1 root root 48 Sep 23 08:52 modules -> /path/to/dir/ but the files stored in /path/to/dir aren't ...
0
votes
2answers
19 views

How Do I install DB2 Remotely?

I have been trying to install IBM DB2 10.5.0.1 on AIX 7.1.0.0 from a Windows 8-64bit using a Remote connection. It has been 3 days and I haven't been able to succeed; Here is a list of everything I've ...
-2
votes
0answers
24 views

Simple shell script [on hold]

So I need some help with writing a simple shell script that will allow a user to display a list of current users. It isn't homework and i'm not looking for a completed code, just help to how i'd go ...
0
votes
0answers
14 views

Sending SMS trough a modem attached to another server using ser2net and socat

I don't know exactly how to troubleshoot the issue I'm having, so I'll ask here. I have a USB 3G modem attached to a physical machine (server4) (running ProxMox (Debian Wheezy)), and I can send SMS ...
-1
votes
0answers
27 views

The system is going down for halt NOW! [on hold]

When i login as root user in Oracle Linux in User interface mood linux is going down, howe i may fixt it
0
votes
1answer
18 views

Disabling a keyboard key in console

I wrote a script that dialog command is vulnerable to Esc key, now I want to disable Esc key in console. NOTE: X11 has been not installed in server and xev or xmodmap doesn't work.
0
votes
1answer
29 views

Change file ownership, based on previous owner

I am a moderately new linux user. I changed my PC, and started using CentOS 7 from CentOS 6. So I attached my previous hard disk to my new pc to take backup of my files. Now, copying the files (and ...
0
votes
1answer
17 views

How to use programs by users who haven't installed them themselves?

I have created a new user on my Ubuntu Linux at which I am the root. My root account has access to Wine, I want to use Wine from my newly created account without having to install it again. I have ...
-1
votes
1answer
19 views

How to find the source of a currently running kernel on my machine?

I have a Linux 3.14.0 kernel(CentOS 6.2) running on my machine, but the source isn't in /usr/src/. Is there any way to find out the source from which it was compiled? The source is most definitely ...
-1
votes
0answers
21 views

Update file values with another file [on hold]

I have a file named /work/Target/IB/USSALESCOMP/ODS_INCR.prm as below $$Firm_INCR_DATE=09/05/1992 $$Branch_INCR_DATE=01/01/1900 $$Payee_INCR_DATE=01/01/1900 $$PRODUCER_INCR_DATE=01/01/1900 I ...
0
votes
0answers
6 views

tslib tools don't draw anything on the screen

Trying to calibrate touchscreen for Qt apps with tslib on ARM-device. When running ts_calibrate or ts_test, they both work (i.e. return info about touches) and ts_calibrate successfully calibrates ...
0
votes
0answers
14 views

How to map IP by iptables ?

I create a network namespace In this namespace, I open a nginx So for now, I can visit web server by 172.17.0.2 What I want to do is mapping this IP to 127.0.0.1 Lets say if I visit 127.0.0.1, I ...
0
votes
0answers
15 views

How to set DNS correctly in a network namespace? [on hold]

I try to set a network namespace and visit internet inside this network namespace. ip netns add netns1 ip link add A type veth peer name B ip link set B netns netns1 brctl addbr bridge0 ip addr add ...
1
vote
1answer
28 views

Chrome does not open Https websites

I am a corporate user with proxy server. I am working on the Fedora 20 OS and installed Chrome browser. I set proxy settings under Settings -> Network -> Change Proxy settings -> Network Proxy. ...
0
votes
0answers
17 views

Very strange issue, something is blocking specific links on local domain

I have a very strange issue and I ran out of ideas. The major problem is that the symptoms are not consistent. I have a short link website hosted on 2 virtual machines, one with nginx+php-fpm and one ...
2
votes
1answer
136 views

How can I change login while authenticating on SSH?

It's hard for me to express exactly what I mean, so I'll explain it in a few steps: I'm connecting with SSH, and server ask me for login. I write login, and then it asks me for password. I realize ...
0
votes
0answers
14 views

Cgi C program stopped working with error 500 [on hold]

My hosting owner did something with his Linux software on the server. And my C cgi program returns error 500 now. It worked good before. I tried to recompiler on Debian 7. The same error. Maybe it is ...

15 30 50 per page