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.
58,797
questions
2
votes
1
answer
6k
views
Bluetooth stopped working correctly after possible update
I been using bluetooth flawlessly on Ubuntu 16.04.3 LTS for the last 6 months, connecting mouse/keyboard/headphones simultaneously. But suddenly there was some kernel update I think because I had to ...
3
votes
1
answer
6k
views
Blank White Screen On Skype after a successful login
I'm running skypeforlinux under Ubuntu 14.04.5 LTS (“Long Term Support”).
After the login procedure the skype window becomes white, allowing me to open each of the commands-menu, but practically ...
2
votes
1
answer
1k
views
What is the purpose of 'nice' command without a niceness parameter?
I often see this code in anacrontab samples on the internet:
# environment variables
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
RANDOM_DELAY=30
# Anacron jobs will start between 6am ...
0
votes
0
answers
549
views
Moving Windows system reserved partition
I just installed the Windows as a dual boot. I've decided I want to expand my Windows partition, but in between the Windows partition, which I want to make bigger, and my Linux partition, which I want ...
3
votes
1
answer
11k
views
Fresh installed Debian 9 is bootin into black screen
I just installed Debian 9 via bootable USB. Everything went well. But at the first boot after boot menu the error pops out:
ERROR RADEON KERNEL MODESETTING FOR R600 OR LATER REQUIRES FIRMWARE-AND-...
2
votes
2
answers
2k
views
Show OK / FAILED boot messages on Debian
During my boot on Debian Jessie, I have a message beginning with "[FAILED]" in red color, but it's going too fast and I don't have the time to read what's after...
How can I display those colored ...
4
votes
3
answers
5k
views
CUDA 9.1 installation error: does not have a version.txt file! Ensure you are installing to an existing toolkit directory
I'm installing the run file version of CUDA 9.1 on a linux box which has CUDA 8.0 on it.
The file I'm installing is: cuda_9.1.85.1_linux.run
sudo cuda_9.1.85.1_linux.run
The download options were: ...
0
votes
1
answer
569
views
How to make port forwarding in initramfs stage?
I can install dropbear into the initramfs and successfully connect to this ssh server (IP: my_initramfs_ip) on boot stage, as described here.
Now I want to perform a port forwarding as a client at ...
3
votes
2
answers
83k
views
How to install when permission denied to /usr/local/bin/ [closed]
I need a quick help. I am a beginner so I think my problem is an easy one:
Here it goes:
I need to install a software application called muscle, and these are the steps from its website:
wget http://...
0
votes
1
answer
140
views
How do I boot from a partition on my external HDD
I partitioned my 1TB external HDD into 4 parts. I use one to store files. I booted Kali Linux from my 16gb usb stick and installed kali on one of my external HDD partitions. The installation was ...
1
vote
1
answer
2k
views
Why is inotifywait -m running multiple times? (infinite loop)
I have a git post-receive script that looks like this:
#!/bin/bash
export GIT_WORK_TREE=/home/git/worktree
mkdir -p $GIT_WORK_TREE
while read oldrev newrev refname
do
# ensure the working copy ...
0
votes
1
answer
473
views
Samba reload on new dhcp lease
I have a phone tethered via usb. I'm using the phone's data connection. Whenever I run dhclient for the new lease ( NetworkManager is off ) I get error messages but the lease succeeds. Here is the ...
1
vote
1
answer
1k
views
sudo netstat -antp not showing PID
i am testing stuff with sockets and i encountered that strange case :
i coded i very simple tcp server in c, i made it block after accept(), just to see what happen when accepting multiple connection ...
1
vote
2
answers
5k
views
create text file on remote machine using plink/putty with contents of windows local machine's text file
I want to basically transfer a small text file ~10kb from a windows local machine to a linux machine through putty/plink. I cant use any file transfer tools like pscp/winscp etc So I'm think of ...
2
votes
1
answer
469
views
Mount and Unmount trigger Desktop environment crash
I'm posting this question here, but is also available on here.
I'm running an up-to-date Fedora 27 on my laptop. Since a couple of days, every time I plug in or unmount a removable device (USB Drive, ...
0
votes
1
answer
209
views
How to delete files/folders with illegal names?
How can I delete a set of files that contain illegal characters including new lines? The file system is FAT32.
On Windows, besides trying with Explorer, which gave me a 80004005 error, I've tried ...
6
votes
1
answer
7k
views
Why doesn't ulimit -n work when called inside a script?
This is very odd. I'm trying to set the ulimit to 60000 via my startup.sh:
#!/bin/bash
ulimit -n 60000
echo "Hello! File Descriptor set"
I can execute this with ./startup.sh (755 file permissions) ...
-2
votes
1
answer
944
views
Kali Linux not starting [closed]
I am beginner in Linux Systems. I had downloaded Kali 3 32-Bit to run on a 64 Bit computer. However it is only working with 32-Bit Computers. I don't know why but the login screen doesn't comes in 64 ...
0
votes
1
answer
51
views
Need to partition a SSD in Linux without elevated privileges
Pretty straight forward. I am creating some software that needs to be able to remove existing partitions, partition and format an SSD/HDD without escalated privileges. This can be done by just about ...
3
votes
3
answers
22k
views
How do I manually set the time to a UTC timestamp in Linux?
If I want to set the time I know I can use a command like this:
sudo date +%T -s '17:45:00'
And it will set the clock to 5:45pm in the system time zone. This means that if I have the system set to ...
3
votes
1
answer
639
views
Mounting HDD starts to constantly spinning
I have a 1 TB WD external drive that I intend to use for backups for my Linux machine. I have formated my drive using GPT with ext4. Everytime I plug my drive in my system it says it is connected and ...
2
votes
1
answer
2k
views
MySQL. No directory, logging in with HOME=/
I have an Ubuntu 14.04.1 x32 - it is my home server. Recently I had MySQL 5.5 installed, but now I want to upgrade it to 5.7 using APT repository from MySQL official site, but now it cannot be started ...
-1
votes
1
answer
1k
views
Changing TERM variable and color output
I've set the TERM environment variable like so
export TERM=linux-m
to switch to non-color term. Now when i issue ls -l i indeed got no color output, but when i use for e.g: grep --color abc 1.txt it ...
0
votes
0
answers
218
views
Connecting external hard disk drive into a Linux vps
Is it possible to connect an external hard disk drive into a vps folder, say /drive using linux centos 6-64 vps? How can we do this? Thanks
0
votes
0
answers
360
views
Making VMs work in a private network in virtualbox
I've been trying out DHCP to work in virtualbox to assign IPs to VMs in hostonly networking or any other method that could do the job.
Unfortunately I don't have wired modem right now, I'm using ...
2
votes
1
answer
7k
views
How do you find possible values for freq_list and/or scan_freq in wpa_supplicant.conf?
The wpa_supplicant.conf file can have parameters freq_list and scan_freq. How do I find what are the possible values for either or both of these parameters?
freq_list=5500 5520 ...
scan_freq=5500 ...
3
votes
1
answer
11k
views
Mirror all traffic from one port to another on localhost using iptables
i need to mirror all packets from port 162 to another (for example 1162) on localhost.
I know that TEE can mirror packets but to some ip address.
Maybe it is possible in one rule change also ...
2
votes
0
answers
143
views
Route all traffic throuch a Linux machine
I want do route all traffic from and to two IP phones (SNOM D305) through a Linux machine for debugging purposes. The IP phones have a builtin 2-port switch each and the setup looks like this:
...
3
votes
1
answer
742
views
Binutils 2.29 installation error when attempting to build a Linux distro using “Linux From Scratch” instructions
I am attempting to build a Linux distribution with Linux From Scratch (LFS) version 8.1. I am building it with ElementaryOS (which is based on Ubuntu) which I have installed on VirtualBox on my Mac. I ...
1
vote
1
answer
2k
views
Using GUI apps with Xming and PuTTY on Windows
I'm new to linux and connecting to a centOS server through PuTTY.
And I want to use GUI apps like gedit, google-chrome, etc on it.
I installed Xming on my windows 10 pc and enabled X11 forwarding in ...
3
votes
1
answer
172
views
Why some commands that don't normally require sudo, require it in SSH session
There are commands (poweroff, reboot, etc.) in Linux that can be executed without root privileges in normal session, but need root privileges if they are executed in SSH session. I'd like to know two ...
2
votes
0
answers
287
views
Proper permissions for postfix piped script
As my almost-alliterative title states, I am attempting to configure postfix to pipe incoming messages to a PHP script. As it currently stands, postfix apparently attempts to run the script as the '...
-1
votes
2
answers
3k
views
Changing terminal settings from Putty client
I' using Putty client to connect to ssh server running on Virtualbox Linux machine. I'm trying to change the prompt color by setting the PS1 variable like so:
export PS1="\u@\h:\e[0;1m\w\$\e[m"
but ...
0
votes
1
answer
500
views
Linux - bash script to find directories with conditions
I have many users under /home.
Each user has a certain amount of directories with big sizes.
I extracted the list of users created on the system into a text file without system users (uid below 1000). ...
0
votes
1
answer
329
views
Accidental Messing With chmod
I just learned the permissions and executability and tried to make some files (if that helps, /usr/local/bin/idea/bin/idea.sh and /usr/local/bin/julia) executable. Unfortunately, I did something ...
1
vote
0
answers
4k
views
LVM : lvextend on striped volume
This is my first question in "stack"-systems and... it's probably very silly.
Especially because I think I know the answer, but as it's about some production system with critical data, I'd like to ...
23
votes
9
answers
19k
views
Will buffer be automatically flushed to disk when a process exits?
When I redirect a command's output to a file (e.g., echo Hello > file) will that file be guaranteed to have such data right after the command exits? Or is there still a very small window between ...
1
vote
1
answer
787
views
Setting TERM enviroment variable
I'd like to change the terminal type to the one with no colors support (for e.g linux-m). To achive this i've set the TERM environment variable like so:
export TERM="linux-m"
But it seems do ...
2
votes
1
answer
3k
views
Mysql server restart failed
My question is exactly the same as this one here, Why is “mysqld.pid” and “mysqld.sock” missing from my system even though the values are set in “my.cnf?”.
I followed all the steps provided in the ...
2
votes
0
answers
531
views
MacOS - How to change syslogd's log level for a specific process/program?
I am new to MacOS and I would like to get a better of view of what's going on with a system process when my computer is starting up. I can see in the log that a process is changing settings, but the ...
0
votes
1
answer
4k
views
How VPD is accessed via SMBus/I2C in a pci device?
Similar to what IPMI is querying, how will I access VPD of every device in a target server via SMBus/I2C? Do I need a driver for this or the i2c-dev module is enough? How to verify which is which on a ...
0
votes
2
answers
52
views
Assign specific CPU's specific parallel processes on larger Google Compute Engine Machine Types
I've already found this SU question (it is similar but not the same):
How to limit Google Compute Engine CPU utilization to 100%
I don't want the parallel processing to be sandboxed from each other, ...
1
vote
3
answers
9k
views
MDADM raid "lost" after reboot
I am kind of scared right now, so I hope you can bring light on my problem!
A few weeks ago, I bought a new 2TB drive and decided to setup a software RAID 5 with MDADM on my HTPC (drive sdb, sdc and ...
0
votes
1
answer
774
views
Finding a string in a file within a directory then moving that entire file to a new folder
I'd like to pref ice with the fact that I am pretty new to really working deeply with bash and Linux, so any help would be immense even just in starting tips that worked for you.
The problem I have ...
4
votes
2
answers
852
views
Record SSH terminal in linux
I am configuring a Bastion Host
Jump Server
I'm trying to record SSH terminals in the server automatically, I'm using TermRecord. The problem starts when I add TermRecord -o ss.html to my .bashrc:
...
1
vote
1
answer
1k
views
Bash script: for loop after two ssh commands
Following Double SSH and execute interactive shell, I need to run two type of loops after two ssh commands:
#!/bin/bash/expect
ssh -t -t server.com ssh -t -t virtualHostName '"
declare -a arr=("...
7
votes
1
answer
4k
views
Linux trap signals to handle SSH connection dropped/killed
I’ve got a command in an npm script that SSHes into a remote build server and runs a Bash script. The script sets up a lockfile and a trap call to delete the lockfile when the script exits.
I’m ...
2
votes
1
answer
3k
views
Determining the bs value for dd
I am using an external 1 TB WD hard drive with Advanced Format (4096 bytes sector size). What is the recommended value for the bs option in dd? Should I use dd bs=4096? And if I get this value "wrong" ...
0
votes
0
answers
250
views
Mysql -u root not working, can't change password, reinstalling doesn't work
So, all of a sudden, for no reason I could find, mysql simply stopped working in my computer. I'm running Ubuntu 16.04, and I've tried to reinstall mysql about 4 times, all to no avail. Whenever I try ...
1
vote
0
answers
1k
views
Ubuntu 14.04, wifi interface disappeared
A few days ago wifi network interface on notebook disappeared. Before that all works fine. There is information
Notebook model sudo dmidecode
System Information
Manufacturer: Sony Corporation
...