0
votes
0answers
22 views

How to send and receive files through given channel by scp in putty [on hold]

Suppose we have Putty and some bash-script on the remote cluster. First I send the file from my machine through putty. Once the file is received by cluster, the script starts to run. It generates some ...
2
votes
1answer
20 views

align rprompt with top of prompt

I've recently been getting really excited about zsh, and making myself an extravagant prompt, but I'm stuck trying to align my RPROMPT. I have an output like this: | [14:59:44] git:(master) ...
0
votes
0answers
4 views

blocking when bcache-register

When use the cmd ./bcache-register /dev/sdc or echo /dev/sdc > /sys/fs/bcache/register, the cmd will be blocked, and not return. Event if I use Ctrl-C. Like this: # ./bcache-register /dev/sdc ...
1
vote
1answer
26 views

SSH, Putty and sending data on the cluster

I have ssh access to the cluster through Putty. I also have the script, which, after its launch, makes some commands, generates data and sends it via email. Is it possible to provide following: I ...
1
vote
1answer
19 views

TCP over TUN: SYN/ACK is received, but no ACK is generated, and socket remains in SYN_SENT state

I am tunneling an outgoing TCP connection over a TUN interface set up by a program I wrote. The TUN interface basically just relays the packets to/from a proxy server, with minimal modifications ...
1
vote
1answer
19 views

How can I tell when my file system was last fsck-ed at all?

I know of various ways in which to check when the last fsck occurred on a file system. e.g. $ sudo dumpe2fs -h /dev/sda1 | grep 'Mount count' -A3 dumpe2fs 1.42.12 (29-Aug-2014) Mount count: ...
0
votes
1answer
27 views

login to remote server using expect program

I have written an expect program (refer below:), where I am trying to copy files to remote machine. While scp'ing, if I provide wrong password, my expectation is second condition will be met and print ...
1
vote
0answers
13 views

Can I change the X rotate the xf86-video-fbdev during execution?

Below is my /etc/X11/xorg.conf.d/1-fbdev.conf. /etc/X11/xorg.conf.d/1-fbdev.conf Section "Device" Identifier "LCD" Driver "fbdev" Option "fbdev" "/dev/fb0" Option "Rotate" "UD" EndSection ...
-1
votes
0answers
16 views

Hardening our existing Linux (Debian) system [on hold]

we are trying to implement some level of security to existing to our existing Linux system. Listed the are the requirement that has been gathered, 1. Application white listing 2. File integrity ...
0
votes
2answers
47 views

What's the difference between a flag, an option, and an argument? [on hold]

Examples: ls -a (I consider -a an option) sudo -u username (-u = option, username = arg) chmod 664 my-dir (664 = option, my-dir = arg) I can't think of an example that might say "this is a flag" ...
1
vote
0answers
26 views

fedora 22 filesharing problem with virt-manager and Windows 7 guest

I'm running Fedora 22 (64 bit, 16gb memory, ext4 boot disk) with a cinnamon desktop and I would like to use Virtual Machine Manager to run Windows 7 as a guest. However, I'm having trouble ...
0
votes
1answer
13 views

Linux kernel 3.14: Cannot find LILO

I'm trying to compile linux kernel 3.14 on ubuntu 14.04. Before anyone points out, I know newer stable versions of the kernel are available but I have been asked to install 3.14 itself. So, I wrote a ...
1
vote
1answer
21 views

'python-software-properties' has no installation candidate while installing torch

I'm pretty new to Linux, I'm using Ubuntu and want to install Torch. I'm following this guide. The first line runs fine: git clone https://github.com/torch/distro.git ~/torch --recursive But fails ...
2
votes
1answer
12 views

Mint 17.3 Wi-Fi does not work after resuming from suspension

My Wi-Fi will not work after suspending but WILL work after hibernating. I've tried a couple things and have had some luck so I'll post what I've done and the effects I've seen. $ sudo lshw ...
1
vote
0answers
7 views

“BGRT Invalid Status Error 0 Expected 1” followed by permanent loading screen

After I shut down many programs at once using Alt+F4 in my Linux (Manjaro), my computer froze and I had to force shut it down. Upon rebooting, it gives me the error "BGRT Invalid Status Error 0 ...
1
vote
0answers
26 views

How can I get my Optimus-addled NVIDIA card to offer output via xrandr?

I have a laptop that is crippled with NVIDIA Optimus. I'm not greatly interested in saving power so I'd be willing to turn on the NVIDIA chip permanently, but my BIOS does not offer that option. ...
1
vote
0answers
13 views

How to have better transition between Splash Screen and Program in Frame buffer?

I am currently using Yocto Embedded Linux with frame buffer. When the machine is boot up, there is a splash screen. After the the splash screen, I will run rc.local to autostart my program. The ...
2
votes
0answers
21 views

Change volume % that changes every time I decrease it from keyboard

So basically from what I found out from amixer, every time I press fn and the arrows of the keyboard to change the volume, the % of volume changing is 6%. I would like to make that 1%. How can this be ...
4
votes
2answers
21 views

Is there a way to determine compile-time state of a kernel flag from a running system?

I have a running kernel and I'm trying to determine whether it was compiled with support for BTRFS extended attributes. Is there a way to determine a running kernel's compile flags?
-3
votes
3answers
53 views

Sorting not seeming to work [on hold]

I am currently writing a webcrawl bot. It generates a list of URLs, and I need it to remove duplicates, and sort the lines alphabetically. My code looks like this: #! /bin/bash URL="google.com" while ...
0
votes
0answers
19 views

getting wrong order of files with ImageMagick and *.png [duplicate]

I am using ImageMagick to concatenate files which I have named 1.png to 50.png. However the files are arranged in the wrong order going 1.png, 11.png, 12.png ... instead of 1.png,2.png ... It must ...
1
vote
0answers
12 views

mount: No such file or directory with encrypted recovery

I have destroyed my Mint Linux installation. I just wanted access to my remote storefront. So what happened was I was having trouble with ICEauthority file in my home directory. So following ...
3
votes
2answers
32 views

How can I move files into subdirectories by count? [duplicate]

I have around 100,000 files in a directory. As you can imagine, that's not an ideal situation, and I'd like to split the directory up into subdirectories. But the filenames aren't such where I can put ...
0
votes
0answers
9 views

trying to tether android lollipop to linux mint 17.1 cinnamon using usb

i keep getting this error after installing "mtp-tools": No such interface 'org.gtk.vfs.Mount' on object at path /org/gtk/vfs/mount/1 already checked for extra mtp programs, semi new to linux. ...
1
vote
1answer
30 views

3G Modem connection only works after windows

3G modem works only after Windows first successful negotiation, after if I unplug device and plug it again to Linux it works fine, even after reboots and poweroffs. But, if I change SIM card and try ...
1
vote
1answer
20 views

Internet stops working, “Failed to add /run/systemd/ask-password to directory watch: No space left on device”

I'm running Lubuntu 16.04. After running the system for a while the wireless internet will stop working. Dutifully, I run: sudo service network-manager restart But this returns the message: ...
1
vote
1answer
14 views

How to convert .bin/.cue files into DVD-ROM UDF-ISO file in linux?

How to convert .bin/.cue files into DVD-ROM UDF-ISO file in linux ? I found that genisoimage can make CD-ROM UDF with that command: genisoimage -udf -o MY_FILE.iso ~/MY_DIR/ but I didn't find for ...
0
votes
1answer
16 views

How to disable interface just for NetworkManager in Kali Linux?

I have two WLAN interfaces, and I want to disable one of them for NetworkManager, so that if I run something like service network-manager stop, all the interfaces should stop except on of the WLAN ...
10
votes
3answers
664 views

How do you remove dot character from string without calling sed or awk again?

I have a file called hostlist.txt that contains text like this: host1.mydomain.com host2.mydomain.com anotherhost www.mydomain.com login.mydomain.com somehost host3.mydomain.com I have the ...
3
votes
2answers
36 views

Get a string and place it at the start of a line until the next string is found

I have a big non-standard xhtml file that i'm using sed (about 4 times) to iterate down to just the basics I need to throw the data into a MySQL database. My last bit i'm struggling with. The file is ...
5
votes
1answer
42 views

Why does SSH add a known_host entry for an IP address?

I have a host named nms.example.org. In my /etc/ssh/ssh_known_hosts I have an entry for the host with the RSA key. This entry, and all the other entries are managed by my configuration management ...
0
votes
0answers
13 views

SAMBA fails to restart >> nmbd.serviceJob for nmbd.service failed

Trying to set up samba on a new machine, but having problems. First I couldn't get the [homes] section to work (couldn't access from other machine). Now SAMBA won't restart: sudo /etc/init.d/samba ...
0
votes
2answers
23 views

How to tell if tabs or spaces are being used in vim [duplicate]

I have a file that has data such as: 1 Foo 2 Bar 3 Kazam Is it possible using vim to know if a space is being used a delimited vs a tab?
2
votes
1answer
49 views

Bash completion extra words Fedora 23

I am new to using Linux. :) Today I noticed some extra words when TAB completing dnf search. I am not sure how to google this (I tried, but with no success), so please help. :D Anyone has any idea ...
0
votes
0answers
5 views

How to install CUDA on Linux Mint with Xen already installed?

Xen is installed on Linux mint. How to install CUDA without getting a black screen or command line on restart? In other words, how to get Xen's Dom0 Mint Desktop with CUDA installed?
0
votes
1answer
30 views

'yum' is not recognized as an internal or external command, operable program or batch file [on hold]

I installed CentOS 7 minimal on VirtualBox; when I type: yum install net-tools I get this error: 'yum' is not recognized as an internal or external command, operable program or batch file.
0
votes
1answer
26 views

ssh with password get “access denied” error after assign the user to a different group [on hold]

I ran into some problems with ssh. After assigning a user to a different group (User leon, Group developer), I got "access denied" error. And I tried to add "AllowUsers" and "AllowGroups" into ...
0
votes
1answer
19 views

Add a second authentication to user log in

trap '' 2 code=`oathtool --base32 --totp "xxxxxxxxxxxx"` echo -n Enter Code: read -s password echo "" if [ "$password" == "$code" ]; then echo "You are allowed in" else exit fi trap ...
3
votes
2answers
76 views

Organizing three dimensional data with awk/sed/perl

I have this file (a sparse matrix): PC.354 OTU1 6 PC.354 OTU2 1 PC.356 OTU0 4 PC.356 OTU2 7 PC.356 OTU3 3 I want an output like this (dense matrix -classic .biom table): OTU_ID PC.354 PC.355 ...
1
vote
3answers
49 views

Awk/sed: add line numbers to text from within a range

So I have a range, say 2-4. And I have three lines: first second third I need my output to be: 2 first 3 second 4 third I'm trying this on BSD (Mac) awk/sed, which seems to be making it harder.
1
vote
2answers
49 views

How to determine which files are necessary in /bin, /lib, /var, etc.?

I'm currently trying to get an image working for a network boot using somebody else's file contents. The previous images I made keeping all original files present were way too big, so I need to shrink ...
1
vote
1answer
47 views

Adding/removing some tabs and line breaks in an HTML code using sed

I want to refine an HTML code using sed, as an extra refinement procedure after refining it using HTML Tidy, as HTML Tidy doesn’t look flexible enough for some requirements. I used this command to ...
0
votes
0answers
14 views

[ error writing /usr/share/nginx/www/php-info.php [on hold]

I am trying to write a file with nano sudo nano /usr/share/nginx/www/php-info.php I put: <?php echo phpinfo(); ?> and getting "[ error writing /usr/share/nginx/www/php-info.php ]" when ...
1
vote
3answers
90 views

Is it possible to make the device filesystem name , /dev/sd?1 , stay constant everytime we reconnect the SanDisk USB Cruzer drive?

Is it possible to make the device filesystem name , /dev/sdi1 , shown by lsblk -f stay constant everytime we disconnect and reconnect the SanDisk USB Cruzer drive? I am running Ubuntu Linux 16.04 on ...
0
votes
0answers
19 views

Virtualbox connectity from vboxnet0 to internal network

I am trying to create a setup with gateway(Guest OS Ubuntu) in middle and an webserver(Guest OS - Debian) - must be connected to VM-2 only via VM-1 from host pc. My aim is to ping 10.1.1.2 from Host ...
1
vote
3answers
38 views

How to list files and only files via SFTP?

I can list file names actually but a lot of unwanted stuff comes from there also. > echo "ls *.txt" | sftp user@host:/dir Connected to 1.1.1.1. Changing to: /dir sftp> ls *.txt 1.txt 2.txt ...
-1
votes
0answers
22 views

I've installed and enabled ufw firewall, and I cannot connect to my vps server [on hold]

I've installed ufw firewall on my vps server, with ssh and web services. But, when enabled, the ssh connection lost, and I could neither connect to the hosted web via web browser. I have no access ...
-1
votes
1answer
17 views

grub error: attempt to read or write outside of disk 'hd0'

I am getting the following grub error: attempt to read or write outside of disk 'hd0'. Is there any way to fix this error? I can't boot into Debian because of this. Partitions: SCSI1 (0,0,0) (sda) ...
1
vote
1answer
24 views

User Permissions problem in CentOS 7: “Permission denied”

I thought that I knew how to set up permissions in Linux. I apparently don't. I have a user called "web3". This user was automatically created by ISPConfig (A server management application like ...
0
votes
1answer
35 views

Send array to subshell function with pipe?

I really need to get an array to a subshell so the processes can run together in one script. I know I cannot export an array but is it possible to send it through a pipe to a subshell, and how would I ...

15 30 50 per page