2
votes
0answers
16 views

Running script before suspending while using dbus

I have a file: /etc/pm/sleep.d/85rmNvidiaModule. In it I have: #!/bin/bash case $1 in suspend) echo "Oh, this time we are doing a suspend to RAM. Cool!" sudo modprobe -r ...
0
votes
2answers
68 views

What root directories should I back up? [duplicate]

I intend to start incremental backups of my Fedora 20 system, and would like to know what root directories I should include, and what directories it is useful to exclude. I know there is a lot of ...
2
votes
1answer
26 views

apt-get update exit status

How check the status of apt-get update? $ apt-get update ; echo "status is: $?" Err http://security.debian.org stable/updates Release.gpg Could not resolve 'security.debian.org' Hit ...
3
votes
1answer
93 views

bash permission denied but sh works

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with bash/sh works. The script is simply a collection of ...
-5
votes
0answers
43 views

to easily delete and undelete files [on hold]

Instead of immediately deleting a file, the del command will move the file to another location known as the trash can. The undel command will restore a file from the trash can, if possible. Safely ...
-1
votes
2answers
20 views

dpkg --status package_name

I'm just playing around with Ubuntu 14.04.1 LTS. I installed emacs, and wanted to double check if it was. ~ 1496 $ dpkg --status emacs dpkg-query: package 'emacs' is not installed and no information ...
3
votes
1answer
26 views

xmodmap keybindings don't work

I am trying to use Xmodmap to add some german diareses/umlauts to my keyboard, but Xmodmap is not working with them (but is with other remappings). I am following this guide: German Umlauts on US ...
0
votes
0answers
15 views

Problems with USB microphone ARCHLinux

My USB mic in webcam in Skype not working (cam works fine). I use Arch Linux with alsa. I set up pulseaudio but then I removed it because it is not stable. cat /proc/asound/cards 0 [SB ...
-2
votes
0answers
42 views

certain web sites are not accesible from Centos 6.5

HW: Lenovo T520 laptop with MS WIN 7 dedicated PC (DELL GX 280) SW: CentOS 6.5 (64-bit) installed using VMware Player on MS WIN 7 host CASE A) -- BRIDGED networking selected CASE B) -- NAT ...
1
vote
1answer
14 views

xmobar doesn't appear

I installed xmonbar and try to launch it. xmonbar & I got Stopped. I don't know what's wrong. Here is my .xmobarrc Config { font = "-misc-fixed-*-*-*-*-13-*-*-*-*-*-*-*" , borderColor = ...
-2
votes
0answers
19 views

Disable telnet and ftp login for non-root users on HP-UX

How to disable telnet and ftp login for other users in hp ux 11.31, only root user have access to login through telnet and ftp.
-1
votes
0answers
18 views

Deleting symlinks of Firefox in Linux RedHat

I have played with symlinks and caused bunch of broken links. Now when (using GUI) I click on the firefox icon, it errors that "too many symlinks" exist. How should I clean those links? because I ...
0
votes
1answer
3 views

pip instal netifaces>=0.10.4 throws gcc compile error in suse enterprise linux 11

Hi I am trying to install few python packages and it requires the python-dev libraries. For SUSE enterprise i guess we need to download the SDK separately. I am not sure how to download and install ...
2
votes
2answers
37 views

How do I write a command for the Exec key in a .desktop file containing a reserved character correctly?

I'm trying to make a .desktop file for Minecraft. Nothing appears to happen upon executing the file. I've tried assigning the Exec key as follows: Exec= java -jar "~/.minecraft/Minecraft.jar" Exec= ...
1
vote
0answers
12 views

USB umount stats: inappropriate ioctl for device [migrated]

I'm writing some code for my program to mount a flash drive using mount("/dev/sda", "/media", "vfat", MS_NOATIME, NULL) and unmount using status = umount2("/media",MNT_DETACH); qDebug("USB unmount ...
0
votes
0answers
17 views

How can I type in one terminal and have it appear as if I were interacting with the second terminal (but not the first)? [on hold]

Honestly I don't care how this happens. Really I don't mean "terminal" necessarily, because what I look at are terminal emulators. If there is a terminal emulator I can use to do this, I'd be ...
1
vote
2answers
52 views

Find latest versions of multiple files in multiple directories

I am writing an application and one of the prerequisites is to be able to look at multiple directories and find the latest version of each file. I've had success with ls and find in order to get the ...
0
votes
1answer
25 views

How can I use SSH to tunnel Minecraft clients to my MineOS server?

I have a MineOS Turnkey server running on my university's network and its locked behind their firewall. I have been able to connect to their Linux servers using SSH and then SSH to my server from ...
1
vote
1answer
15 views

When using zsh tab-completion, Ignore CDPATH if a local file or directory matches

I love Z shell's tab completion with CDPATH, but sometimes it's overkill. I'd like it to only kick in as a fall-back if nothing in the local directory matches. For instance, I was just in ...
-2
votes
0answers
39 views

Extremely slow internet only with LAN

I am freaking out since about 3 months. As soon as I connect via the LAN cable at home some websites just won't load or are extremely slow for me. But with my WLAN I have no problems. For example: I ...
5
votes
1answer
33 views

How to find the number of bytes rewritten to a folder hierarchy?

I want metrics for how much writing and reading have been done to a folder. vmstat -d gives metrics at the whole disk level. iotop will give per process rw stats. But how can I find out how much ...
-7
votes
0answers
30 views

How do you zoom out on linux mint [on hold]

I hit a button by accident and zoomed in really far while I was on YouTube. How do I zoom back out?
-1
votes
0answers
6 views

Why is GCC not seeing functions in header file? [migrated]

When I try to compile I get this: aero$ gcc hostinfo.c /tmp/cc2RfYB2.o: In function `main': hostinfo.c:(.text+0x72): undefined reference to `Gethostbyaddr' hostinfo.c:(.text+0x8b): undefined ...
2
votes
1answer
28 views

What is the correct syntax for cloning a ntfs partition to a sparse file on another ntfs drive?

I have tried ddrescue -v -v -S /dev/sda2 /media/mint/otherhdd/img /media/mint/otherhdd/log and ddrescue -v -v -d -S /dev/sda2 /media/mint/otherhdd/img /media/mint/otherhdd/log but it does not work ...
5
votes
0answers
23 views

rsync hangs unless I defrag ext4 filesystem

I have a XBian server (Raspberry Pi version of Debian) running rsync via inetd (not the native dæmon). I am serving a couple of directories on an ext4 filesystem (on a USB disk) as individual modules ...
3
votes
0answers
25 views

Burning a video file with non-standard aspect ratio to DVD

A standard Unixy command line approach to burning a video file to DVD is as follows (assuming) # 1. First use ffmpeg to convert to an mpg file. ffmpeg -i input.m4v -target ntsc-dvd output.mpg # 2. ...
0
votes
1answer
14 views

Where is NMon cron job for AIX?

While trying to know where is NMon job configured to run; I do find that it's NOT listed on Crontab (using crontab -l). BUT - the job is currently running as expected, which is weird. See the ...
4
votes
1answer
109 views

Untar a specifc folder within tar.gz

How do I untar/uncompress a specific folder within a tar.gz using the terminal/commandline (Ubuntu 14.04 (Trusty Tahr))? Precise: -file.tar.gz -- folder1 -- folder2 How to extract... ... ...
0
votes
3answers
16 views

how to rename multiple files by replacing string in file name? this string contains a “#”

How to replace a text string in multiple files in Linux How to rename multiple files by replacing word in file name? Replace string in files with certain file extension Searching a number of files ...
2
votes
1answer
19 views

m4 macro using variable number of tabs to line up a column

This is the macro I have so far: define(`debug_macro', ` #ifndef $1_DEBUG #define $1_DEBUG'forloop(`i',`1',eval(5-(len($1)/4+ifelse(eval(len($1)%4 == 0)), `0', `1')),` ')dnl`0 #endif ') The goal ...
1
vote
0answers
10 views

rpmbuild different path for sysconfdir

I am building rpm for opensips and i want to install this package in /opt/opensips path instead of default system path I have define following in my SPEC file %define _prefix /opt/opensips ...
0
votes
0answers
27 views

Using NVIDIA instead of Intel causes a different theme

My current setup is a laptop with an NVIDIA Optimus graphics card running Ubuntu 14.10 with Cinnamon as my desktop environment. I usually use the Intel card because of the reason I'm asking this ...
20
votes
2answers
387 views

Switch to parent shell without logging out

Let's say I start in my local account: avindra@host:~> then I switch to root: host:~ # Then I switch to oracle: [ oracle@host:~] Is there a way for me to drop back into the root shell (the ...
2
votes
1answer
21 views

Exclude directories with 'rsync' and ssh with pull request

I am trying to pull from a remote server and exclude a directory on the remote server. For some reason it keeps pulling that directory I have excluded. Here is the command I am running: rsync -azP ...
4
votes
2answers
149 views

How to decrypt hostnames of a crypted .ssh/known_hosts with a list of the hostnames?

I try to find a script to decrypt (unhash) the ssh hostnames in the known_hosts file by passing a list of the hostnamses. So, to do exactly the reverse of: ssh-keygen -H -f known_hosts Or also, to ...
2
votes
2answers
15 views

In HP-UX, how can I log Informational Only system event messages in syslog.log?

I was getting some Informational Only single-bit memory errors on a server for at least three weeks, but I only happened to notice them because I went looking through the SEL via the MP console for an ...
1
vote
2answers
31 views

do not show error if file doesn't exist on copy, without sending to dev null

I want to avoid my script posting an error if I try to cp a file that does not exist. However, I would like error messages to print out for any other error, such as insufficient permissions. This ...
4
votes
1answer
61 views

Script for “battery level reminder”

I want to plug in the laptop battery charger when the battery level goes down to 40% and then plug it out when the battery charge level reaches 80%. And for that reason, I need a script that would ...
1
vote
2answers
56 views

mv multiple files same dir without specifying same path or each [duplicate]

If we have a dir/file setup like the following var |-->usr | |-FileA | |-FileB | |-FileC | |-FileD How can I move FileA and FileD without specifying the path twice like in ...
1
vote
1answer
30 views

ls -lh vs du -sh * for file sizes within a directory

This might be a simple question to ask but I guess I am little confused in terms of 2 commands so I need help In a particular directory I have some files. If I want to check the size of the files, I ...
1
vote
2answers
23 views

How do compile Linux Driver for Netis WF2190 Wifi dongle for FriendlyARM mini210s?

GOAL I want to install the Netis WF2190 wifi dongle linux driver onto my FriendlyARM mini210s. Environment FriendlyARM mini210s S5PV210 ARM Cortex-A8 Board ... running Linux 3.0.8-FriendlyARM ...
1
vote
1answer
36 views

zsh colored prompt

this is my PROMPT PROMPT='%{$fg[green]%}%n%{$reset_color%}@%{$fg[white]%}%m%{$reset_color%}:%{$fg[yellow]%}%~%{$reset_color%} $(git_super_status) %{$fg[white]%}\$%{$reset_color%}' Yes, the new line ...
0
votes
1answer
12 views

Migrate SSHD sftp Logging

currently my messages log file is filling up with Dec 19 08:46:43 XXXXXXXXX sftp-server[32357]: closedir and similar messages - is there a setting that I can move all sftp-server messages off to ...
-2
votes
0answers
10 views

Reference: Programming exercises in IPC, Internet sockets etc [migrated]

I read Beej's Guide for Sockets Programming and IPC 3 times. Did all the examples from it and know how the API's work. But still I am unable to get the confidence. So thought of doing some ...
2
votes
1answer
52 views

sudo - ubuntu 12.04 [on hold]

I am running a Ubuntu 12.04 LTS server. Today I have been doing some maintenance to the server, and a security audit. I realized that sudo is not working the way I expected it to. In the default ...
2
votes
0answers
10 views

Cross-NFS file move adds ACL

Moving a file from one NFS4 mount to another adds an ACL. The reason, if I understand the process correctly, is that mv queries the system.nfs4_acl extended attribute of the source file, and uses the ...
1
vote
1answer
39 views

What is Best Practice for running PHP in background?

When running the following on the command line it will be suspended until I issue the fg command: /usr/bin/php -r 'phpinfo();' & This is the case regardless if the PHP code is contained in a ...
2
votes
1answer
36 views

how to read any process' /proc/pid/io

I'm trying to monitor disk activity of each process. One way that I found how to do this is to read /proc/pid/io file and compare fields with previous read. That works fine except my monitoring ...
2
votes
1answer
35 views

is there a way to stop users sending to unwanted email accounts?

I want to set a command that only allows users to send emails to accounts ending in @hotmail.com @gmail.com @talktalk.net for example. Is there a way to set it so users can only enter these ...
3
votes
0answers
20 views

Does Samba 4 actually respect Unix file acls?

After researching the subject on the internet I drew a conclusion that Samba should take into account Unix file acls. During my tests I found the opposite. Only Unix file mode bits are respected, and ...

15 30 50 per page