0
votes
1answer
12 views

what does pm-suspend-hybrid do?

man says pm-suspend During suspend most devices are shutdown, and system state is saved in RAM. The system still requires power in this state. Most modern systems require 3 to 5 ...
0
votes
1answer
35 views

Scale cpu frequency in CLI?

I am using cpufreq to scale my CPU frequency. But I do that by clicking cpufreq icon on the panel of Ubuntu 12.04. If without a mouse, how can I show and scale CPU frequency by running commands in ...
1
vote
1answer
19 views

get system uptime on battery?

How to know system uptime under battery ? so that i can get exact time of battery backup the uptime shows complete uptime (AC/Battery) NOTE : I am using linux Mint 17.
2
votes
2answers
42 views

Making sort use all CPU CORES

htop is showing that the "sort" command only uses 1 CPU CORE (on an RPM based Linux distro). How can I tell it to use all the available CPU CORES?
2
votes
1answer
70 views

How to pipe a command output to multiple programs

I'm using FFmpeg and I have made a custom application which is a TCP server. I 'm using duplicate output in ffmpeg. What I want is, for each output I want to start my program to listen on a specific ...
1
vote
4answers
34 views

What is '“^[b” backward-word' When trying to configure ZSH?

I am on a MAC, and I am trying to figure out shortcuts for my ZSH running on Iterm2. When I type bindkey in the shell, I see (among other mappings), the following: "^[b" backward-word "^[f" ...
0
votes
0answers
19 views

The “chkproc: Warning: Possible LKM Trojan installed” appears and disappears

I have chkrootkit version 0.49 installed on Debian 6.5. When I run sudo chkrootkit, I keep getting variable warnings about the LKM trojan, when I run the command repeatedly. First run Checking ...
0
votes
0answers
9 views

Icons not appearing next to custom categories in Main Menu

Just installed LM 17 Qiana Cinnamon. Installing applications and have added some custom menus. These appear as in the ~/.local/share/desktop-directories folder and look like: [Desktop Entry] Comment= ...
1
vote
1answer
40 views

apt-get update reports that http://ppa.launchpad.net list is being updated but there isn't an entry in the sources.list

I am trying to update Debian 6.5 and get the following errors. Err http://ppa.launchpad.net wheezy/main Sources 404 Not Found Err http://ppa.launchpad.net wheezy/main amd64 Packages ...
5
votes
3answers
363 views

Why is dd not protected against writing on the active disk ?

I use dd a lot. I live in a contant fear of making a mistake one day, for example writing on sda (computer disk) instead of sdb (USB disk) and then erasing everything I have on my computer. I know dd ...
1
vote
0answers
33 views

Help to install the Ralink RT3070 wireless driver on kali?

i've downloaded latest kali linux (amd64) and installed it on vmware workstation 10. after installation i upgraded kali's kernel headers to the latest version.(now i have v3.16) apt-get update ...
1
vote
1answer
19 views

How to specify block size for vFAT file system?

I just read that vFAT support different block size at (this link and in other places. It should be 512 bytes to 32 kb range ). So how can I specify this option in mkfs.vfat tool? Or does mkfs.vfat ...
7
votes
3answers
235 views

How can a Bash script tell how it was run?

I have a Bash script I was trying to make to help me run a rather complex command with small changes that it would ask me about through echo and read. I have found solutions to force it to run a ...
2
votes
1answer
34 views

How to replace the first line using sed?

Hi i am trying to replace the header line from my file using the sed command as mentioned below, sed "1s/.*/$new_header/" Test_file.csv The above line replaces the header and prints in stdout , ...
2
votes
1answer
18 views

xscreensaver sometimes unlocks locked screen automatically, after returning from monitor standby mode

I am using xscreensaver to lock my screen. Additionally to that, my monitor goes to "standby" , i.e turn display off, after 30 minutes of inactivity. It has happened to me twice now, that I have ...
0
votes
1answer
45 views

reading file using for, while - behavior

Consider the below scenario 2 vms - 192.168.229.131, 192.168.229.132 Both the vms has it's ip as 192.168.229.151 & 192.168.229.152 in it's /etc/hosts file Say there are around 50 vms like i ...
0
votes
1answer
13 views

Linux missing ~/.m2 folder [on hold]

I 've installed maven by using command apt-get install maven now i need to setup archetype-catalog, but the m2 folder is missing (using linux mint) me@me - $ cd ~/.m2 bash cd: /home/me/.m2: No ...
2
votes
0answers
78 views

What are the bash shell length limitations for here-docs?

What are the length limitations for using here-docs as part of bash command lines? I am finding that short here-docs work fine, but when they get longer there is some point or structure after which ...
2
votes
1answer
13 views

Is revealing DBUS_SESSION_BUS_ADDRESS variable a vulnerability?

I found this instructions: Using notify-send with cron Revealing the content of your DBUS_SESSION_BUS_ADDRESS like in this answer gives access to every user logged in to your session: #!/bin/sh ...
1
vote
4answers
96 views

Sed/awk/perl: reversing order of comma separated values, preserving other text

I have this text: LABEL1 .BYTE 01, 02, 03, 04, 05 .BYTE 01, 02, 03 I need to reverse only comma separated values order: LABEL1 .BYTE 05, 04, 03, 02, 01 .BYTE 03, 02, 01 I need ...
0
votes
0answers
12 views

Can't upgrade GNUPG? [on hold]

I'm using Linux Mint I'm trying to upgrade my 1.4.14 GNUPG to 2.0.26 version and the repository has 1.4.14 version... I tried removing it and building the lastest version from the official GNUPG ...
0
votes
0answers
16 views

Why on my Linux PPPoE connection displays sometimes authentication failure?

Here is my log: Oct 18 09:51:52 -desktop pppd[2764]: Plugin rp-pppoe.so loaded. Oct 18 09:51:52 -desktop pppd[2766]: pppd 2.4.5 started by root, uid 0 Oct 18 09:51:52 -desktop pppd[2766]: PPP session ...
0
votes
0answers
27 views

Please help me to debug this notify-send battery alert script

I used crontab -e to define the following: */5 * * * * env DISPLAY=:0 /home/max/.bin/battery-check.sh The contents of the script are: #!/bin/bash ...
0
votes
0answers
33 views

GDB up arrow doesn't work

I searched a lot about similar problems but found nothing. When running gdb I couldn't use up arrow for walking through previous commands. Up and down arrows are just ignored. I have started to ...
0
votes
0answers
10 views

yum/rpm: exclude a file (by path) from being installed

Is there any way to make yum/rpm never install a particular file path, but to otherwise install any packages which contain that file path, and for verification to act as if that file exists? For ...
1
vote
1answer
87 views

Disable SSLv3 In cURL?

I'm having a problem connecting to a website that is hosted with CloudFlare using cURL. When I try to connect to the website with HTTPS (using curl -v https://www.xxxxxx.com), it says: * About to ...
0
votes
0answers
10 views

boot fails with “cryptsetup: lvm fs found but no lvm configured” [dual boot(2xlinux LVM, dm-crypt+luks)]

I have a dual-boot(xubuntu/#!) setup LVM with dm-crypt+luks as follows /dev/sda1 = /boot (xubuntu) /dev/sda2 = /boot (#!) /dev/sda3 = encrypted LVM /dev/mapper/volgroup-xroot = / (xubuntu) ...
5
votes
3answers
730 views

What does “if !” mean?

I came across a if/then statement like this: if ! foo ; then echo "blah" exit 1 fi What specifically does if ! mean? "If the result of foo is not true?" "If the exit code of foo ...
0
votes
0answers
51 views

What are the required build dependencies of mesa for Debian-based distros? [on hold]

My target is about playing Team Fortress 2 on Kali Linux (a Debian Wheezy stable distribution with customized Debian Sid kernel) since a long time now, but couldn't because of the following graphical ...
0
votes
1answer
29 views

Linux Mint 17, your session lasted less than 10 seconds?

I get this message when I try to log in. /etc/mdm/Xsession: Beginning session setup... /etc/mdm/Xsession: 1: /etc/profile: id: not found /etc/mdm/Xsession: 12: [: Illegal number: /etc/mdm/Xsession: ...
0
votes
0answers
20 views

Obtaining error message using apt-get: “Unable to fetch some archives…” [on hold]

when i use sudo apt-get upgrade, I'm getting this message: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
3
votes
2answers
105 views

How can I detect a user login programmatically? [duplicate]

I am developing a small daemon program which needs to run some instructions when a user logs onto the system (all kinds of logins included). In order to do so, I want my program to be woken up ...
1
vote
3answers
82 views

How to enter foo-* folder without actually using wildcard or shell expansions?

Short story I'm looking for the command to enter first found foo-something directory like: cd foo-* but without using wildcard (or other special shell characters). Long story As part of the ...
1
vote
0answers
11 views

UFW before rules for VPN forwarding

I'm trying to setup an OpenVPN server on Debian 7, following this guide: How to install and set-up OpenVPN in Debian 7 (Wheezy) In step 15 I have to setup forwarding and IPtables rules. I prefer to ...
0
votes
0answers
3 views

Configure Key Based Authentication for ProFTPd

I was following this tutorial and stopped at this command sudo ssh-keygen -e -f ~username/.ssh/authorized_keys | sudo tee /etc/proftpd/authorized_keys/username. I tried with sudo, with su (super ...
1
vote
1answer
20 views

libvirt-bin error on a VM when I try to list VM

I'm using Virtualbox 4.3.18 on my Arch Linux Host machine and libvirt-bin 1.2.9 on my Ubuntu Server Cloud guest machine. Everytime I try to follow this tutorial I receive the following error when I ...
0
votes
0answers
32 views

Protect folder with password [on hold]

I want to do the following: I want to protect the directory "foo" located in "/ var / www / foo" so that any user can create a directory, I read a tutorial where they use a tool called EncFS to ...
0
votes
0answers
8 views

Strange behaviour connecting to serial port

I'm using screen to connect to my Rasberry Pi with a baud rate of 115200. I can log in fine, and everything works. But, when I copy and paste data from my machine to the RPi in vi or nano it seems to ...
4
votes
0answers
50 views

What is the purpose of xeyes? [on hold]

Is xeyes purely for fun? What is the point of having it installed by default (in X)? Thanks.
1
vote
1answer
20 views

Redirect output to stdout and pipe to a binary

I have a nice PS1 line in my .bash_profile, and I want to copy it to another machine. So I want to view it AND copy it to my clipboard. I can't figure out how to string the commands to do this ...
0
votes
0answers
17 views

I'm trying to create a public TLD using BIND

I'm using these two guides: jackal777.wordpress.com/2013/11/19/custom-tld-for-local-network/ timg.ws/2008/07/31/how-to-run-your-own-top-level-domain/ When I run dig sokolovskaya.ssu, it looks ...
0
votes
0answers
15 views

How to cleanup apt-get update 404 errors in linux mint

I have looked at all questions about this matter and no one really answered it clearly. Is there a way to remove all the repositories that return a 404 error in apt-get? I tried fix404 ...
-3
votes
0answers
33 views

What are the main differences between uselessd and systemd? [on hold]

I would like to know what uselessd (http://uselessd.darknedgy.net/) is and what it makes different to the systemd approach/software it has been forked from? maybe it there is a possibility to repond ...
0
votes
0answers
14 views

How does loading an OS work? [on hold]

Now finally comes the time to understand how mounting partitions work. Here I list my partitions : lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 698,7G 0 disk ├─sda1 8:1 ...
1
vote
3answers
49 views

Random character generation - with random output!

This is what crunch can generate: [user@localhost ~] crunch 3 3 ab Crunch will now generate the following amount of data: 32 bytes 0 MB 0 GB 0 TB 0 PB Crunch will now generate the following number ...
1
vote
1answer
68 views

Running commands after ampersand symbol & in a remote ssh session

I have a shell script that initiates a long, resource-intensive command on several different machines. In order to execute the script on each machine in parallel, I have an ampersand symbol after ...
2
votes
1answer
28 views

Why is chromium-browser killed when I close the terminal despite nohup?

In a Gnome Terminal tab, I ran $ nohup chromium-browser & But when I close the terminal tab, chromium-browser also exits. Isn't nohup supposed to prevent that? I am seeing this on other ...
1
vote
1answer
17 views

Files are being uploaded with full write permissions

A CMS that I manage uses TinyMCE to allow users to write blogposts. TinyMCE has an image uploader. Recently, like in the last couple of months, the image uploader has started uploading images to our ...
1
vote
2answers
29 views

Remove group ID from user

How can I remove a group (which was previously deleted) from a user which still references it? If I run groups, I get an error about a non-existent group: $ groups myuser dialout cdrom sudo dip ...
1
vote
2answers
50 views

How can a script run many processes at the same time?

I want my code to run many processes at the same time. The following example for a code and the source is StackExchange (Unix&Linux ) web site. > #!/bin/bash > for i in $(cat lis.txt); do ...

15 30 50 per page