0
votes
2answers
8 views

How To Synchronize Directories in two different external hard disks?

I have few big folders "cosmo_sim_9", "cosmo_sim_10".... in one of my external hard disk, and a old copy of this on another external hard disk. I want to Synchronize old directories with the new ...
0
votes
0answers
6 views

controlling module loading order using a shell script or systemd(fedora) service?

Using Ubuntu 12.04 with systemd(default). I have a broadcom 4312 wireless card which needs "wl" driver and broadcom NIC which uses "b44" "ssb" modules. now, the problem is, at boot the wireless card ...
2
votes
0answers
10 views

Desktop background appears black when using XFCE

I've installed Xfce4 on my laptop which runs Linux Mint 17 with Cinamon default desktop. Everything works OK and I customized my lightweight Xfce, like change menu location and desktop background that ...
1
vote
2answers
15 views

How to mask passwords in 'watch' command?

I am using watch to monitor the progress of a MySQL replication slave. The way I have it set up now, the password shows up in the header of the watch output. I am not exceedingly worried that someone ...
-1
votes
0answers
7 views

Unable to log in. xsession-errors file error

I screwed up my directory. I know I did it but don't know how to fix it. Apparently I was trying to add a new line to the ~/.profile, after using gedit text editor to open it, I added a few lines. Now ...
0
votes
0answers
6 views

Centos SMTP server not relaying mail

I have a someone generic install of Centos running a Magento site. I recently noticed that I am not able to send mail using the simple contact form. I am unsure where to check on starting my SMTP ...
0
votes
0answers
5 views

iptables redirect traffic from VPN interface to next interface

Can you help me with this problem please? I need redirect all traffic from tun0 interface (OpenVPN tunnel) to eth1 interface. eth1 is internal network behind this system which works as special ...
4
votes
3answers
14 views

How to Determine the IP Address of who logged into Root?

There are several people with root access to a particular VM I am in charge of. I would like to find out which IP address was used to log into root.
0
votes
0answers
17 views

Set persistent permissions for /var/log/boot.log

Every time I reboot my CentOS 6.5 computer, it writes the boot log to /var/log/boot.log. The permissions on this file are always 644 after a reboot. I want the permissions to be 600. When I change the ...
2
votes
1answer
46 views

How do I fill my password automatically from .bash_profile when running command as sudo?

I know I could just put something like sudo mypassword in my .bash_profile, but I don't want to run every command as root. I want password to autofill under following circumstances: only the ...
0
votes
0answers
16 views

Show signals received by processes [duplicate]

Is there a command or file that stores what signals each process receives? I know if I open one from a terminal and kill -9 PID it'll tell me, but what about something like firefox that is opened ...
1
vote
1answer
26 views

simulate the read only environment without the users realizing it in VirtualBox

I have configured the Virtual Box in my machine. Now, I have the original Virtual Box images available under the folder /home/original_vbox_images. Now, the Virtual Box, as per the configuration, ...
4
votes
1answer
22 views

Self-contained password manager with CLI

I'm looking for a password manager that has the following properties: The manager is entirely self-contained. I take and install a directory on a thumbdrive and execute from that drive. It should ...
2
votes
0answers
17 views

Why does the mountpoint of my root filesystem change?

When I look at the output of lsblk it will usually show: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 298.1G 0 disk ├─sda1 8:1 0 1023M 0 part /boot └─sda2 8:2 0 ...
1
vote
0answers
20 views

Terminal won't go back to prompt after launching app [on hold]

I'm running elementary OS Luna (based on Ubuntu 12.04) on which I've installed Okular as I consider it to be the best PDF reader even if it's meant primarily for KDE. The issue is this, I need to use ...
3
votes
2answers
25 views

Problem with read variable from AWK

I'm trying to get memory info by this command: #!/bin/bash set -x cat /proc/meminfo | grep "MemFree" | tail -n 1 | awk '{ print $2 $4 }' | read numA numB echo $numA I'm getting this + awk '{ print ...
2
votes
1answer
23 views

Error when calling a script from inside another script

I'm writing a couple of scripts to start vlc and periodically update its playlist. The update_pls.sh works well if I execute it from prompt, but when I call it from start_vlc.sh, in each for cycle I ...
6
votes
3answers
162 views

Why does “wc -c” print a value of one more with echo?

When running echo abcd | wc -c it returns 5. But the word abcd is only 4 characters long. Is echo printing some special character after the word abcd? And can I prevent echo from printing that? ...
-1
votes
0answers
13 views

Become root after login via plink from Windows host

I m trying to connect to a linux server from Windows host via plink. I couldnt figure out how to become root after logon. I have to login with ordinary user first as I can't change config of the ...
0
votes
0answers
22 views

Swap appears to not be in use

(I am currently using Ubuntu 14.04 LTS, GNOME environment) tl;dr How can I force more memory swapping (swappiness already at 100)? I have recently been experiencing a lot of system freezes/crashes. ...
0
votes
0answers
14 views

Firefox not responding properly in linux [on hold]

While running through any Ubuntu distribution as soon as I enter my proxy setting in firefox it stops working. If I run it through an open network it works fine, but as soon as I enter proxy settings ...
4
votes
3answers
90 views

Running commands on multiple servers

I want to execute a process on multiple servers. I am using the following wrapper script. The script moves to servers one at a time. I would like to change it so it can execute on multiple servers. ...
0
votes
1answer
16 views

How to view recently submitted bugs in Debian bugtracker

I run Debian testing and occasionally notice hiccups in my system. I'd like to be able to see if someone has reported a related bug, but don't always know what package names to look for. Or, before ...
0
votes
0answers
5 views

XFCE make media keys work globally?

I'm running Gentoo with xfce. I also have a logitech keyboard that has media keys like play and pause. The keys work fin in most programs, like vlc, if the program has the focus. I want these keys ...
1
vote
3answers
109 views

Iteratively edit a single file

I have a single file with a statement that looks like this : myName_tx_1 VARCHAR(255) myName_in_1 VARCHAR(255) myName_tx_2 VARCHAR(255) myName_in_2 VARCHAR(255) myName_tx_3 VARCHAR(255) myName_in_3 ...
-2
votes
0answers
11 views

vim switches split afer entering/leaving a folder

I'm using vim as a browser/navigator (e.g., with :e ./). Now, when I enter/leave a folder (e.g. with -), vim switches to another split. This does not occur always, but often enough to irritate me ...
0
votes
2answers
53 views

Linux understanding File command

Please let me know if below two statements are correct or not: Folder /usr/share/mime/magic has a database/table that will give me what are the current possible file formats (outputs that I can get ...
2
votes
1answer
8 views

Munin doesn't show new host when using munin-cgi-html

A few months ago, I switched from running Munin in static munin-cron mode to dynamic munin-html-cgi mode, but now when I add a new host to monitor it, it doesn't show up in the generated HTML, even ...
0
votes
2answers
18 views

Access Log Timespan

How can I output first and last time of an access_log so that I can quickly check which time range access_log keep records between? Output may look like: [21/Aug/2014:06:29:41 -0400] :::: ...
0
votes
1answer
18 views

Hyperthreading question

I'm running Oracle 10 on a blade450 g6. I have hyper-threading turned on but I have heard several people say that Oracle databases don't play well with it. Are there specific performance or ...
0
votes
1answer
27 views

Changing crontab with sed

Can you please tell me what is missing in the following sed? I am trying to change cron pattern. crontab -l | sed 's/jj-0.1/jj-0.1.1/g'
2
votes
0answers
43 views

How to write a shell script to run multiple command in different screen sessions?

My goal is to write a zsh script in order to create multiple screen sessions and run separate commands on each of them. I would also like to check at the beginning of my script if there are any ...
5
votes
2answers
21 views

Color coding html color sequeces in vim

It it possible to setup syntax highlighting in vim so that a html color sequence is colored in that color, e.g. #FF0000 would show up as red. I'd also be ok with it underlining the text that color ...
0
votes
4answers
33 views

How to check a particular directory is mounted?

How to check a particular directory is mounted on the Linux machine. For instance there is a folder named test, I want to check if it is mounted or not.
1
vote
1answer
22 views

Read target of symlink and increment target by one

I have a folder structure that looks like this /some/folder/1 /some/folder/2 ... and a symlink current that links to one of the folders. Is it possible and when how to read the target of the link, ...
0
votes
1answer
12 views

Why -t release don't downgrade the package while package/release does?

When upgrading a package, -t or --default-release works wonder: ➜ ~ sudo apt-get install -t unstable libpam-gnome-keyring Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
17 views

How to get ids from xml file into mysql?

I've got 8 xml files and need to do some work on these records in mysql. What is a good way to get these IDs into mysql? <?xml version="1.0" encoding="utf-8"?> <Records> <Record> ...
0
votes
0answers
7 views

LVM2 Mirror Support Missing from Kernel after System Migration

I had a system that was running on a small netbook that had LVM2 set up to group two external USB hard drives into a volume group, and to use that volume group to create a mirrored logical volume. ...
0
votes
0answers
4 views

Working of dup3 [migrated]

Hi while reading dup3 system call, i got that it will change only O_CLOEXEC flag of duplicated file desriptor. But when i have written below program for all the 3 outputs it printed the flag is either ...
3
votes
3answers
54 views

How do I gracefully suspend and resume `cmd1 && cmd2 && cmd3` chain?

From the previous question it seems I failed to understand how && and ^Z interact properly: $ command1 && command2 && command3 Running command1 ... Running command2 ...^Z [1]+ ...
0
votes
1answer
13 views

Downgrade package from backports back to stable

I updated tmux on my VPS with: apt-get install -t squeeze-backports tmux -V And needed to get back to previous version to recover some running sessions, so I went to look which version of tmux is ...
1
vote
5answers
53 views

How to overwrite stdout using echo? [on hold]

We know to overwrite bar.txt, we can use this: echo "foo" > bar.txt but how can we overwrite to the standard output? I tried this command: echo "foo" > but it failed. I want this because ...
1
vote
1answer
26 views

Time requires to synch. UNIX server with NTP server; after manually chaging te UNIX server's time

I have a GPS server with NTP output. I want to synchronize the clock on the UNIX server using the NTP output of the GPS. After changing the UNIX server time manually, UNIX server takes a long time to ...
0
votes
0answers
35 views

chroot into system

I need to install Mint on my laptop which has a fake raid0. I tried lots of time and always get an error while installing Grub. I checked on the internet and someone found a solution : after ...
3
votes
1answer
39 views

How to make gdb not ask me “y or n”?

When I use GDB command add-symbol-file to load the symbol, GDB always asks me 'y or n', like this: gdb> add-symbol-file mydrv.ko 0xa0070000 add symbol table from file "mydrv.ko" at ...
0
votes
1answer
35 views

How do I count the total number of unique strings from a file using linux [on hold]

In File1: OrderChange[a.1],partition=ORDER OrderChangeResponse[2.b],partition=ORDER I used below cmd getting output as 2 but it should be 1 as OrderChange in above file is 1. cat File1|grep -i ...
3
votes
2answers
108 views

Remove duplicate fields in a given column (after ID check)

I'd like to remove from a given column ($2 in the example) the duplicate fields (comma separated), but only if the ID column ($1 in the example) is the same. Input: A 1,2,3,4 A 8,9,10,11 A ...
1
vote
2answers
31 views

Remove duplicate fields in a given column

I'd like to remove from a given column ($2 in the example) the duplicate fields (comma separated). Input file: A 1,2,3,4 B 4,5,6,3 C 2,15 Expected output: A 1,2,3,4 B 5,6 C ...
0
votes
0answers
22 views

Recovering windows partition in Mint (testdisk fails)

Yesterday I messed up my partitions, wanting to replace Ubuntu with Mint. My other partition had Windows 8 on it. I booted Mint from a live USB and started the Mint setup. I selected the option to ...
0
votes
0answers
13 views

segmentation fault when running with high data resolution [on hold]

I have a tool that uses some ray-tracing computations. In this tool I can set the ray-tracing resolution grid. High resolution means more data and more accurate results. Also, the program uses ...

15 30 50 per page