1
vote
1answer
165 views

Does a Virtual Machine Server Have a Web address? [closed]

Hi I'm trying to set up a server for my moodle virtual programming lab. It has something named a jail server that is used to run code remotely. I have a Ubuntu server set up with all the correct ...
2
votes
1answer
56 views

Cross executing binaries [closed]

I have a Linux machine that I own and administer (CLIENT). I have access to a UNIX server, with no administrative privileges at all (SERVER). Previously, I used to copy a lot of files from this ...
3
votes
0answers
123 views

Linux distros wont boot

I haven't been able to find an answer to this problem anywhere so im posting it here. So I'm trying to put a couple Linux distros on a laptop, using xboot and a USB drive, and when the computer booted,...
7
votes
1answer
14k views

-bash: phpize: command not found on Centos 6

When I try to run phpize I get -bash: phpize: command not found I have run yum -y install php-devel but that returns: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * ...
1
vote
2answers
345 views

Automatically backup usb drive to computer

I am trying to create a personal sync system for my project. I don't want to use something like dropbox, bittorrent sync, owncloud etc for various reasons. At the moment, I have my computers setup ...
21
votes
3answers
3k views

mv a file to /dev/null breaks dev/null

If I do: touch file; mv file /dev/null as root, /dev/null disappears. ls -lad /dev/null results in no such file or directory. This breaks applications which depend on /dev/null like SSH and can be ...
5
votes
6answers
7k views

How to match exact string using `sed`? But not the part of it.?

I have a input file FILE1.TXT as below. 11 id1 12 13 AGE = 20 14 NAME = NAME1 15 16 id2 17 18 AGE = 30 19 NAME = NAME2 . . . 110 idXYZ 111 112 AGE = AGEXYZ 113 NAME = ...
21
votes
2answers
1k views

How do I move all files output from a command?

I have this grep command to find files without the word Attachments in them. grep -L -- Attachments * I want to move all the files that are output from that command. How do I do that in bash? Do I ...
6
votes
3answers
6k views

How do I use new fdisk table without reboot (kpartx)?

When I run fdisk and change the size of a partition, fdisk says at the end of its output: The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) I'd like to do so ...
3
votes
2answers
439 views

Using multiple layer of kernel modules for interfacing a hardware device?

I am trying to get a conceptual understanding of the purposes the kernel modules can have. The motivation for this question was a realization that interface to an actual hardware goes through multiple ...
3
votes
1answer
2k views

adduser: Specify only one name in this mode

I'm trying to add a user with this command on my debian server: #!/bin/bash APPUSER="test1" APPGROUP="test2" # User adduser -c 'uwsgi user' --group $APPGROUP --system --no-create-home --disabled-...
2
votes
0answers
7k views

Touchpad not recognized on linux (ASUS R751LB)

I have just bought a brand new laptop. Unfortunately, touchpad doesn't work on any linux distribution (tried mint Ubuntu 12.04, Ubuntu 14.04, Mint 14, Mint 16, also Mint 16 with recent 3.13.5 kernel). ...
11
votes
7answers
2k views

Options to show images when on the console

When I am on the console (the tty, the virtual terminal, which you reach with Ctrl+Alt+F1-6, not a terminal emulator), what options do I have to view images, tiff, whatever that's not text?
0
votes
0answers
393 views

Oracle Linux R6 Install Error

My Oracle Linux R6 x64 won't install. After normal install it's just blank screen. After basic video driver options install stuck on "Waiting for hardware to initialize...". Tried with different ...
2
votes
3answers
3k views

Disable login for useradd [duplicate]

I tried to disable login for a user account but got this error in debain: useradd: unrecognized option '--disabled-login' What is the equivalent of this command for useradd? Do I have to pick ...
5
votes
3answers
7k views

Try to disable console output, console=null doesn't work

as mentioned above, I want to to completely turn off the console output, but putting console= or console=null in the kernel command line doesn't change a thing. When I enque quiet to the kernel ...
1
vote
0answers
1k views

Recovering files from partitions at a corrupted SD card?

I got a problem with my SD card which had got Raspbian. Everything seemed to be ok while working with the raspberry. I inserted it to my laptop running Ubuntu 12.04.4 to fetch some files. It first ...
2
votes
2answers
352 views

Footnotes in emacs org mode: how to disable [n], but keep [fn:]?

How can I disable the [n] being linked to a footnote and highlighted? [n] can be many things, like any index of an array. So, I want my footnotes to be[fn:n]and only[fn:n]`.
1
vote
1answer
687 views

awk date identification from input file

I currently have daily files that come in via FTP with incorrect dates in the first column of the file. I have figured out how to deduct one day to derive the correct date and print this to a new file....
1
vote
3answers
198 views

Is it possible to change the default COUNT value of tail and head?

The less command accepts its defaults with an environment variable LESS, so you can export LESS='-F -g -i -M -R -S -w -X -z-4' at the beginning of your session. Is it possible to change the ...
1
vote
2answers
78 views

Attach to an existing ssh tunnel

I have an existing ssh tunnel which connects machine A to C over B. #user@A: ssh -N user@B -L 9999:C:9999 Is there any way to create a new ssh tunnel on D and attach it to the existing tunnel so ...
-1
votes
2answers
3k views

Script to change ownership of files

I am new to unix. I want to write a script to change the ownership of files from root to myuser. Script which will check the ownership and if found as root will change it to myuser. The script should ...
2
votes
0answers
3k views

NFSv4 which “domain” to put in idmapd.conf?

I'm using NFSv4 but suddenly when the NFS Server got rebooted, all the files on the Clients are having nobody ownerships after the Server is booted and started its whatever services again. Then I ...
1
vote
2answers
65 views

subsitute removing zero numbering

I would like to subsitute in a txt file the followings targets for example "code_000040" by "code_40" and "code_067340" by "code_67340" and so on.., in other words to remove the zeros in the 6 ...
3
votes
2answers
2k views

case sensitive substitution; same target ids

I am struggled myself to make a case sensitive replacement in a text file. Please find below a segment of my sed file that I am running as sed -f file.sed < input.txt > output.txt s/\<...
4
votes
1answer
122 views

How to relate a kernel config setting to the source files?

Here is an example that will explain better: I have a selected the audio driver from the picture and i would like to browse through its source. How do i get to the path of the source files from ...
0
votes
1answer
629 views

how to play video with vlc via terminal to view on webpage? [closed]

Now have VLC installed ,how to play a video with vlc via terminal running centos 6 to be viewed on website? What is the command to test it? I want to use VLC on my website which resides on my VPS set ...
0
votes
1answer
1k views

cannot send signal to VGA using VGA-to-HDMI adapter

This is the output of lspci -v: 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GSE Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller]) Subsystem: ...
5
votes
2answers
10k views

How to change the user timezone?

I know that (for example in Debian) one could use dpkg-reconfigure tzdata to change the timezone of the system but I am wondering how one could change the user timezone (if Linux/Unix supports such an ...
8
votes
1answer
2k views

show colors and disable line wrap

Using the less paginator, you can use the -r option to properly display colored input and the -S option to disable line wrap. However, when using less -rS or equivalently less -r -S, colors are ...
1
vote
3answers
1k views

Fedora 20: Anyway to install the default tools which comes with Fedora-Gnome on Cinnamon?

I just did a fresh install of Fedora 20 and chose Cinnamon as my desktop. To my surprise, Gnome was not install at all.. and thus I feel am I missing a bunch of "stuff" that's normally included in a ...
1
vote
2answers
319 views

SpellCheck in FreeBSD

In FreeBSD; the SpellCheck doesn't work for me. For example I installed midori from the ports. In dependencies it installed enchantand enchant had the option for some dictionary (i.e. Hspell, Aspell .....
1
vote
1answer
84 views

Position of “double_buffer yes” in ~/.conkyrc

According to the Archlinux wiki, in the "Prevent flickering" section, the line "double_buffer yes" should be placed "below the other options, not below TEXT or XY". But when I look at Crunchbang ...
-1
votes
2answers
931 views

ls -ld list files inside a folder which is having only execute permission

In Linux, I gave only execute permission to a directory named test. after switching to the directory test, when I run ls -ld it was showing some hidden files. Please explain this.
1
vote
1answer
3k views

How Can I Reset Graphics Drivers and Restore Defaults?

I tried to install AMD graphics without reading. My CrunchBang crashed and now every time I try to login, my keyboard inputs don't go into the login screen. I can reset X with Ctrl+PrtScn+K and it ...
1
vote
1answer
35 views

Net-SNMP Application

I don't know if this is the right place to ask this question, but, does anyone knows about Net-SNMP. Is it possible to not truncate the log file whenever snmptrapd is restarted? The logs are being ...
0
votes
4answers
481 views

What's the advantage of mounting a file system in the same file system

RE-EDIT: We can usually see mounting a file system to a mountpoint, like: /usr/bin/truncate -s 128M /tmp/foo chmod 0700 /tmp/foo mke2fs -t ext4 -m 1 -F /tmp/foo mount -t ext4 -o loop /tmp/foo /mnt ...
2
votes
1answer
1k views

logrotate won't truncate original file

I have this conf for my logrotate: /tmp/snmp.log { daily rotate 12 missingok notifempty copytruncate dateext } but it won't truncate the original file. it logrotates but ...
1
vote
1answer
503 views

Plain vi (not vim): Can't delete a line in insert mode: Is this behavior required by POSIX?

In the non-vim implementations of vi I've worked with, it's not possible to delete a line while in insert mode. vim does allows it—but it's my understanding that vim is not POSIX-compliant in ...
0
votes
3answers
61 views

Set the default permission

When I create a file, the permission is 644 (user rw, group r, other r). How can I make the default file generated to have permission as 664?
3
votes
1answer
429 views

Can't compile glibc for 64 bit system

I'm trying to compile glibc-2.16 statically for x64 system, ../configure --enable-kernel=2.6.9 --prefix=/run/shm/libc-static-64 --enable-static --enable-shared --host=i486-linux-gnu --build=i486-...
1
vote
2answers
1k views

Which strategy suits best a user with a scientific background like me? (Linux Desktop, Dual Boot, Virtualization)/ (Fedora? Arch? Win?) [closed]

First of all, I've a scientific background and my professional work involves scientific computation: Lots of Python, Matlab, C/C++, TeX, Git, Java apps and some Julia, Parallel computing, web ...
0
votes
2answers
104 views

unmount pendrive discarding changes

Is it possible to unmount a (FAT32-formatted) pendrive without committing changes? Use case: easy recovery of accidentally deleted files
7
votes
2answers
2k views

bash globstar matching

I have this directory structure: ~/tmp/globstar ɀ find dir -type f dir/file.ext dir/subdir1/file.ext dir/subdir2/file.ext and, with the globstar option enabled in Bash, I can say: ~/tmp/globstar ...
3
votes
1answer
2k views

Left control key not working in virtualbox

I'm having an issue. I'm trying to install Gentoo in virtualbox. I can't use nano because when I press Ctrl + x, I see, I have written x letter. Something's wrong with Ctrl key in virtualbox. I've ...
2
votes
2answers
679 views

KVM linux guest, 2nd HDD, LVM partition or whole disk

I've got a RAID 10 arrays on a couple of KVM host machines. The RAID 10 array is one big VG. I usually create a small LV for guest disk image storage then the rest of the VG I carve out as LVs to add ...
2
votes
1answer
249 views

replace a pattern found with a number plus 1 on the same line

I have a file where each line contains a keyword (HELLO) and one or more numerical fields designated A1, A2, etc. The value in the numerical field is enclosed in brackets after the field name and is ...
1
vote
1answer
234 views

How can I use a loop inside a command?

I'm writing a shell script that contains a command that takes multiple directories as space-separated input arguments (like ls). I would like to fill in those arguments from a variable but don't know ...
1
vote
1answer
1k views

Starting NetworkManager before gdm.service with systemd

In arch linux I would like to have NetworkManager service available at gdm login page. I enabled the two services like this: systemctl enable gdm.service systemctl enable NetworkManager The issue ...
2
votes
1answer
987 views

Corosync & Pacemaker IPTables Rules

When using Corosync with two rings via multi-cast addresses 226.94.1.1 (Port 5405) & 226.94.1.2 (Port 5406) what iptables rules are required to allow two nodes to communicate optimally without ...

15 30 50 per page