0
votes
0answers
1 view

Is there a easy-to-install distribution coming with all the necesseray tools to compile (make, autoconf, etc)?

I'm working on a workstation without root privileges. Since I need some tools I cannot install directly, I wish to put them in a vm. Problem is, I cannot connect to the repositories from the vm ...
0
votes
1answer
4 views

I'm accidently add a physical volume without filesystem into a volume group and one of logical volumes, how can I make filesystem for it online?

Because the logical volume is mounted as my root partition, and I don't want to fix this with some LiveCD (it's very troublesome). By the lvs command the logical volume has already the new (larger) ...
-1
votes
1answer
8 views

Does those two constructions do the same thing: proces <input.txt vs cat input.txt | process in Linux

Does those two constructions do the same thing: proces <input.txt vs cat input.txt | process in Linux?
-1
votes
0answers
6 views

Delete line from files

I have 8 files in a folder if any one file has 2 lines(line count) i need to remove 2nd line in that file. if file has more then 2 lines then then i no need to do any thing. can any one help me with ...
0
votes
0answers
6 views

Keepalived - is it possible to change log file directory?

I'm wondering if is there any way to change log directory for keepalived daemon. I couldn't find any answer on my question. Maybe it's possible using tools like syslog, rsyslog? The reason why I'm ...
0
votes
5answers
23 views

Difference between 'ls -ltr abc*' and 'find ./ -name abc*' command?

To search a file in a directory, I found two commands as below: ls -ltr initialfilename* find ./ -name initialfilename* Sometime, first command gives me the search result but sometime I used to ...
0
votes
0answers
7 views

LibreOffice introducing random page breaks

I normally use LaTeX, but currently I'm collaborating with a couple of people who don't, so I'm forced to use LibreOffice (v. 3.5.7.2 running on Ubuntu 12.04 LTS). I'm saving the file as .docx so that ...
0
votes
1answer
18 views

Sticky bit and users with sudo permission

Let's say I chmod 1777 a folder /opt/test and all files inside, as user user1. Hence user2 is able to update and edit files inside the /opt/test directory. When user2 operates via sudo, he's able to ...
0
votes
0answers
4 views

Search 802.1x enabled Aceess Point

In my campus, there are 10+ access points available. Some of them are WPA2-PSK enabled while few are WEP and rest are 802.1x secured access points. I want to connect only to those Access Point who ...
0
votes
0answers
14 views

mlocate not returning any results for known file, even after updatedb

I am speechless... [root@Centos-PHP56 webroot]# ls -al php_errors.log -rw-r--r-- 1 apache apache 327 Apr 21 01:49 php_errors.log [root@Centos-PHP56 webroot]# updatedb [root@Centos-PHP56 webroot]# ...
0
votes
0answers
16 views

What could be the output of command `lsblk -f -r | grep ' /' | grep -v ' /boot'` on encrypted drives?

Suppose we have drives which are encrypted, what could be the output of following command in Debian based (specially Ubuntu OS)? lsblk -f -r | grep ' /' | grep -v ' /boot'
0
votes
0answers
8 views

Bridge interface - add default route

I used to connect my ubuntu 14.04 laptop on office network via eth0 and the route table gets updated with the office network gateway ip in auto mode. Now, i changed my /etc/network/interfaces ...
-2
votes
0answers
27 views

how to print only part of line using awk/sed/grep

I need to print only part of the complete line after removing/omitting starting part. Can someone give me the regular expression to do so
0
votes
1answer
13 views

How to you force fsck at reboot on FreeBSD10?

I need to force a file system check on reboot to try and fix my mounted file system. All the commands/methods I find are obsolete in FreeBSD10 [\u@vader:/root] # tune2fs -c 1 /dev/vtbd0p2 tune2fs: ...
1
vote
0answers
4 views

OpenVPN nameservers ignored by NetworkManager or whatever

I'm using Elementary OS. I've followed a dozen suggestions from different websites and nothing helps. I use OpenVPN client to connect to an office network. The company I work for has provided me the ...
0
votes
1answer
7 views

Procmail not running

I'm using: Mutt-kz + Isync + msmtp + spamassassin + Procmail Mutt-kz, Isync and msmtp are working. I cannot make procmail start automatically when mail arrives. I'm doing everything as non-root user ...
0
votes
0answers
9 views

usbfs: process 25093 (pool) did not claim interface 0 before use

I recently got a new phone, a Moto G 2nd Gen. I am running Debian Jessie on kernel 3.16.0-4-amd64 libmtp 1.1.8-1 libusb-1.0-0 2:0.1.12-1 gvfs 1.22.2-1 When I plug it in, it appears to be fine. ...
0
votes
0answers
4 views

libmwlaunchermain cannot open shared object file

I am trying to install the MATLAB Runtime (see www.mathworks.com/products/compiler/mcr) on Cent0S 7. I think I have installed MCR correctly because the install finishes through saying it completed ...
-1
votes
0answers
5 views

How to Install Fedora (not create bootable USB)

I have searched Google for how to download Fedora, and all I find is how to create bootable USB. Once I load Fedora from bootable USB how do I permanently install Fedora from USB onto my laptop?
0
votes
1answer
19 views

bash cannot find mvn command after install

I tried to install Maven on CentOS 7, but afterwards typing mvn -version in the terminal results in bash: mvn: command not found.... How can I fix this so that I can call maven from the CentOS 7 ...
0
votes
0answers
17 views

editing files at the same time when cron automatically runs backup

I heard that it is a good idea to schedule backup in crontab file. I also head that it is bad to edit files while they are backed up. It may happen that cron stats to backup a directory while I am ...
1
vote
3answers
48 views

How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer?

On a Mac, using Bash, I tend to do du -sh * to tell the sizes of files and folders in the current directory, in MB and GB. But if I want to sort them by the sizes, I might do du -sh * | sort -g ...
0
votes
1answer
31 views

Download a file to a server?

After ssh to a server, I want to download two files in https://iain.cx/src/ktmux/#download to the server. So for the first file ktmux_helper, I right click to find its link on my local computer, and ...
0
votes
0answers
11 views

RHEL Bash Script for Oracle WebLogic - Run command as another user; No such file or directory

I'm trying to run a test script which switches to a WebLogic 10.3.6 user and checks the status of the admin server. The script works fine when the variables are replaced with absolute paths, but this ...
2
votes
2answers
66 views

Shall I save my crontab file in /tmp?

I ssh to a server, and want to add some daily jobs (specifially to renew Kerberos tickets even when I log out and I still want my programs in screen or tmux continue to run) to cron. So I run crontab ...
1
vote
0answers
25 views

How to execute bash commands from C? [migrated]

Is there a way to run command line utilities, e.g. gzip, into a C app?
0
votes
0answers
18 views

Make a downloaded script automatically executable [on hold]

I was making an script to send to a friend to fix some problems in his computer. I was thinking about give to file exe permits and my friend just have to double-click in the file, something like ...
2
votes
3answers
30 views

How to check if string is blank in tcsh

How can I check whether a string is empty in tcsh? Before you freak out, no I'm not writing shell scripts with tcsh. I am asking because I want to us this in my .tcshrc file. Specifically, I want ...
2
votes
1answer
29 views

Prevent glob expansion in foo=“*”; echo $foo [duplicate]

In Bash, when I do: foo="*" echo $foo It expands * to the contents of the current folder. How do I make sure it just prints a literal *? The same, by the way, happens with a regular echo "$foo", ...
0
votes
1answer
14 views

Is it possible to convert a gpg key to a different encryption algorithm

Maybe the answer to this question is a simple and unequivocal "No", followed by "How can you possibly think that this is possible?". And if I think about rationally this seems to be the only answer. ...
0
votes
0answers
13 views

How to add routes multiple times in routing table?

Need to add same route multiple times in the routing table, or is there a way to maintain references in the routing table entries ? (may be with different priorities etc.) Am working on a switch ...
1
vote
2answers
18 views

CentOS 7 shell script interpretor

I am starting to write a shell script to be run in CentOS 7. Which interpreter should it call, and what should the shebang line look like? I tried this: #!/bin/sh But when I type cd /bin ...
1
vote
1answer
16 views

What are the deb files for installing a kernel for?

When installing a kernel in Ubuntu(e.g. http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/), what are the files for respectively: linux-headers-4.0.0-xxx_all.deb ...
0
votes
1answer
8 views

cannot install wine on 17.1 mint: unmet dependencies, broken packages

i have a Linux Mint 17.1 Rebecca - Release amd64 20141126]/ trusty contrib main non-free installed, and the apt-get install wine wont do the trick. it returns the following: Some packages could not ...
2
votes
1answer
33 views

Device eth0 does not seem to be present, delaying initialization

I have cloned a fedora and now trying to configure network interfaces. Every time i am adding a new NIC, it starts with number eth3 (rather eth0). i have tried removing and modifying the ...
1
vote
0answers
6 views

Can I create a buffer file with arecord?

I need to record some sounds from my audiocard to make a stream(Nothing special in this just trying new things), but I can't make the arecord play direct on it, so can I create a buffer file where the ...
0
votes
0answers
21 views

ipsec.conf file with dynamic ipv6 address

I have been able to get strongswan ipsec tunnel between 2 linux machines with static ipv6 address. For example, a segment of my ipsec.conf file looks like left=2000::1 ...
3
votes
2answers
101 views

Why is lsusb taking so long?

I'm running lsusb several times, but it's taking a long time to return. Is there a reason why it won't finish or that it runs slowly? I've tried killing their PIDs but that doesn't work. So I close ...
1
vote
1answer
19 views

delete redis keys that have been inactive for 30 days

I've installed a web app called scrumblr which uses redis as a database. What I am attempting to do is delete all keys that have been inactive for 30 days, or have not been accessed in 30 days. I ...
0
votes
1answer
25 views

What should I do so Ubuntu finds a new application when pressing Alt+F2?

I've got a new machine running Ubuntu 14.4 today, and I installed Eclipse by downloading and unzipping it. Now I would like to be able to: run the command eclipse in the terminal to open Eclipse; ...
2
votes
2answers
71 views

how to create multi tar archives for a huge folder

I have a large folder with 30M small files. I hope to backup the folder into 30 archives, each tar.gz file will have 1M files. The reason to split into multi archives is that to untar one single large ...
1
vote
1answer
14 views

How to run mod_mono on Debian Jessie (package libapache2-mod-mono missing)?

I would like to run an ASP.net MVC application that requires Mono 4 on Debian Jessie, but Jessie is missing the required package "libapache2-mod-mono" [1]. On [2] I found that the package was removed ...
0
votes
0answers
21 views

Configure ldap client without yast

I'm configuring an LDAP client in a large number of Suse servers. The only way that I know to do this is using Yast, and this way is slow. I can't find another way. Anyone know another way to do ...
0
votes
2answers
27 views

Whats the best way to clear / empty Apache log files periodically

I am running Apache server on lubuntu linux, Since there are plenty of applications ruining on the web server with 10+ users accessing the server regularly, the server logs [access & error logs] ...
1
vote
0answers
20 views

MySQL read only error but permissions set and SELinux AFAICT correct

I am new to MySQL and Linux and because I had issues with an old MySQL version (5.1) I used mysqldump and installed MySQL 5.6. I changed the datadir location by copying everything to the new folder ...
1
vote
0answers
8 views

Is it Possible to globally set the java hs_err log Location?

I know when executing a jar using the command line option -XX:ErrorFile=[location] allows you to change where the hs_err log files are placed. I am wondering: is there is a place I can globally ...
2
votes
0answers
19 views

How does one use the setxkbmap -geometry option?

I have a Sun Type7 keyboard on my Debian Linux (/etc/debian_version == 7.8) box, and, since it appears to be much like the Sun type6 I attempted: $ (setxkbmap -model sun6 -layout us -geometry ...
1
vote
1answer
25 views

What is blocking: Firewall and tcpwrapper?

Is it possible to find whether firewall(Iptable) or tcpwrapper is blocking a connection without accessing the remote server? (tcpdump?) Thank you,
2
votes
2answers
60 views

Change Password Programmatically

In the current version of Raspian, I know it is possible to change the password of the current logged in user from the command line like so: sudo passwd which will then prompt the user to enter a ...
0
votes
0answers
9 views

Install of manjaro linux on Raid 0

Im trying to install gnome manjaro on my raid 0 ssd's along side my uefi windows 8. The GUI installer proceeds without problems but when I try to boot the system gets stuck on the manjaro load screen. ...

15 30 50 per page