1
vote
3answers
27 views

Loop to check whether a Debian package is installed or not

I like to check whether several packages are installed or not on Debian/Ubuntu Here is my attempt at a script to do this: query=`dpkg-query -W -f '${Status}'` ok="install ok" if ! [ `$query` curl ...
1
vote
1answer
19 views

Help with apt-get on non-internet connected device

I have a Linux based OS running on an embedded piece of hardware. According to the manufacturer of this device, it's based on the Ångström distribution. This device cannot be connected to the ...
1
vote
1answer
20 views

Gnome, nautilus copy files to USB stops at 100% or near

I had similar issues before but i don't remember how i solved it. When i try to copy something to USB stick, with FAT, it stops near the end, sometimes at 100%. And of course, when i transfer the ...
0
votes
1answer
16 views

Curl Command PUT Method

curl -i -X PUT -H 'Content-Length: 1000' http://dfdc:dfdc@xx.xx.xx.xxx:xx/directory/ Above curl doesn't produce any response at Ubuntu shell prompt.
0
votes
2answers
21 views

How to use rsync with samba share

I would like to synchronize all the content of my phone to my home server using the phone's samba share. My approach is to write a script that mounts the phone's samba share, and then copies all the ...
0
votes
1answer
36 views

How do I boot into kali? [on hold]

I have recently installed kali along side windows 8.1 and I have turned off secure boot and fast boot. The issue is after I restart I am not given the option to boot into kali. When I bring up the ...
0
votes
0answers
12 views

Problems in running rstudio

I downloaded R-3.1.2 in a zip format then decompressed it in a folder named R-3.1.2 from where I installed it by running ./configure and then make and make install. Now R version 3.1.2 is running ...
-1
votes
0answers
22 views

Can't unlock Ubuntu account (KDE) with correct password [on hold]

I am unable to unlock my Ubuntu session with the correct password. I found this solution but it was for Gnome. I need a solution for KDE.
0
votes
0answers
16 views

How to connect ZTE MF 823 Surf Stick in virtual Linux?

I have an LTE Surf Stick which I would like to get working inside my virtual machine. The Stick is called "ZTE MF 823". I am running openSUSE 13.1 with NetworkManager and I was not able to find any ...
1
vote
1answer
51 views

Example for adding

Example 1. Adding to the console works well pic@pic:~/Desktop$ a="$(date +%s)" pic@pic:~/Desktop$ b="$(date +%s)" pic@pic:~/Desktop$ echo $[a+b] 2844184057 pic@pic:~/Desktop$ Example 2. It's the ...
0
votes
0answers
9 views

0 Active connection while Downloading Blockchain?

I am not able to connect to download blockchain in logoscoin. It shows O active connection, I am also attach debug logs below: 2015-01-24 06:18:15 Logos version v0.8.6.4-ga5aedeb-beta (2015-01-22 ...
0
votes
0answers
25 views

Homebrew?? error: option --no-user-cfg not recognized

Using homebrew, in which I am have no skill, I was updating cmake (as part of install of avidemux...) on snow leopard $brew -v upgrade cmake Everything works fine through Verifying ...
1
vote
0answers
12 views

NTP authentication failing with opcode 108

I'm trying to get NTP authentication working on a cluster of test servers and a couple clients. I've followed the instructions at ntp.org. To be honest, though, I'm not sure they are entirely clear ...
0
votes
0answers
12 views

Opensuse Tripwire install issue

I'm trying to install tripwire-2.4.2.2 to my Opensuse 13.2 enironment. I have downloaded the source files from Sourceforge. I have extracted it into my root folder and I issued the following command ...
1
vote
1answer
28 views

Sourcing a redistributable script by default

I am creating a bash script which I wish to release on github. The script needs to access the command history but this is not possible without sourcing that script. I don't want users to put it in ...
0
votes
0answers
55 views

How can I get the last command 's output?

for example, I have a simple java file, it can print what I just input $ java test > enter your name: XXXXX > hello XXXXX XXXXX is user's input I want to get the whole output enter your name: ...
1
vote
1answer
14 views

How to make application windows always on top in Linux mint?

When I open several application simultaneously, there is necessity to switch between one application to another. But when I place mouse pointer on top of window of some application, then window of ...
0
votes
0answers
7 views

Grub isn't showing on start up? kali linux [duplicate]

okay i am a newbie to linux . because of some issues , i have to re install my windows 8.1 . But now Grub isn't showing on start up . now i am not able to select b/w my operating systems. it only ...
1
vote
1answer
12 views

Getting globbing to work with `locate`?

I'm on Ubuntu 11.04, where I have: $ locate --version mlocate 0.23.1 [...] The man locate page says: If --regex is not specified, PATTERNs can contain globbing characters. If any PATTERN ...
4
votes
2answers
102 views

sed “e” and “g” flags not working together

Given this: echo AAA | sed -r 's/A/echo B/ge' I get this: Becho Becho B I would have thought I would get "BBB". This is with GNU sed version 4.2.1. What is going on, and how can I use the ...
3
votes
1answer
22 views

Naming buffer exports dynamically in tmux

I've grown tired of trying to get tmux scollback working with iTerm2 and my keymapping of choice. Having realized that I can dump buffers into text files, I find that this is no longer necessary, or ...
1
vote
2answers
89 views

Why is Linux “Unix-like” if its kernel is monolithic?

As I understand it, part of the Unix identity is that it has a microkernel delegating work to highly modular file processes. So why is Linux still considered "Unix-Like" if it strays from this ...
0
votes
0answers
10 views

How to change CFLAGS for autogen.sh

I am relatively new to linux. I was trying to rebuild MDM display manager for linux mint from url https://github.com/linuxmint/mdm. In the documentation it is said that you should use ./autogen.sh ...
2
votes
2answers
65 views

How to get Debian codename without lsb-release

I am trying to create a script that requires me to print the debian codename so that I may echo it into the sources.list file. I am trying to make this script work across any version of Debian, so I ...
0
votes
0answers
17 views

How to format a microSDXC card into Fat32?

I need to format a brand new Micro SD card of extended capacity into Fat32. I've read that formatting SD cards of 64/128GB requires special tools. So I'm asking: How can I format in my Linux machine a ...
0
votes
2answers
31 views

Why do I get Illegal number: {1..3}

Why am I getting ./6_sum_square_difference.sh: 11: ./6_sum_square_difference.sh: Illegal number: {1..3} for #!/bin/sh summing () { the_total=0 num_in=$1 for one_num in {1..$num_in} do ...
1
vote
1answer
18 views

change linux text console scrolling speed - without rebooting

Is there any way to change to the text console scrolling speed without rebooting? Currently using Fedora, but non-distribution-specific answers appreciated. ...
-1
votes
0answers
23 views

Differences between distros [on hold]

I have a sort of a generic/newbie question... I would like to know which are the fundamental differences between two linux flavours (e.g. Fedora vs Ubuntu). Like I know the kernel that is shipped is ...
0
votes
0answers
9 views

receiving openPGP encrypted email in dovecot/postfix.centos 7 [on hold]

All of the emails received by a specific web application will have been encrypted using OpenPGP before they were sent by their remote senders. The app is on a dedicated CentOS 7 server running ...
0
votes
2answers
20 views

Get all the records from a file with Date collumn less than a month

Input file ID,Name,join_date 21433432,rds,2014_02_01 2131321,ABCDS,2014-10-20 2432745314,ASRER, 2015-01-20 2132432423,safdsad, 2015-12-30 Need two files created one for records with the date column ...
1
vote
0answers
8 views

Navigation and images in Lynx text browser

I like the Lynx text browser because it works in a terminal and I figure it probably more or less completely immunizes me from browser-based security vulnerabilities. However... there are a couple of ...
1
vote
1answer
20 views

How to disable script in “dot-d” (with suffix “.d”) directory in /etc without deleting it?

There is a lot of stuff that is configured using directories in /etc with .d suffix, which stands for "directory" and even though Unix doesn't require such suffix, it is used to avoid name clashing. ...
0
votes
1answer
39 views

Linux File System for an External HDD

I'm looking for a file system for an external HDD which will be basically used for backups. It will only be used with Linux machines, so I don't mind having a Linux-specific file system. I may ...
1
vote
1answer
45 views

unix system with malware

I have a CENTOS server that is infected with malware: top shows there's an unknown process that's consuming all the CPUs, if you kill it, it respawns with a different name. what's the best way to ...
-4
votes
0answers
12 views

TCL logger service name between two interactive shells [on hold]

I have two packages, test1.tcl and test2.tcl test1.tcl will running on one shell where as test2.tcl is running on another shell. I am starting logger service on test1.tcl "logger::initNamespace Test ...
0
votes
0answers
14 views

Grub rescue promt at boot. Attempt to solve it with Boot repair failed

Well, I have an SSD with a few partitions. I tried to install ElementaryOs in my Ubuntu partitions (bye bye Ubuntu) and then when I restarted I got a grub rescue prompt after the following error: ...
1
vote
1answer
30 views

Using Rsync in conjunction with Find

I'm am attempting to write a script that will copy files created in the last 24 hours AND be of a specific file-type (*.png). The command I have tried is: rsync -avz --ignore-existing ...
1
vote
2answers
28 views

SSH via cert-authority

I'm trying to use SSH using signed certificates. I'm using ssh -i keys/client.key to connect to the target device. If I generate a public key from that private key (with ssh-keygen -y -f ...
0
votes
0answers
10 views

Where I can get Tesseract binaries for Debian 6 64bit?

I used apt-get to install Tesseract but it's not really working. Maybe I could just download binaries somewhere, put in a dir and use this way? What's wrong with my Tesseract now: tesseract --help ...
0
votes
0answers
19 views

CentOS/Kernel v3.18/Thunderbolt2

I just got a new SuperMicro box with a AOC-TBT-DSL5320 Thunderbolt2 card pre-installed. I installed CentOS 6.5,ran yum update, and then, because to my understanding at least, thunderbolt support was ...
1
vote
1answer
43 views

How to execute 'clear' bash command before any other command is executed?

I see the question at Can I configure bash to execute "clear" before every command typed in the console?, but the answers there are not valid for GNU bash, version 3.2.53(1)-release ...
2
votes
0answers
21 views

Easy command line method to determine specific ARM architecture string?

I'm trying to write a script which will determine actions based on the architecture of the machine. I already use uname -m to gather the architecture line, however I do not know how many ARM ...
0
votes
1answer
32 views

New repositories I add are never found?

I'm running CrunchBang with the following output from uname -a Linux sigh 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) x86_64 GNU/Linux My sources.list # Crunchbang deb ...
1
vote
2answers
43 views

awk manipulation

I have a file like this SRR959756.1081725 1 RNU2-54P:112:133:hsa-miR-1246 SRR959756.1162547 1 RNU2-54P:112:133:hsa-miR-1246 SRR959756.128602 2 ...
0
votes
1answer
16 views

gnupg broken after power outage

Recently I happend to experience a quite unpleasant power outage which caused my system to go down unexpectadly. After power came back the system came back as well and other than a fsck being required ...
1
vote
1answer
24 views

Where is the rc file for vi editor.

I would like to set up system-wide vi settings. I know i can setup preferences for vim editor in /etc/vimrc and ~/.vimrc but i don't think my vi on CentOS7 is reading anything from the vimrc files ...
0
votes
1answer
16 views

In Mint 17, how do I copy/paste symlinked files?

In Mint 17 (Cinnamon), I'm using the file manager (I guess it's called Nemo?) to view some header files after building OpenSSL in the 'include' directory. Each of the header files in this directory ...
1
vote
2answers
46 views

BASH: Command not running, special character '�' suddenly appeared (Ubuntu)

When I erroneously type 'ñ' (expecting to type any command) and then remove it and type the correct letter, the output returns the command with a special character attached �, obviously the shell ...
0
votes
0answers
9 views

Trouble with VHOSTS config

This is my apache configuration for the vhost. <VirtualHost *:80> ServerName test.mydomain.ca ServerAlias test.mydomain.ca DocumentRoot /var/www/test_mydomain/public_html ...
0
votes
1answer
43 views

Why does this comparison return not equal?

Can't seem to get this to evaluate to true is_equal () { in="$1" if [[ "$in" == "385" ]]; then return 0 else return 1 fi } a= is_equal 385 if [[ "$a" ]]; then echo "equal" else ...

15 30 50 per page