All Questions
0
votes
0answers
6 views
Update file values with another file
I have one file "/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 have ...
0
votes
0answers
3 views
tslib tools don't draw anything on the screen
Trying to calibrate touchscreen for Qt apps with tslib. When running ts_calibrate or ts_test, they both work (i.e. return info about touches) and ts_calibrate successfully calibrates touchscreen when ...
0
votes
0answers
4 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 ...
-1
votes
0answers
5 views
How to set DNS correctly in a network namespace?
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
9 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
5 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 ...
1
vote
1answer
15 views
SSH How can i change login while authenticating?
It's hard for me say correctly what exacly I mean, so i'll explain it in few steps:
I'm connecting with SSH, and server ask me for login.
I write login, and then it asks me for password.
I realzie ...
0
votes
0answers
9 views
Cgi C program stopped working with error 500
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 ...
1
vote
1answer
11 views
Start Mysql/Mariadb in Fedora failed
failed to start mysql in Fedora 17. I am using root account to run the below commands and selinux is disabled.
service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Job for ...
0
votes
0answers
6 views
keyboard hard remap keys?
I am trying to find a way to remap keyboard keys forcefully.
I tried using xmodmap and setxkbmap, but they do not work for one specific application. Such commands work for other normal ...
0
votes
0answers
22 views
How to restore the default signal processing behavior on Solaris?
I have found the signal processing behavior on my Solaris 10 is changed. For example, when I Ctrl+C, the program can't exit. Use psig to check the signal processing behavior:
HUP default
INT ...
0
votes
1answer
17 views
How do I switch from bash to zsh? [duplicate]
I can start zsh with zsh.
How can I make it be the default for new terminal windows?
Will it be ok to copy my .bashrc to .zshrc to get things like my customized PS1 prompt.
-2
votes
5answers
41 views
How to change to normal user in the command line when logged in as the root user?
I log into an system through root via ssh.
How do I become the normal user or another user on the system?
1
vote
1answer
16 views
How to tell Firefox to skip connections going to a specific address?
Quite a number of Web sites use the same connection to some Ajax site, which I assume is used to provide some JavaScript to various sites. Where I live, the connection to this is extremely slow, so ...
0
votes
2answers
38 views
What is the difference between installing software as root versus user?
I just installed CentOS 7 with Gnome desktop. In doing so, I created a root password, and added a user. Now I am logged in as the user. I like to install MariaDB server, PHP, and other software. To ...
1
vote
1answer
24 views
scripting copy of remote root-owned files when 'PermitRootLogin no'
I'm setting up a cloud node (only ssh-accessible, GUIs deprecated, running Debian 7) with 'PermitRootLogin no' for security. For some applications I want to copy some root-owned config files from the ...
3
votes
1answer
18 views
read only symlink or something similar?
I created myself a NAT for home use (Ubuntu+Samba+Greyhole+Apache+MySQL+other web server related stuff). 90% of files I store there are pictures that i really don't wanna loose (that's why Greyhole). ...
1
vote
2answers
21 views
Password protect a single folder ( not a web folder )
I run debian and I'm looking to limit a folder to only be accessible by one user. How do I set the permissions up so only that one specific user can enter it, and no other user. The folder I'm talking ...
1
vote
1answer
8 views
how to keep the touchpad but want to deactivate the buttons
The right button on the a acer v5 is broken. It got wet with milk and now it suddenly appears to keep pressed.
How cab I deactva the buttons at all to only work with the touchpad?
I have opensuse ...
1
vote
1answer
7 views
Create FQDN in LAN for Windows systems without samba
I just set up my raspberry pi. It is working great and I can easily access it from my local Windows machine using SSH. I gave it a custom hostname. I can acces the pi with this hostname only when the ...
0
votes
0answers
21 views
How does bash pass user groups to a child?
It is well-known that if I add myself to a new group, that change will not be reflected until I log out and back in:
$ sudo adduser me newgroup
$ groups
me sudo
$ groups me
me sudo newgroup
$
This ...
1
vote
2answers
40 views
How to find md5sum of files on remote machines by doing ssh?
I am running my below shell script on machineC which gets the md5sum of my files in my PRIMARY directory in machineC itself.
#!/bin/bash
export PRIMARY=/data01/primary
for entry in "$PRIMARY"/*
do
...
0
votes
0answers
8 views
Is there a version of script that plays nicely with vim?
man script says:
Certain interactive commands, such as vi(1), create garbage in the type‐
script file. Script works best with commands that do not manipulate the
screen, the results ...
0
votes
1answer
15 views
Why does Docker need root privileges?
I am learning Docker, and I quite like it.
However, I don't understand, why does docker need root privileges for making containers, reading logs, and so on.
I have read some articles like this one
...
0
votes
0answers
7 views
Telnet no echo output from xinetd script
I have have installed xinetd, and I wrote a script:
#!/bin/bash
echo "Some text"
touch /home/somefile
I made a service configuration under /etc/xinetd.d/ and basically it works
when I connect to ...
0
votes
1answer
20 views
Permission denied while getting the md5sum of a file using shell script?
I am running my below shell script which gets the md5sum of a files in my PRIMARY directory
#!/bin/bash
export PRIMARY=/data01/primary
for entry in "$PRIMARY"/*
do
local_md5sum=/usr/bin/md5sum ...
-2
votes
0answers
28 views
Trying to connect with Ubuntu. Ping possible, navigating not
Why does ping work (see below). But no internet...
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=37 time=82.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ...
0
votes
0answers
9 views
No volume groups found after restoring CentOS image to VirtualBox VM
I used Clonezilla to backup an HP Proliant server running CentOS 5.10. I restored the image to a VirtualBox VM but when I try to boot I get an error of "No volume groups found" "Volume Group ...
1
vote
1answer
11 views
What prevents RHEL7 default PAM config's “nullok” option from allowing empty passwords?
The config /etc/pam.d/password-auth is included by several PAM services including sshd. This is its auth stanza:
auth required pam_env.so
auth sufficient pam_unix.so nullok ...
0
votes
2answers
28 views
splitting a column using awk
I have a file like shown below. The 9th column has values joined by **.
chrXV 234346 234546 snR81 + SNR81 chrXV 234357 0.0003015891774815342**0.131826816475 +
chrXV 234346 ...
0
votes
2answers
21 views
When executing a script via ssh, how can I transfer variables back to the PC issuing the cmd?
I'm writing a pretty simple script that will SSH into the machine of my choice, run a script to obtain things like the number of users logged in, CPU averages, etc, and write it to a file on the PC ...
0
votes
3answers
31 views
Run linux process at very very low priority?
I have regular process that not so important but will consume so much CPU power, and I have another process which is really important, but it spend most of the time idle, but when it got a job it ...
1
vote
1answer
42 views
ssh as super user
I did the following mistake on a remote server :
# sudo chmod 700 /
Now no user but root can do anything. I can't even ssh as a normal user anymore, since I don't have permission to access bash.
...
0
votes
0answers
4 views
Xampp GUI panel was working in GNOME desktop but now wont in KDE (Kali)
Installed Kali with a gnome dektop (or gnome fallback).
Added KDE Desktop and left Gnome in place
XAMPP control panel would show under this command (Before KDE change)
user@Hades:/opt/lampp$ sudo ...
0
votes
1answer
24 views
Intermittent 'ssh_exchange_identification: Connection closed by remote host' error
While there are many questions on this site and others addressing this very issue, I haven't yet found one that seems to address what I'm experiencing.
When trying to ssh a linux box from a MBpro ...
-4
votes
0answers
23 views
shell script to read a log file and display in a readable / good format [on hold]
I need to read a log file which contains date,time,error_name, pid,program crash details and others content.
log file is supplied as input file to the script and output should display in following ...
0
votes
2answers
30 views
Bash script: test command -o option
I have a piece of code like this:
count=0
until [ -f $filename -o $count -ge 60 ]
do
count=$((count+1))
sleep 1
done
I know [ -f $filename -o $count -ge 60 ] is a test command, "-f $filename" ...
0
votes
0answers
8 views
DNSSEC: how are DS records supposed to be transferred and end up in parent zone?
My notes say that the hash is supposed to securely sent and stored in parent zone so what do I do after:
dnssec-keygen -a RSASHA256 -b 1024 -n ZONE mydomain.net
dnssec-keygen -a RSASHA256 -b 2048 -n ...
0
votes
0answers
6 views
Can't FTP into Google Compute Engine instance using Debian
After trying to setup vsftpd on my google compute engine instance, I was unable to completely connect to the FTP server. After attempting to login with FileZilla, I got this response:
Status: ...
3
votes
2answers
35 views
Why does du and quota results not match?
I have exceeded my disk quota on a system which I do not have root access. I tried removing old files but am still over. I tried runing du to find where I am using up all my space but it reports I am ...
0
votes
1answer
11 views
How to validate/verify .desktop files?
I have a couple of .desktop files that aren't working as expected or not at all. I can't see any error anywhere and asking for help on each one seems unproductive. Is there a way I can verify that I'm ...
0
votes
0answers
7 views
Graphics Expose Event handler issues (X Server)
I have a 2D graphical application (a SCADA system) that needs to redraw regions when the graphics are panned or zoomed.
The redraw works fine on one head, but not on multiple heads. The ExposeEvent ...
0
votes
0answers
8 views
No error in lpr but printer doesn't print
I'm having a problem with printing pdf files. When I try to print them in the default mint's document viewer everything seems to work but my printer is stuck with the "Processing please wait" message. ...
0
votes
0answers
10 views
Why will plymouth not update?
I admit I don't update my kernel very often. I used to everytime a stable release of sys-kernel/gentoo-sources came out so I'm very adept at doing it. This last weekend I attempted to update from ...
2
votes
1answer
35 views
Bash - how to make explicit operator precedence without creating a subshell
I'm sure this is posted somewhere, but I haven't been able to find it.
In Bash, how does one specify operator precedence (aka command grouping) without creating a subshell? In most other languages ...
1
vote
1answer
58 views
HISTSIZE HISTFILESIZE not working
I have set these global variables in my .bashrc file
Running
echo $HISTSIZE
echo $HISTFILESIZE
both return 10000
My History contents are overding, currently from 254 - 432
If I type another two ...
0
votes
2answers
53 views
linux - top command + use top command in bash script
I want to execute the top command from my bash script
the problem is that usually when I type the top command on the console , I exit by Ctrl+C.
but how to exit from top when I run the top command ...
-1
votes
1answer
14 views
search for a character in one column and replace value in another column of matched records
I have a requirement to find value 2 in column 4 and wherever it matches replace 6th column with '-'sign in the beginning
suppose if i have csv file - file1 like this
abc,0,def,1234,ijk
...
0
votes
0answers
32 views
Equivalent of Windows nslookup > ls -d for dig in Linux
What is equivalent of Windows nslookup> ls -d in dig because nslookup shows all subdomains but dig doesn't. According to microsoft ls -d which Lists all records for the DNS domain. This parameter ...
0
votes
3answers
15 views
How to write a pattern to a device to use it with badblocks with -t test_pattern option
I recently bought a 4TB hard disk and I want to do a read-write badblocks test on this before I start using it. Since running badblocks with -w option would take ages for 4TB, I've thought to first ...