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,803
questions
5
votes
2
answers
9k
views
Edit "Media Duration" metadata on MP4 file
I have some video files which were converted to MP4, but not quite correctly. When I examine one with exiftool, I see these metadata values:
Duration : 0:11:23
Track Duration ...
0
votes
1
answer
2k
views
Unable to install guest additions in Ubuntu fresh VBox install
I have created a fresh install of Ubuntu 12.10-desktop-i386 in virtualbox. Host is Windows 7. Virtualbox version is 3.2.8
I am trying to get the VBGuestAdditions to work, and I get errors
Building ...
0
votes
1
answer
103
views
How to verifying variables correctly in Bash?
I have the following code:
#!/bin/bash
FILES=known/*
arp-scan -l > temp_scan.log
cat temp_scan.log | while read line
do
for f in $FILES
do
echo "--------------------...
1
vote
2
answers
145
views
What's the Ideal Way to Swap Entries in the $PATH environment variable?
In Linux and/or Mac OSX, what is the best way to automate moving an entry in the $PATH environment variable to the front of the value like this:
/foo/bar:/one/two/three:/opt/local/bin:/home/user/bin
...
0
votes
3
answers
3k
views
Storage Manager on Synology DiskStation is blank and refuses to quit
On my Synology DiskStation DS1812+ (running DSM 5.0-4493 Update 3), the application Storage Manager is completely blank and refuses to quit. The application stays open even after restarting. How can I ...
1
vote
2
answers
705
views
Create password protected file for a simple double clicking opening
How to create in linux a password protected file so it ask for the password every time the user wants to open it in linux or windows computers.
This process must be done in linux command line but the ...
0
votes
3
answers
55
views
USB Thumb Drive partioned oddly
Somehow my 32gb Lexar thumb drive got partioned very strangely, here is the output of lsblk:
sdb 8:16 1 29.8G 0 disk
├─sdb1 8:17 1 44M 0 part /media/removable/LEXAR ...
1
vote
1
answer
1k
views
VirtualBox: Cannot connect to Linux guest from OSX host
I'm trying to ssh into my linux guest from my osx host. There seems to be some trouble with the networking, I can ping the guest, but cannot ssh to it. I am using a host-only connection
on the guest:
...
1
vote
2
answers
57
views
Booting from cd, where do files go?
I have brought ubuntu on a DVD and I'm booting the system from it using the option "try ubuntu without installing it".
When I download files and save them, where are they saved on the computer and ...
8
votes
4
answers
5k
views
Is there any in-built Linux command to display the contents of a directory in real-time?
Is there any in-built Linux command to display the contents of a directory in real-time?Similar to the "tail -f file_name" command which displays the contents of a file in real-time.
4
votes
4
answers
565
views
What is the differences of these concepts(Shell, Terminal, Console and Command-line) in Linux?
As a rookie, these three concepts: Shell, Terminal, Console and Command-line have been puzzling me a lot recently. Especially Console and Terminal?
3
votes
3
answers
19k
views
Howto start an application remotely, so that GUI is shown locally
This is a beginners question, I know... but I have searched and I'm getting frustrated. I know my way around Lunux pretty well, but I have never had to deal with XServer.
Question 1:
I SSH from OSX ...
1
vote
1
answer
3k
views
Error while compiling linux kernel
Hi I'm trying to compile a kernel on Centos 7.
I've installed kernel-devel package, but it's failing as follows:
[root@centos7 3.10.0-123.6.3.el7.x86_64]# LANG=C make V=1
make -f scripts/Makefile....
5
votes
2
answers
20k
views
How to snapshot a btrfs root file system (snapshot of /)?
I have Fedora 20 and when I installed it I choose to go with btrfs as file system, by many reasons but mainly to have snapshots available.
But I can't seem to create a snapshot of /. I can snapshot ...
3
votes
1
answer
9k
views
Is it possible to copy paste packages/software to another machine in Linux?
Here is a sample scenario :
Start from a new directory say /myapps . Install a separate (pre-compiled or source) python to say ./usr/bin (relative to installation directory and not system /usr/bin) ...
3
votes
2
answers
9k
views
SNMP : with not root user
I normally do snmptraps and other net-snmp commands without problems with root session, but when i try to execute same commads with a normal user i obtain follow errors:
Cannot rename /var/lib/net-...
20
votes
3
answers
10k
views
How to configure dual boot NixOS with Mac OS X on an (U)EFI MacBook?
I could not find any description of configuring dual boot of NixOS and Mac OS X on an (U)EFI MacBook. I am willing to experiment, but i would like to know at least that what i will try is supposed to ...
0
votes
2
answers
4k
views
Linux zip and exclude directory in Bash script
I am trying to write a bash/shell script to zip up a specific folder and ignore certain sub-dirs in that folder.
This is the folder I am trying to zip "sync_test5":
My bash script generates an ...
16
votes
2
answers
248k
views
How to execute a command within a bash script?
I am writing a script that will continuously broadcast some data to port 30000, so a python udp listener can get the data and insert it into a table, from which I can draw that information and display ...
0
votes
0
answers
182
views
Need to source bash_profile each time
I have get a server space that runs linux. A user is created for me. I have a bash_profile in my home directory and I set environment variables for JAVA_HOME and JAVA.
When I access server through ...
0
votes
1
answer
72
views
openoffice transfromed decimal separator for an xlsx file in server machine
i try to configure openoffice in linux server to use comma as decimal separator,i search and i found that have a relation with regional parametre so i configure etc/locales.conf to use french as ...
3
votes
1
answer
5k
views
How to start icewm?
I installed icewm 1.2.13. Metacity is my default window manager. Usually, to replace window manager --replace option is used, e.g metacity --replace. But my version of icewm does not have this option. ...
1
vote
2
answers
5k
views
Where i can find "/boot/vmlinuz" when "/boot" not exists
Hi all I'm new here and I want to ask where i can find vmlinuz without "/boot" directory...
So system normally boots (Chrome OS) All working perefectly from pendrive But when I want dual boot I need ...
1
vote
3
answers
3k
views
Simple linux router with two NICs
I tried following these guides without success:
Setting up an Ubuntu Wired/Wireless Router
Configure Ubuntu as a Router
I have a small Linux box with two NICs:
Cable modem/router (out of my control)...
5
votes
3
answers
3k
views
Various methods of trying to set up a git diff tool lead to "fatal: cannot exec [...] : Bad address"
I'm on Linux Mint 17 64-bit. Just purged git and re-installed with apt. Deleted ~/.gitconfig. Only configuration I do after supposedly fresh install is (while inside a repo)
git config diff.tool ...
1
vote
1
answer
87
views
How can I monitor every newly created process of an entire Linux system?
I am on a gentoo Linux system and I want to monitor the time and name of every created and deleted process on an entire Linux system. How can I do that?
If possible, I do not want to install new ...
1
vote
1
answer
1k
views
adding a nic to a linux system
I've just bought an HP NC360T Dual Port Gigabit Ethernet Adapter PCI-E for use in a linux box.
I can't seem to see the device on the system. I've used the lspci command to display a list of items on ...
1
vote
0
answers
3k
views
New Mainboard Z97-K and OS is only bootable with the usage a LiveCD
I have a new Mainboard, CPU, Ram for his PC - a Asus Z97-K
other components like PSU, SSD, HDD are taken from the old Bios based Core2Duo PC
The OS is Linux Mint 16 and the LiveCD also - there is no ...
-1
votes
1
answer
360
views
Route traffic to a destination to another destination using iptables
How to route traffic to a destination to another destination and receive response using iptables
I have two vps on cloud. Lets say VPS-A and VPS-B.
If a request to 8.8.8.8 generated from VPN-A, I ...
2
votes
1
answer
2k
views
Empty Ext4 Filesystem Using Too Much Space
I have 3 primary partitions on my main drive (2 are primary, 1 is extended and has 3 logical partitions in it). The drive has a legacy BIOS/MBR partition table. The first 2 primaries have OSes in them ...
0
votes
2
answers
2k
views
Permission denied for root and "cd /" issue
I am having an issue, first of all I can not cd freely from the terminal, for example:
[eldritch@localhost ~]$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
[eldritch@...
1
vote
2
answers
5k
views
Is it possible to run a dialog/whiptail script in one TTY from another?
The origin of this question, for me, is being able to run a whiptail command in a %pre script from a kickstart file when installing a custom distribution based on Centos. However, the behaviour ...
1
vote
1
answer
643
views
"." command doesn't work in fish
I'm using fish and I'm trying to activate a virtual env, so I tried "source" command which apparently is not available in fish.
And I ended up with this link which says:
". (a single period) is an ...
0
votes
1
answer
43
views
Windows 8.1 reboot upon reaching the logo
I have a HDD which was used just for Windows 8.1. That is, the HDD had two partitions, system reserved and Windows.
Now I got a SSD and switched back to Linux as my main OS, but yet I have the HDD ...
1
vote
1
answer
173
views
extend lvm with existing partition
I have the following partitions:
root@test02 [~]# df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_test02-lv_root
119277820 ...
5
votes
1
answer
297
views
What Exactly am I Seeing Here?
I have a Dell D620 that has its screen ripped out ( was damaged a while ago ) and so to see any console output, I have a VGA-Compatible TV hooked up to it. Sometimes when I haven't typed anything for ...
0
votes
1
answer
578
views
Sending data to port does not seem to be working on Ubuntu Linux?
I am trying to send data to port 2003 I am using tcpflow to listen however i cannot see any data being printed or sent ?
Sending Data to port 127.0.0.1 2003
echo hello | nc localhost 2003
or
...
0
votes
2
answers
1k
views
Lock VsFTP user to home dir
I have been working on this for about an hour and followed many examples but still the new user can get to the whole directory structure, or can't log in at all with message "500 OOPS: vsftpd: ...
0
votes
1
answer
318
views
All the USB ports on one physical side don't work after suspend
I have a new problem with my Lenovo Edge E545 where, after suspending and resuming, 1 USB-2.0 port and 2 USB-3.0 ports fail to work. They are all the USB ports on the same physical side of the ...
1
vote
1
answer
80
views
Running commands on bootup on unknown Linux-based machine only by placing files
I have a Zmodo DVR that runs some kind of Linux-based OS and which (I think) has an ARM processor. I can place files in its filesystem using its updater tool, replacing anything with the same name, ...
1
vote
0
answers
2k
views
Linux for a laptop, docking station, and 3 monitors
I'm looking for suggestions on a Linux setup that will work well for a Dell Precision M4800 that has nVidia graphics and spends a large chunk of it's time on one of Dell's port replicator / docking ...
3
votes
2
answers
4k
views
How do I know if the hardware clock in linux is set to localtime or UTC?
I have a dual booted PC, and in order to have Windows and Linux agree on the time, I have set the hardware clock to localtime in linux as described here.
Now I want to make a script to check if my ...
1
vote
1
answer
592
views
Getting LAN clients to use IPv6 tunnel of Debian router
I have a Debian Jessie powered server which acts as router for our home network. I have succesfully managed to set up an IPv6 tunnel using TunnelBroker and traceroute commands return succesfully.
...
1
vote
1
answer
4k
views
allow sudo user to execute multiple commands for only ONE file
I'm trying to allow only one user to be able to use only 'cat,head,tail' on some of the log files. What is the exact syntax to use here. I tried
user ALL /bin/cat /var/log/maillog
Which works ...
1
vote
0
answers
364
views
How to set up a multi-user text mode in Debian wheezy 7.6?
I'd like to set up one of the available runlevels to work as a 'multi-user text mode' runlevel. Such mode available e.g. on CentOS.
Another example of what I need would be what you get when you add ...
0
votes
1
answer
6k
views
redis: Fixing memory error when saving snapshot to database
I see the following error in redis logs:
[17541] 10 Aug 16:13:21.055 * 1 changes in 900 seconds. Saving...
[17541] 10 Aug 16:13:21.055 # Can't save in background: fork: Cannot
allocate memory [17541]
...
0
votes
1
answer
5k
views
Format a protected (corrupted) sd card
Some days ago one of my micro sd cards (a 32gb by Samsung) "decided" it is protected. It has no physical switch and I haven't found a way to format it yet. Every software I try to use says it is ...
1
vote
0
answers
120
views
Where is my project located on the SVN server?
I have a SVN server on a remote Pi, I have SSH access to it.
I use it mainly to store revisions of web projects that I do, so I wanted to set up a continuous integration environment, so that every ...
4
votes
2
answers
4k
views
Simple proof-of-concept stunnel configuration
I am trying to setup stunnel to access a HTTPS web service from a HTTP-only client. Should be a piece of cake, right? I have the following stunnel.conf:
client=yes
verify=0
[test-https]
accept = ...
11
votes
4
answers
23k
views
In a Linux shell, why does backslash-newline not introduce whitespace?
When using the Linux shell, I come across the following situation:
$ A=B\
> C
$ echo $A
BC
In my mind, when the newline encountering escape character, it can not be a CR character but it still be ...