All Questions
1
vote
1answer
7 views
Time required to do pipe output to head/tail
There are lots of txt files in a directory.
If I do time wc -l *.txt | head it takes
real 0m0.032s
user 0m0.020s
sys 0m0.008s
If I do time wc -l *.txt | tail it takes
real 0m0.156s
...
0
votes
0answers
10 views
Sed to Modfiy Hosts File
I have a text file, modifyhostslist.txt, which contains entries that correspond to entries found in my hosts file. Not every entry in my hosts file needs to be modified, only entries also found in ...
0
votes
1answer
9 views
Sum values in the other columns for the 1st column with the same ID
The input txt file looks like (there are more columns in the actual txt file):
target_id length eff_length tot_counts uniq_counts est_counts eff_counts
mthl7 61 0 0 0 0 0
loqs 72 ...
0
votes
0answers
4 views
DSA/RSA keys work with Linux but not HP-UX
I have an NFS mount that I use to log into many Linux/Unix servers. I created a passphraseless RSA and DSA key from with I copied the id_rsa.pub and id_dsa.pub files over to authorized_keys.
total 9
...
0
votes
0answers
8 views
I can't poweroff my computer
I installed Sabayon on a computer (HP Beats Audio) but when I try to power it off, it just freezes. Apparently it can't stop the disk?
The message I'm getting on the screen says:
sabayon login: ...
0
votes
1answer
8 views
Problem with installation of the WINE
I'm facing a tiny problem. I'm new on linux.
I'm trying to install the WINE, but a long time has been passed and the installation is still running.
Is that normal?
Thanks for the attention and ...
0
votes
0answers
8 views
How to make switching virtual terminals instant?
I have configured kdm (editing /usr/share/config/kdm/kdmrc) to automatically open two displays: StaticServers=:0,:1. When I switch between them with Ctrl+Alt+F7-8 there is a delay of about 2 seconds ...
0
votes
0answers
16 views
bash question about if and then
I'm writing this in my script. It has other parts but I'm getting stuck on this part only.
if [[$# == $year $month $day ]] ; then
cal $day $month $year
fi
When I run this it give me this msg:
...
0
votes
0answers
6 views
allpackages.txt.gz has two different file-sizes?
I saw http://linux.koolsolutions.com/2008/12/19/counting-number-of-packages-under-debian-linux/ and I wanted to count the number of packages in testing.
I tried as shared therein :-
...
1
vote
1answer
8 views
How to identify LVM-over-LUKS or LUKS-over-LVM
I recently installed Fedora 20. I don't recall what exact options I chose for encrypting the disk/LVM during installation. It installed fine and I can log in etc. Here is the situation I have:
I ...
0
votes
0answers
10 views
View timestamp for CUPS print jobs
I'm looking for a way to view the timestamp of a job in CUPS. I've searched the man pages and can't seem to find it.
The long term goal is to have a script that parses the time from the jobID and ...
0
votes
0answers
19 views
The “Sudo” Command are for debian-based, Linux-based distributions, right?
Let's say that I want to teach someone the command line but in the beginning, I only want to teach them the sudo commands. This means all the basic and useful command lines but using sudo. This would ...
0
votes
1answer
27 views
how to write this if command?
my script name is 1. when i type in "1 2012 12 12". it shows current date calendar and when i enter a invaild date like "1 2323232" cal gives me a error so how could i put that in if loop that if it ...
1
vote
1answer
16 views
Run program while computer is cool
I'm trying to compile a program on a computer with inadequate cooling.
The program, specifically, is the linux-ck kernel with -mtune=native march=native processor-specific optimizations, so simply ...
0
votes
1answer
8 views
Have installed VirtualBox (x86 version) on Mint 17, but there's no menu item for it and I can't run it from a terminal
The manual says to run VirtualBox from the menu or from a terminal, but neither of these appear to be there, even though the Software Manager clearly says I've got the software installed. How can I ...
2
votes
1answer
84 views
Did the shellshock bash fix break basic command line tools like echo and cat?
I used to be able to do things like:
X=123 cat <<EOF
X is $X
EOF
or even simpler:
X=123 echo $X
The first one still seems to work on Mac OS X after install the bash fix, however neither ...
0
votes
2answers
17 views
Adding to Profile.local in Ubuntu?
I was told to adjust the /etc/profile.local with following lines:
(as user root)
export PATH=$PATH:~/cmds:.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib
export LIBRARY_PATH=$LIBRARY_PATH:~/lib
...
0
votes
0answers
5 views
Awesome WM poor font rendering(thin)
I'm using awesome 3.5 on Fedora 20 and the font rendering on the task bar is really bad:
https://i.imgur.com/xTSJ65o.png
I have
Xft.dpi:96 ...
1
vote
1answer
15 views
Using rsync to copy from local to remote server with cronjob, asking for password
I want to copy files from a local machine to a remote machine.
I have the command all set up and it looks like this:
rsync -a project [email protected]:~
However, when running this command, I'm ...
-1
votes
1answer
21 views
how to create a dynamic password thats between 8 and 16 characters [duplicate]
This is my password generator and it generates 8 characters and shuffles them. But i need to make it dynamic length. How would i go about doing that. So the output would be different length between 8 ...
0
votes
0answers
15 views
ssh public key authentication not working
I had my keys set up so I can ssh between machines without having to enter a password and everything was working for a while but then, all of a sudden, I'm being prompted for a password on some ...
0
votes
1answer
9 views
Cannot Log into Database
During training we had a developer overwrite the /etc/passwd filed as a root user with a copy of the same file. Now we cannot log into this server at all. Not as root, admin, etc. A full reboot did ...
0
votes
0answers
21 views
use EOF in a one-liner?
I have a simple script that executes commands on remote host using ssh and EOF
I was trying to do it with a one-liner at command line but I couldn't figure out how to do the EOF outside of a script. ...
0
votes
0answers
11 views
VSFTPD - Can't copy Folder - Ubuntu
Hello Mighty Keyboard warriors. I have a problem that is kinda of killing me. The Situation:
vsftpd server with the Following config File (http://pastebin.com/8AVZ9WGK)
home/user with default ...
1
vote
0answers
18 views
JSON parsing on the shell
How can I parse JSON output on the shell?
For example, Amazon Web Services provides a CLI to retrieve the status of your instances:
$ aws ec2 describe-instances <my_instance_id>
But the ...
0
votes
0answers
2 views
host only network xen 4.4
I have one IP address (ipv4) and I am trying to install a domU (debian stable) on a dom0 which runs the latest xen 4.4.1 on debian testing.
I have created xenbr0 bridge and it is mapped to my eth0.
...
0
votes
0answers
5 views
NIS Accounts Can't Login to NIS Server, work on NIS Clients - ICEauthority
I have setup a NIS Master Server and client. On the server, I created a test account. This account can login without issue to the NIS client, but when I attempt to login to the NIS Master Server with ...
0
votes
0answers
11 views
Booting Windows 8 [on hold]
I've got a laptop with Arch Linux installed and I've prepared a LiveUSB to install Windows 8 instead of it. How do I boot into LiveUSB Windows from GRUB?
0
votes
0answers
9 views
Battery not showing in ArchLinux Arm
I have a portable USB charger/external battery pack. The exact model is this one http://goo.gl/d9CgCa. I use this battery pack to power my raspberry pi which runs ArchLinux ARM.
I am trying to view ...
0
votes
2answers
30 views
Regex to grep filler followed by signed float
I want to extract the last column from lines that look like:
880.952 NAV_Y uSimMarine -146.17516
The number isn't always negative, and isn't a fixed length (i.e. doesn't ...
0
votes
3answers
24 views
Change login user account when accessing server through Putty
I am a very new systems administrator. I have been hired in as a junior and came from a Windows administration back ground. I have about one month of Linux experience. I have a lot of resources that ...
0
votes
1answer
42 views
just wanted to know what am i doing wrong in the end of this script that doesnt put my checkdate in to cal command
#Purpose: Validate a date
#Usage: chkdate year month day
#
if [ $# -eq 0 ]; then
echo Usage: chkdate year month day
exit 0
fi
year=$1; month=$2; day=$3; extra=$4
if [[ "$extra" != "" ...
0
votes
0answers
8 views
No sound on linux
Have no sound on my system (opensuse 13.1 | gnome 3.12).
alsamixer
ALSA lib control.c:953:(snd_ctl_open_noupdate) Invalid CTL default
cannot open mixer: No existe el fichero o el directorio
Some ...
0
votes
1answer
25 views
nmap won't recognize a hostname on my local area network
Scanning the machine on the LAN with my laptop, I got this:
gabriele @ osiris { ~ } [ Tue Oct 07 ] [ 08:49 PM]
nmap -sP 192.168.1.236
Starting Nmap 6.40 ( http://nmap.org ) at 2014-10-07 20:50 CEST
...
1
vote
0answers
14 views
export -f in .bashrc after upgrade to bash 4.3.30 kills builtins?
I recently upgraded my bash (Mac OS X 10.6.8) from 3.2.48(1) to 4.3.30(1) via macports, and while the install seems to have gone smoothly, the two spots in my ~/.bashrc where I had export -f myfunc; ...
0
votes
1answer
5 views
How to Pair BOSE SoundLink (Bluetooth) using Pulseaudio in Linux Mint Debian Edition?
Been having problems with pairing and maintaining conected my bluetooth speaker, finally after reading and reading, found some steps to achieve it. Please read ahead.
0
votes
0answers
27 views
Can call login command from terminal
I want to create a user using useradd from root in my terminal window, after it I call passwd to set user's password.
So I cant call login username because when I call it from terminal it closes ...
0
votes
1answer
22 views
generate password that is random length between 8 - 16 ( i have the generator but its not dynamic) [duplicate]
This is my password generator and it generates 8 characters and shuffles them. But i need to make it dynamic length. How would i go about doing that. So the output would be different length between 8 ...
-2
votes
3answers
36 views
Displaying time in 12 hour format in OpenBox? [on hold]
I have a version of Linux which lacks the ability to adjust the time format in a GUI. I want it displayed in my panel in 12 hour format Can I do this in bash? I am using openbox and sparkylinux.
0
votes
0answers
7 views
Simple encryption for ubuntu
How can I set an encrypted directory. Once accessed with a password, all files saved into it should be encrypted on the fly. It has to be possible to back-up as it were just a big file. And I don't ...
1
vote
1answer
19 views
Whitelist IP's in CentOS 7
I want to setup CentOS 7 firewall such that, all the incoming requests will be blocked except from the originating IP's that I whitelist. And for the Whitelist IP's all the ports should be accessible. ...
0
votes
0answers
8 views
Mouse sluggish/choppy
So I have a Macbook 6,1 running Linux Mint 17 x64 Qiana (based on Ubuntu 14.04) using MATE with Compiz and I am having random mouse slow downs (only when using the trackpad).
It happens randomly and ...
0
votes
0answers
27 views
Problem with PHP & Apache
I have a VPS with 2GB RAM and SSD. I have many traffic serving 4 images, which it is in:/var/www/img. In /var/www I have a single WordPress blog
When my 4 images not have traffic my WordPress work ...
0
votes
0answers
15 views
Best approach to adding a kernel driver
I have a task to complete. An LED must be controlled immediately after the kernel loads and into the launch of a Debian system. It also must be controlled in user land. I already have basic LED ...
0
votes
0answers
8 views
Centos 7 - Encrypted installation won't boot
I installed CentOS 7 netinstall (minimal installation) on a VServer with the following partitions:
/boot - 200MB - XFS
/ - 50GB - XFS Encrypted
swap - 512MB - swap Encrypted
I ...
0
votes
1answer
22 views
How to properly automount partitions? fstab
I have a problem automounting my NTFS partition I use for storing Data (/dev/sdb2).
I've tried adding an entry to /etc/fstab but it doesn't work.
/etc/fstab
# <file system> <mount point> ...
0
votes
0answers
5 views
Cannot change CPU affinity on 3.13 kernel for eth0 interrupts
We are running 3.13 kernel (Ubuntu 14.04) on an IBM x3550 servers.
I think I may have found a bug changing IRQ affinity for eth0 internet interface, that corresponds to IRQ 43 on this device.
...
2
votes
0answers
23 views
Why didn't Gnu Info succeed man? [on hold]
As per my knowledge/understanding both help and man came at the same time or have very little time difference between them. Then GNU Info came in and from what I have seen is much more verbose, much ...
0
votes
0answers
5 views
replace menu key with capslock and capslock with left control using xkb
I followed the instruction here by defining my own xkbsymbols (Use setxkbmap to swap the Left Shift and Left Control)
partial modifier_keys
xkb_symbols "replace_Menu_Capslock" {
replace key ...
1
vote
1answer
8 views
Default Shell for Samba Machine Accounts
Using Samba, as a domain controller, I need to add Windows machines as users (in /etc/passwd), and to the Samba database as a machine. In the /etc/passwd file, I noticed about half the machines have a ...