-1
votes
0answers
3 views

How disable telnet and ftp login for other users in hp ux 11.31

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.
0
votes
0answers
4 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
0answers
3 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. The Exec command in my .desktop file is as follows: java -jar "~/.minecraft/Minecraft.jar" I can also think of doing it like this: java -jar ...
0
votes
0answers
3 views

USB umount stats: inappropriate ioctl for device

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
8 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)?

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 ...
0
votes
0answers
16 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
13 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 ...
0
votes
0answers
6 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
18 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
20 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
21 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 ...
1
vote
0answers
15 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
15 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 ...
2
votes
0answers
15 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
12 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
68 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... ... ...
2
votes
0answers
12 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
7 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
15 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 ...
15
votes
1answer
166 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
14 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
1answer
133 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 ...
1
vote
1answer
11 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
27 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 ...
2
votes
0answers
40 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
52 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
20 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
1answer
15 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
28 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
0answers
10 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
48 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
8 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
32 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
28 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
32 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
15 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 ...
2
votes
0answers
18 views

Making static routes persist after a reboot

I have two VLANs (default vlan and vlan 5 for voip). I have 2 interfaces, one for each VLAN. My route table looks like this right now: Destination Gateway Genmask Flags Metric ...
2
votes
1answer
24 views

calendar to check the date and then search 3 months back and add up the days of those months?

I want to use the cal comand or the date comand to displace the current day then I want it to displace 3 months before the current date then add up all the days in those 3 months up to the current ...
0
votes
1answer
9 views

install linux distro with overwritting grub?

Currently i am using linux mint 17.1 cinnamon for some reasons i need to install xubuntu 14.04. So how to install xubuntu with overwriting GRUB. ie. After installation I should have linux Mint's ...
4
votes
4answers
61 views

Using sed to search for a string and print everything before and after within a range

I have this file: sometext1{ string1 } sometext2{ string2 string3 } sometext3{ string4 string5 string6 } I want to search this file for a specific string and print everything before this string ...
1
vote
1answer
29 views

why does grep '\;.' expand to grep '\''\;.'\''' when executed over ssh?

$cat test.sh ssh HOST -l root -o StrictHostKeyChecking=no -q "/bin/bash -l -c /bin/env | grep -w PATH | grep '\;.'" $bash -x test.sh + ssh HOST -l root -o StrictHostKeyChecking=no -q '/bin/bash -l -c ...
3
votes
2answers
33 views

Trying to sort on two fields first is second criteria

I'm trying to sort on multiple columns a file with GNU sort. The format of the source file tmp/file.txt is : 03A12345679 2014-09-30-00.00.01.00 "03" => first column "A" => field separator ...
0
votes
0answers
12 views

KDE4 PolicyKit backdoor(misconfiguration) (tested on FBSD10x,PCBSD, probably will work on linux)

recently found subj on FreeBSD 10.x out of the box (with KDE4): [user@fbsd10] /home/user% su Password: su: Sorry [user@fbsd10] /home/user% sudo csh Password: Sorry, user user is not allowed to ...
1
vote
0answers
42 views

Working of cd command issues [on hold]

When I do cd ~/Desktop, it takes me to the Desktop. Then doing ls -a shows the hidden files . and ... Then doing cd . takes me to Desktop, but doing ls -a does not show directories . and ... Even if ...
1
vote
1answer
29 views

Why doesn't Linux remove route from routing table if interface is physically down?

As seen below, Linux(3.7-trunk-686-pae) keeps route to 10.10.12.64/28 in routing table although the interface is physically down: root@kali:~# ip addr show dev eth0 2: eth0: ...
1
vote
0answers
6 views

Using a picture as background in the filebrowser Nemo for directories which are not the home directory

im currently configuring Linux Mint Cinnamon 17 on a SSD as a Christmas present. I want to have the file-browser nemo display a .jpeg instead of a plain background in directories which should not be ...
1
vote
2answers
26 views

Can Process id and session id of a daemon differ?

As far as I understood from different articles and here , a daemon has the following features: Parent Process ID should be 1. No terminal should be associated with the process. The process id, ...
1
vote
1answer
21 views

I need to download Leonard Suskind video Lectures

Is there a way to download the physics video lectures using curl, mget, or wget. accessing youtube and selecting download method (MP4) takes too long. Any command line example would help greatly.

15 30 50 per page