1
vote
0answers
15 views

Can vim edit a remote file as root?

I've found this question that explains how to edit a remote file with vim using: vim scp://user@myserver[:port]//path/to/file.txt Is it possible to do this as root (via sudo) on the remote host? ...
0
votes
0answers
15 views

Why would editing a wvdial.conf delete a user?

I used to do sudo user before dialing a connection; Upon recent editing of wvdial as in /etc/wvdial.conf the user doesn't seem to exist anymore or at least what I get to see on the prompt is, no ...
-1
votes
0answers
8 views

Fedora 24 - Asus c300 no audio

I have installed Fedora 24 XFCE 64 on my Asus c300 here is my Alsa stuff http://www.alsa-project.org/db/?f=b1a rpm -qa 'alsa' alsa-utils-1.1.1-1.fc24.x86_64 alsa-ucm-1.1.1-1.fc24.x86_64 alsa-...
-1
votes
2answers
30 views

To filter out input in lowercase characters

I need to filter out input in lowercase characters. I tried giving a file to the command: cat ws2.txt | sed "s/[a-zA-Z0-9]/[A-Z]/g"
0
votes
2answers
19 views

NFS high availability

I am in a situation where I would like to provide NFS servers in high availability. The setup I currently have is a VMware enviroment, with shared storage via a SAN using iSCSI. Simply, I have a ...
0
votes
4answers
40 views

How to add hostname as first line of a file

I have a file which has a few lines. one two three four five I need to add hostname of the server I'm working on as the first line of the file. For example if abcd555.india.com is the server, the ...
2
votes
0answers
15 views

Text display issues - certain applications only show a and _

I'm using a Debian 8 with testing repositories and i3wm. Quite a while ago some applications (vlc, ownCloud client, qbittorrent, teamspeak3) started to only display 'a's and underscores as dialog and ...
0
votes
1answer
19 views

How to check requested port number in Apache Configuration

I am using Apache 2.2. Now in that, I have done some changes: if any request on my port I want to send back http status code 404. Now I have 3 ports running on my Apache Server: 8808,8809,8810. If ...
0
votes
0answers
10 views

Flash an OS to an eMMC, from uSD with larger capacity than eMMC

With a Debian distro installed into a 8GB uSD (although uSD memory is almost free), I need to flash this distro into the 4GB eMMC of a BeagleBone Black board, based on AM335x SoC. The S2 switch ...
2
votes
0answers
19 views

Console: Can't type special characters (Ubuntu 14.04)

We have linux-based computers (Ubuntu 14.04.4) prepared by other company to use their software. We have root password. Those computers has no X Window System. Just consoles. There is a problem with ...
1
vote
4answers
38 views

rewritting text with automatic change with other file

I am trying to rewrite a file text, "main.txt" with changes from "changes.txt". The main.txt file is like this: word_1 genre_A word_2 genre_A word_3 genre_B word_4 genre_C word_5 genre_A And the ...
0
votes
0answers
10 views

ethtool flow control icmp

I'm trying to disable ICMP directly on network cards. I have IXGBE driver 4.4.6 and ethtool 4.5 I've successfully filtered udp4 trafic with : ethtool --config-ntuple eth2 flow-type udp4 action -1 ...
1
vote
0answers
6 views

Which version of VBOX API does libvirt support?

I have libvirt 1.3.5 and virtualbox 5.0.20 installed on my Gentoo system. When I start the libvirtd service, I got Libvirt doesn't support VirtualBox API version 5000020 Where can I found out which ...
0
votes
0answers
6 views

KDE: Does not log dbus name

I'm new with KDE. I have ubuntu 14.04 and installed KDE on it, I'm logged in as user A, create process as user B, that process creates session for user B(using /etc/gdm/Xsession startkde), as I know ...
0
votes
0answers
27 views

spaces affect the firefox commands in terminal

This command will open firefox in the private browser mode correctly firefox -private & However this command is only opening firefox in regular browser mode. firefox -private& What is ...
0
votes
1answer
30 views

How does the -name switch to GNU find work when targeting a directory and its contents?

I have a folder full of source files for an application, the project uses git for version control and so there is a .git directory: ├── composer.json ├── .git │   ├── branches │   ├── config │   ├── ...
0
votes
2answers
37 views

Why isn't ~/.bash_profile executed when starting Ubuntu?

I installed Ubuntu in Virtualbox in a MacBook Pro laptop. In ~/.bash_profile, I added some directories to PATH. But after I reboot the guest Ubuntu, the added directories are not in PATH. I wonder why ...
-3
votes
2answers
40 views

Specify 2 of 3 directories in a tree in bash

so I want to clean a directory before I start work. I looks a bit like this. ./static ├── css │   └── styles ├── img │   └── pictures └── js └── scripts I want to rm the contents of css and js ...
0
votes
0answers
5 views

Userspace call for virtio_blk_device in Virtio Infrastructure

I am acquainted with the control flow when an application from Userspace chooses to access or R/W any device in kernelspace using IOCTL system calls. I am trying to implement a virtio PCI driver & ...
1
vote
1answer
23 views

how to search file for begin of string and save a variable

i am trying to find a way of searching a file for string, it needs to work by searching then file and if any line in the file begin with what i am searching for, then take that whole line and save it ...
1
vote
1answer
24 views

Setting old system date

I have a Centos 7 server running in a cloud-server provider (ProfitBricks). I need to setup a demo system but is really hard to create daily fake data. My idea is to configure this server with an old ...
0
votes
0answers
7 views

Debian GNOME: touchpad settings missing. Use libinput instead of synaptics

I recently did a clean install of Debian GNOME and updated from stable to testing. Before updating to testing, I had several GUI settings for my touchpad. After updating, they are gone as shown in the ...
5
votes
3answers
363 views

How to calculate hexadecimal xor (^) from shell?

Unfortunately bc and calc don't support xor.
0
votes
1answer
11 views

How to execute my shell script on remote Ubuntu Server using Net:SSH Ruby library? [on hold]

I am simply trying to install RVM on my remote Ubuntu Server. So for that I create a shell script so that I can automate the full installation process. When I tried to connect to the remote ubuntu ...
0
votes
0answers
34 views

How to Rename files in subfolders with subfolder name? [duplicate]

The directory structure is as follows: PWD/ A1/ acc.bam A2/ acc.bam A3/ acc.bam A4/ acc.bam All the acc.bam files should be renamed with subfolders names. For eg: "acc.bam" ...
-8
votes
0answers
15 views

Comparing two files whose names are changing (Perl/Shell) [on hold]

I have two files which are generated with some numeric filenames, and I want to compare those files. The names of the files are changing. I'd like to do this in a Perl or shell script. Can anyone ...
0
votes
2answers
25 views

browser script (automation)

I want to make Mozilla to run as soon as my pc is on. when Mozilla is open it must be redirected to my internet service provider site and must click on a specific field in that site to enable my login....
-11
votes
0answers
26 views

Replace xml tag using sed command [on hold]

How do we find and replace the xml tag. My requirememt is to find and replace the xml tag if both the tag is present then replace with null. Appreciate your quicker reply. Thanks
1
vote
0answers
20 views

Upstart services only work on startup

I'm working on Raspbian Jessie and I wrote my upstart script by follows this tutorial. Here is my /etc/init/videostream.conf script file. # RPI Camera Service description "RPICAM streaming" ...
0
votes
0answers
15 views

How to enable a PCI device if it is disabled

I have a remote PC with CentOS 6.5 installed. The problem is sometimes NIC doesn't boot up and this issue doesn't solve even after many reboots. but when I shutdown the machine completely, the card ...
0
votes
1answer
14 views

Create Partition (Standard partition vs LVM physical volume) in CentOS installation

All. Forgive me I not familiar with the Linux. I am trying to install CentOS in the VMWare. As I knew, Linux can only create three kinds of partitions. they are primary, extended, and logical, For ...
0
votes
0answers
10 views

Can't get akmod-wl module to work in Fedora 24 for Broadcom BCM4322

My system: Fedora 24 64 bit on a DELL Latitude E6400 I have a BCM4322 wireless interface lspci -vnn -d 14e4: 0c:00.0 Network controller [0280]: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless ...
0
votes
1answer
22 views

Some readline bindings not working

I'm tweaking with GNU Readline's key bindings in Bash. Specifically, I wish to achieve the following mapping effect: Control' ==> 'I' ControlShift' ==> "I" Control` ==> `I` Control[ ==>...
0
votes
1answer
25 views

Booted from NFS Linux has no permission for su command

I've booted Linux from NFS with Android system. And now I have to execute command as super use in minicom. But system doesn't allow me to switch to super user mode. Every time when I type: shell@...
1
vote
1answer
15 views

Any consideration for oracle installation which need to be done in OS installation?

Please forgive me if I post the question in the inappropriate place. Because I am not sure if it belongs to the DBA SO. Thanks. I am trying to install CentOS 64bit in the VMware for Oracle 11g 64bit. ...
1
vote
3answers
201 views

Hide ones command history from other users on a Linux server

When I log in via ssh on a Linux(Ubuntu) server, I notice that all the bash commands executed by other users on the server are saved in the command history. Is there a way that could allow me to hide ...
0
votes
0answers
28 views

password fails over ssh, works locally

This weekend I really dove into unix and got a Arch installed on an old computer and got it to serve my website. So I'm a bit of a noob. Today I went to copy a database file from my Mac laptop to my ...
-8
votes
0answers
19 views

perl script that will give match beween two files [on hold]

I have one file something like below: $ cat FILE1 C1CCC(CC1)C1CCC2C(C3C1CCCC3)CCC2 C(CCCCC(CC1CCCCC1)CCCCCC(CC1CCC2C1CCCC2)CCC(CC1CCCC1)CCC1CCCC1)CCCCCC1CCCC1 C(CCCCC(CC1CCCCC1)CCCCCC(CC1CCCCC1)...
0
votes
1answer
14 views

Guake works, but does not load/display a terminal

Usually, installing and running Guake is sufficient to make it drop down a terminal (for instance /bin/bash). Somehow, I managed to get Guake to start with no terminal -- just a black, empty "window ...
0
votes
1answer
14 views

linux server memory leakage, it grows inactive memory, how to find the process in inactive memory and to kill?

I have a problem with my Linux cent OS server, leakage of memory grows inactive memory, so how to find the process consists with huge memory in inactive memory to kill
0
votes
1answer
24 views

Arch+GNOME : Oh no! something has gone wrong

I installed Arch linux 2016 and instaled the following packages in this order : nvidia and nvidia-libgl (then rebooted) xorg xorg-server xorg-server-utils xorg-apps gnome gnome-extra My system ...
2
votes
3answers
123 views

Assigning command to variable without alias

I just accidentally found out that in bash, we can assign a command into a variable without using alias. g=date $g Mon Jun 27 13:00:40 MYT 2016 That works. Here's another example: jj="ping yahoo....
1
vote
0answers
36 views

Ethernet, wireless, adapter - what are these in my OpenWRT router settings?

I am looking at my OpenWRT settings and in Network -> Interfaces -> LAN and WAN see a lot of network interfaces. And it looks to me that there are too many of them. For example, in LAN section I ...
1
vote
0answers
7 views

AWUS051NH v2 not injecting in Kali Linux

I have an Alfa AWUS051NH v2 network card, and my Kali Linux recognizes it, however it won't inject packets when I run aireplay-ng -9 wlan1mon. I have fully updated and upgraded Kali, but it still ...
4
votes
1answer
77 views

What does '?' represent under TTY

If you run ps in your terminal, you may see something like the following: What is ?? I'm ssh'ing into a Linux server, so I assume that it's just the sshd as it says under CMD, but I'm curious what ...
0
votes
0answers
7 views

Connect to libreswan with ikev2 and behind nat

Server (Scientific Linux 7.2, like CentOS 7.2) with libreswan 3.15.7 in the internet cannot respond to a connection attempt if the client is behind NAT and insisting on using ikev2. It basically ...
0
votes
0answers
17 views

allow specific ip range to connect to port socat backconnect

So, we have: server 1 and server 2. On server 2 I run the command: socat file:`tty`,raw,echo=0 tcp4-listen:443 To listen for connections from server 1. The problem is, if I visit the IP of ...
0
votes
1answer
30 views

iptables not working with hotspot

I created the rule sudo iptables -t nat -A OUTPUT -d 64.182.208.181 -j DNAT --to-destination 127.0.0.1 Then, when I acess the site 64.182.208.181, instead of execute the normal page of this site, ...
2
votes
0answers
10 views

Reboot without having to decrypt LUKS partitions?

Is there a way to kexec reboot a running kernel without having to decrypt an encrypted LUKS root filesystem? I'd imagine not, but I'm not sure if there's a workaround for this.

15 30 50 per page