Questions tagged [linux]

A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

Strange Hard Disk and Operating System Behaviour

When I was working on my laptop (Dell Inspiron), in which the OS is Kali Linux, I suddenly saw that the pictures- for example the terminal picture and the firefox picture on the left menu bar - along ...
Dark Eagle's user avatar
1 vote
1 answer
362 views

Android & AndroidPC: how to install Git-SCM?

I see several apps from the Play store. They are either Terminal or Terminal emulating apps (emulation provides the supposedly similar functionality, validation?). The Termux is becoming a popular ...
Pristine Kallio's user avatar
2 votes
4 answers
12k views

SElinux prevent cron from running Centos 7

I was using a cronjob to start a script that will trigger my teamspeak on reboot It was working fine for a while until i activated Selinux the cron dont work anymore I have this error on the cron ...
Resurectionx's user avatar
0 votes
2 answers
213 views

What is the purpose of configuring the netmask on an ipv4 interface on a Linux machine?

I am wondering what is the netmask used for in the Linux network stack. Let's assume I have an interface eth0 configured to ip 1.1.1.1 and netmask 255.255.255.0 now I am sending a packet to 1.1.1.2 ...
user6668153's user avatar
0 votes
1 answer
66 views

Shell script prompt after java connection

I am trying to put a prompt in the middle of a shell script that starts java processes, however the prompt always gets executed first because of the delay in the java connections. Is there a way I can ...
mariahm24's user avatar
5 votes
2 answers
3k views

Cinnamon Text / Icons disappearing

Two of our Linux clients are running Debian 8.5 with the Cinnamon DE. This Problem seems to only occur on the Cinnamon DE. Randomly the text and icons in the panel just disappear. The system keeps ...
Sativa's user avatar
  • 161
1 vote
0 answers
314 views

How to improve Surface Pro 4 resolution when running Linux Mint Mate in a Virtual Machine?

The screen is too small and I can't seem to work out how to fix it. Can anyone experimenting with or knowing about Linux Mint in a Surface Pro 4 help?
alopez02's user avatar
  • 113
1 vote
0 answers
2k views

how to install sudo on msys shell

I work with msys shell on windows 8.1 but when I use "sudo" I get this error bash: sudo: command not found and my $PATH is : /usr/local/bin:/usr/bin:/bin:/opt/bin:/c/ProgramData/Oracle/Java/...
Yasaman Ghassemi's user avatar
0 votes
0 answers
383 views

Starting interactive command on shell started using netcat -e hangs

I have not gotten the time to thoroughly investigate how netcat starts a specified command using the -e option, however I believe that it achieves this by forking itself, it then sets the standard ...
MykelXIII's user avatar
  • 141
4 votes
0 answers
928 views

Missing Operating System after install of ubuntu on a macbook as only os

I have installed Ubuntu on a 2009 MacBookPro (intel 64 bits) using the iso ubuntu-16.04.1-desktop-amd64.iso and unetbootin to create a live USB. So basically, I followed the tutorial to create a usb ...
user2532666's user avatar
0 votes
0 answers
239 views

No internet for client connecting via wlan0 to OpenVPN server but via eth0 works

An OpenVPN server is running on a Raspberry Pi with Raspbian GNU Linux 8. The wlan0 interface of the Pi is associated with ip address 192.168.1.12. The Pi has internet access over wlan0 via gateway ...
Georg Schnabel's user avatar
6 votes
3 answers
7k views

Remove non-duplicate lines in Linux

how can I remove non-duplicate lines from text file using any linux program linke sed, awk or any other? Example: abc bbc abc bbc ccc bbc Result: abc bbc abc bbc bbc Second list have removed ccc ...
qlwik's user avatar
  • 63
-1 votes
1 answer
830 views

How to install windows and manjaro on a system that already has windows

Sorry that the title of this question may seem unclear, but I really couldn't think of how to phrase this well. Right now, I have a system that has only windows 8.1 (Embedded) on it. By the way, I ...
Ben Durham's user avatar
0 votes
1 answer
101 views

Shutting down linux gracefully from the file system?

I've just managed to get raspberry pi network boot working (It's great to be free of the sd card). I've worked with network boot before but only for imaging, never with a fully functional remote file ...
Justin Gerhardt's user avatar
0 votes
1 answer
209 views

Script to trigger email when the use % crosses 85%

Output of one netbackup software commands reports below parameters. I want shell script to check the use% and if it > 85 then send email action stating which disk pool Name is greater than 85%. ...
maneeshshetty's user avatar
3 votes
2 answers
4k views

How to get parent block device belonging to a given partition?

Let's say I've got partition /dev/sdc1, how do I get the parent block device the partition belongs to (in this case /dev/sdc) ? Preferably in bash or C. Something along the way of lsblk output: ~:...
danko's user avatar
  • 43
0 votes
1 answer
62 views

Cannot get app on 3000 port from different networks

I have a node.js application running on a linux server(nginx). xxx.xxx.xxx.xxx:3000/api When I try to connect from my mobile phone or my computer at house I can. But when I try to connect from my ...
Erdinç Özdemir's user avatar
1 vote
3 answers
466 views

Connect Desktop and Laptop (both Linux) via router

I have been struggling to enable bidirectional SSH connection from my laptop to desktop, and vice versa. There is one home network router, and both computers are connected to it with a LAN cable. I ...
concrete_rose's user avatar
0 votes
2 answers
931 views

Why does Red Hat 7.3 (not RHEL) `ls` show file sizes in bytes, even when `-k` or `--block-size` is specified?

We have an old Linux server, some OS version information, as follows: $ uname -a Linux dm.inside.com 2.4.18-17.7.xsmp #1 SMP Tue Oct 8 12:37:04 EDT 2002 i686 unknown $ cat /etc/redhat-release Red Hat ...
Scott Chu's user avatar
  • 143
1 vote
1 answer
713 views

How do I run bootchart on Fedora 23

My computer takes a long time to boot, and I want to analyze the boot process using bootchart. On Ubuntu, bootchart is provided as a package that installs a command-line tool. That package is not ...
That Brazilian Guy's user avatar
1 vote
0 answers
696 views

How to properly decompile/recompile android APK file?

How to properly decompile and recompile android APK file on Ubuntu, preferably with the minimum tools required, just for this purpose. I need recompile electronic book.
minto's user avatar
  • 155
0 votes
3 answers
6k views

Can't SSH into an ODROID C2 with Debian Armbian image?

I just received an ODROID C2 IoT gadget. I flashed an Armbian image with Debian according to Getting Started. I am at the How to login? step: Login as root on console or via SSH and use password ...
jww's user avatar
  • 12.1k
-3 votes
1 answer
207 views

Office tools and VLC in Redhat linux 7

I am new in rhel, anyone can tell me how to install office tools (.xls, .docx) in Redhat Linux 7 and other programs like VLC media player in GUI mode.
sarwan k sharma's user avatar
0 votes
1 answer
3k views

how do I make function keys switch to different terminals in console mode?

Without running any window manager, just logged in directly to the box in the first terminal session, how can I make F2, F3, F4, etc switch to other terminal "tabs"? i.e. not using screen or tmux I ...
Andrew Arrow's user avatar
2 votes
0 answers
1k views

Nvidia GeForce GT 525M tearing on Ubuntu 16.04 GNU/Linux

I have a Dell Inspiron One 2320 pc with Ubuntu 16.04 and Windows 10 in dualboot. When i boot into Windows, everything works smooth. In Linux, xserver-xorg-video-nouveau driver is less tearing, but it ...
Vadym's user avatar
  • 21
0 votes
1 answer
3k views

Router (and masquerade) only from specific IP

I want all traffic coming from 192.168.2.10 on interface eth0 to be masqueraded and forwarded out through interface tun0. I want the response to come back through tun0. I don't want other traffic on ...
Stefan D's user avatar
  • 105
2 votes
0 answers
1k views

Raspbian-Boot: Failed to start light display

For some reason when I booted up my pi today, I'm getting the error 'Failed to start light manager. When I look at the details I see these errors: Any idea's what is causing this and how I could fix ...
jslice's user avatar
  • 21
3 votes
1 answer
156 views

How to create a new user with all privileges of the current user in Linux terminal?

It is known that useradd is used to add new user accounts. useradd newuser The -G flag is used to add groups for respective privileges. Is there a simpler way to create a user will all privileges ...
Ébe Isaac's user avatar
1 vote
1 answer
925 views

My Iptables block IP range not work

I'm using httpd service on a Linux OS. My result of iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination DROP tcp -- anywhere ...
Quynh Nguyen's user avatar
0 votes
1 answer
279 views

Edit email Header from CLI

I am trying to find a cli bincode to allow me to manipulate email headers from an IMAP server. Something like Alpine, but with header editing functionality, like subjects. Thanks!
John McLane's user avatar
1 vote
0 answers
378 views

Opensuse Leap script to unmount NFS mount before shutdown or reboot

I have a problem to shutdown/reboot my Laptop when I have my NFS mounted. It takes a very long time to shutdown/reboot. In my fstab is: 192.168.x.x:/RAID5 /NAS nfs4 defaults,_netdev,noauto,...
Chucrute's user avatar
  • 113
0 votes
1 answer
852 views

How to run su command remotely

I'm a big fan of aliases that save time. Currently I'm supposed to ssh into our remote aws instance by running this command first: ssh -i ~/.ssh/id_rsa.pem [email protected] then I should run these ...
abbood's user avatar
  • 1,274
4 votes
1 answer
3k views

How to add blank lines above the bottom in terminal

In vim and many other text editors, you can scroll up the end of the file to the top of your screen while showing the rest of the lines as blank. But in terminal, by default, the end of line is fixed ...
Kohki Mametani's user avatar
2 votes
0 answers
1k views

Why does "xdg-open" with an URL open two extra empty tabs in Opera?

My xdg html default looks like this: $ xdg-mime query default text/html opera.desktop The Exec line in opera.desktop looks like this: Exec=opera %U Now, opening a tab in Opera like this: opera "...
Hubro's user avatar
  • 5,786
1 vote
2 answers
1k views

Queue a Bash script to run after currently job finishes?

Is there a way to start a Bash script, and then queue up other bash scripts to start when the first one is done? For context. I’m doing image processing where I need to manually fiddle with and image ...
Weavermount's user avatar
0 votes
1 answer
633 views

Bridging between network interfaces in linux

Assume I have a linux computer, running an OpenVPN Access Server with the following interfaces: wwan0 - Internet access, IP 212.179.50.50 tun0 - OpenVPN interface, IP 172.225.25.1 (the SERVER's VPN ...
Joel Morovich's user avatar
2 votes
2 answers
906 views

Find sequence in files using HEX Editor

A few days ago, I decided to defragment and optimize my 2TB external Hard Disk using Auslogics Defragmenter. Now, a little background here. The partition that I defragmented was an 1.8TB partition ...
Sabyasachi Mukherjee's user avatar
2 votes
0 answers
338 views

How do I reboot a remote Linux server with a failed disk?

I have a somewhat difficult problem. I have a remote server that I won't be nearby to reboot for a few days I'd like to get restarted. The problem is that the disk seems to have crashed and I can't ...
Ryan's user avatar
  • 31
0 votes
0 answers
1k views

bash and env: something: Permission denied

I use openSuse Leap 42.1. I had installed Skype long time ago. And it worked all that time. But recently it stopped start and when I run it from terminal I receive an error: env: /usr/lib/skype/...
almaceleste's user avatar
0 votes
2 answers
2k views

Why would Esc-p or Ctrl-p not work in one terminal but work in all the others?

Somehow, when I start my X session in Ubuntu 16.04, I get a Gnome Terminal window with 6 tabs and they all works as expected except for the last tab. That one loses the Esc-p / Alt-P functionality. ...
Alexis Wilke's user avatar
  • 1,600
2 votes
1 answer
2k views

OpenLDAP: Converting flat file (slapd.conf) to OLC (slapd.d)...can't access cn=config

I'm attempting to set up OpenLDAP. I was having trouble with the OLC config option, so I went with the slapd.conf style input as I'm a complete noob at LDAP and it was easier to understand. I now ...
Hounddog's user avatar
  • 193
4 votes
7 answers
48k views

Ubuntu 16.04 stuck on login loop

My computer was running fine until yesterday night, but today it is stuck in a login loop. I tried going into recovery mode from grub and reconfiguring dpkg packages, but it didn't work, tried ...
Luca Giorgi's user avatar
0 votes
2 answers
1k views

sed - Function to replace only the NTH occurrence

In the function below (f_ez_sed) I would like to just replace the "NTH_OCCUR" (0~n) occurrence. How I could do that? I have tested MANY methods! f_ez_sed: f_ez_sed() { : 'Facilitate the use of "...
Eduardo Lucio's user avatar
0 votes
1 answer
68 views

How to overcome virtual package already provided in effect, but not in practice

I'm trying to install package X, which is dependent on the virtual package named python. I have python27 installed, and I know that my desired package X works fine with this version; however python27 ...
eggyal's user avatar
  • 166
0 votes
1 answer
5k views

how to permanently disable wifi power management for linux mint 18?

I have upgraded from mint 17.3 to mint 18, and now I experience irritating wifi problems, which are (probably) connected to the power management. Before the upgrade, I had set it off in the /etc/pm/...
jligeza's user avatar
  • 113
3 votes
1 answer
2k views

How to install Linux using ONLY ethernet

How can I install Linux Debian on PC having only Ethernet and no monitor and i/o devices on that PC so after that I can communicate with that PC only through SSH? UPD: also I wanted to do this from ...
fut33v's user avatar
  • 39
4 votes
2 answers
377 views

How do applications remember authentication for sometime?

In linux some of the applications are able to remember authentication for sometime. For example, File manager remember authentication for a while, when we provide password to mount a partition. If we ...
niyasc's user avatar
  • 153
0 votes
2 answers
76 views

My code .sh cant run. Help me

#!/usr/bin/expect -f set port [lindex $argv 0] spawn ps xu | grep "ssh -f -N -o ConnectTimeout=5 -D $port" | grep -v grep | awk '{ print $2 }' | xargs kill -9 expect eol I make sure 100% port 1234 is ...
Edward Trọng's user avatar
2 votes
2 answers
2k views

How to take user input from bash script when run as executable without terminal?

I am trying to make a bash script which takes some user input and processes as per the input. The script is executable, and has a shebang. The script is somewhat like this: #!/bin/bash read name -...
Himanshu Shekhar's user avatar
0 votes
1 answer
101 views

What does the linux "file" command consider "suspicious"?

I was playing with the file command (the command-line utility used to identify file types) and I noticed one of the types it could match was "Suspicious" What does that actually mean, what kind of ...
Schilcote's user avatar
  • 131

1
494 495
496
497 498
1177