1
vote
0answers
11 views

Running Linux on Smartphone

I have recently thought about buying a cheap second hand smartphone and install Linux on it as an experiment. I am sure this has been asked a lot but I cant seem to find an answer: Is there anyway ...
0
votes
0answers
14 views

How to identify user and server with short commands?

I've been teaching my students the basics of the Unix OS (and Linux) for 4 weeks now. I want to give them a home assignment next. It's the first one so the questions and tasks won't be hard. My only ...
-2
votes
0answers
16 views

I have problem with the second password

I set the second password and when I exit I want it to ask a question like "Do you want to exit?(Y/N)" If I enter the wrong password (i.e. the second password), then it should ask "Do you want to ...
0
votes
1answer
14 views

CRON job to check if PHP script is running

I am having trouble regarding CRON jobs, I've basically got two php scripts that I want to keep running continuously on my server. Currently I am using an infinte loop to keep them going but they seem ...
0
votes
0answers
10 views

Samba share open for all to all

thanks for viewing at this question. I have a CentOS 6.5 server with a share that is and should be accessable for and from everyone. All content placed on that share should be accessable by everyone. ...
1
vote
2answers
17 views

get the name of new directory that created out of tar command

How can I get the name of new directories that were crated out of tar -xvf command? For ex. When I run the command tar -xvf jdk-7u17-linux-x64.tar.gz the contents of this tar extracted in a new ...
0
votes
0answers
20 views

How to achieve a good format in json?

I been posting this question in other stackexchange site but I haven't receive a good solution yet for this problem in getting a good format or output in json. ...
0
votes
1answer
23 views

How to send a mail when someone remote connects to my server

I would like my server to send a mail to me when someone connects remotely over ssh to my server. who only gives me back the Username, TerminalID and Date. I cannot use only that, I need to check ...
0
votes
0answers
11 views

How to get mpd to recognize music library?

I have arch running on my desktop and I'm trying to play music with mpd using ncmpcpp. They are both up and running, but the problem is when I open ncmpcpp it doesn't show my music. I copied the music ...
0
votes
0answers
13 views

Shell Script for tracking number of times each command executes

Can any one know how to have a shell script that takes input from /var/log/sudo.log file and sends results to a spreadsheet that displays graph for each command execution. Like to record how many ...
0
votes
0answers
11 views

How to list the services I am authorized to start or stop in Linux?

I can use the following command in Linux, to list all services: chkconfig --list It lists all services running on that machine. I do not have the privilege to start/stop some of the services. How ...
2
votes
2answers
43 views

Brace expansion does not work for less than 2 arguments

I was expecting brace expansion to work for any number of arguments. However, for n=1 I get the following: $ find models/nsf-projects-{7}* models/nsf-projects-{7}.rdf For n>1 expansion occurs as ...
0
votes
0answers
2 views

rts5139/rtsx_usb borked in 3.15+

Some time in 3.15, someone moved the rts5139 driver out of staging (I cannot find a changelog of this) and it got renamed to rtsx_usb. This, unfortunately, broke support for at least the RTS5139 card ...
0
votes
1answer
19 views

dialog menu to disply files and select one of them

Please advise me on how I can do the following with the dialog utility: I want to display all the files under /home directory in menu, and select only one of them. Then the script will print the full ...
0
votes
1answer
21 views

Possible to install Linux RHEL completely offline?

The documentation on Linux RHEL seems to assume you have a connected machine and will be installing through that connection. I need to set up RHEL completely offline using CD-ROMs only (no USB). Is ...
1
vote
0answers
12 views

No audio on Debian “jessie” / KDE install

I've completed a fresh Debian "jessie" / KDE install on a Chromebook via crouton and I can't get the sound to work. I've run other Linux releases on the same machine and haven't had this issue. ...
0
votes
1answer
11 views

Can't find vboxdrv on Debian Testing after installing Virtualbox.

Virtualbox refuses to load up any virtual machines, due to vboxdrv not being loaded. I have tried most things. From uninstalled everything virtualbox related, then installing linux-headers then dkms, ...
1
vote
1answer
8 views

How to add sftp permission to user/client?

I am somewhat new to linux, so please bear with me... I'm on a new Centos 7 setup. So far I have logged in via ssh as root: added a new user gave user full permission via visudo added user to the ...
-1
votes
0answers
8 views

/etc/logrotate.conf “/var/log/btmp” want to replace digit script [on hold]

I want to replace with script.. rotate 77 "/var/log/btmp" in /etc/logrotate.conf weekly rotate 99 create dateext include /etc/logrotate.d /var/log/wtmp { monthly create 0600 root utmp ...
1
vote
1answer
13 views

search files using group permission

If i need to search files using group permission I use the following command echo **/*(AIE) where AIE stand for read/write/execute. For owner and group permissions the qualifier used are rwx and ...
0
votes
2answers
12 views

SSH into Windows Server '08 from Mint 14 - “permission denied”

So I have been trying every which way to get into my Server '08 box via SSH. I have tried FreeSSHD and Cygwin. Everything works fine when I am using simple SHA pass authentication, but the moment I ...
4
votes
1answer
161 views

Bash: Variable assignment doesn't seem to 'stick'

I am having a hard time tracking down the reason my 'boolean' flag variable won't stay false when a test fails inside a while loop. The script involves a few loops but essentially it is intended to ...
1
vote
1answer
7 views

How to access and edit GRUB files on SSD from Live CD?

Is it possible to access and edit GRUB files on SSD from Live CD? I need edit /etc/grub.d/10_linux /boot is in separate partition on SSD. If that's possible, how to do this using Knoppix Live CD?
0
votes
1answer
24 views

Quick way to copy the rest of a line?

In Emacs, I want to copy the rest of the current line. The regular way is to select the rest of the current line, and then Mw. A quicker way is Ck, and then C_. Is there a non-customized way using ...
-2
votes
1answer
33 views

Delete empty directories without find

I want to delete empty directories without using find command like the following: Instead of find . -empty -type d -delete use if [ "$(ls -d *)" ]; then echo "Not Empty" else echo "Delete" fi ...
0
votes
1answer
20 views

How to “bless” a disc without access to OSX?

I have a MacBook Pro. The original harddrive died and has been replaced. I've installed Fedora20 on the new drive. The new drive was never "blessed" and thus boot takes 30 seconds longer than it ...
1
vote
0answers
11 views

Run the Arch ISO in VirtualBox with shared folders

I am trying to use the shared folders feature when running the Arch ISO as a VirtualBox guest OS. The reason is that in the shared folder I have the scripts to make my persistent setup. After the ...
0
votes
0answers
22 views

Installed Linux Mint on a dual-boot system. Cannot boot Windows 7 anymore

My system initially had Windows 7 and Ubuntu 14.04 installed on two separate hard-disks. The system uses UEFI. The Grub boot menu used to show up and show me boot options for Windows and Ubuntu. ...
1
vote
0answers
6 views

skip pam_fprintd.so with closed lid

I really love fprintd and I really love having my laptop closed while in docking station. But I hate both together. This is my /etc/pam.d/system-auth: auth sufficient pam_fprintd.so ...
0
votes
0answers
5 views

Etekcity Scroll E1 Wireless USB mouse does not work with Ubuntu 14.04

I have an Etekcity Scroll E1 Wireless USB Mouse that is not working with Ubuntu(but does work on Windows). According to their website, the mouse is compatible with Linux, and the Amazon reviews for it ...
0
votes
1answer
12 views

Is there some html annotation tool for adding annotations to downloaded html files?

I would like to add annotations (such as underlines, text comment, circle or square a text region, ...) to downloaded html files. Is there some WYSIWYG html annotation tool (for Linux) for that ...
0
votes
0answers
13 views

PCI Pass through for gaming, Arch Linux

Okay, so I have attempted PCI pass through before, and failed, so I'm trying again but I'm looking for some tips, allow me to explain. I'm looking to use QEMU/KVM to build a W7 VM, this will be a ...
1
vote
1answer
22 views

Install zip on SteamOS

How can I install zip on Steam OS (a Debian Wheezy derivative) if my apt sources do not have it? # apt-get install zip Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
11 views

Reinstalling Centos 6.4 over current Centos 6.4 OS

I am a newbie to Linux, and I am trying to reinstall Centos 6.4 from an AsteriskNOW CD I have because through an update I believe I lost the res_srtp.so module I installed from an external source. I ...
-1
votes
1answer
45 views

How to use grep to filter out lines starting with any of a set of keywords?

I have a large file (a chemical database), and I need to display only header records, which are defined as lines that don't start with: ATOM, CONNECT, HETATM, TER, or END. I'm supposed to use grep to ...
0
votes
2answers
29 views

After downloading an .asp or .php file, can it be converted to a .html file? [on hold]

I wonder if downloading files via wget and having them named .asp or .php means that I download the webpage? Aren't these executable files? If so, after downloading an .asp or .php file, can it be ...
0
votes
2answers
35 views

Are `less textfile | col` and `cat textfile` the same?

Do less textfile | col and cat textfile accomplish the same thing? I wonder if man mysql | col -b > textfile and man mysql > textfile do the same?
2
votes
1answer
54 views

mounting removable USB disks with nodev,noexec,nosuid

When I want to use a USB disk on my desktop, I insert the disk and mount it manually, for example: mount /dev/sdb1 /mnt/usb I know that I can specify mount options with -o, such as mount -o ...
0
votes
1answer
18 views

Unable to install ATI Catalyst drivers under CentOS 7

I'm getting an error running ./amd-driver-installer-14.20-x86.x86_64.run # ./amd-driver-installer-14.20-x86.x86_64.run Created directory fglrx-install.xjgOcJ Verifying archive integrity... All good. ...
2
votes
0answers
34 views

Locale environment variable settings do not take effect

I have a Debian 6 (64-bit) VPS where I cannot seem to get the locale environment variables LANG and LC_* set. (Everything below as root). vps:~# locale -a C POSIX en_US.utf8 nl_NL.utf8 vps:~# locale ...
1
vote
0answers
14 views

Installing linux on an 32bit UEFI only machine

I have a Intel BayTrial Z3735D tablet which comes with a 32bit UEFI BIOS. After some search I've found that most linux distro don't come with a 32bit efi file. How can I insert one (or build a new ...
0
votes
0answers
14 views

What forum-management software can I use? [migrated]

This question regards open-source forum-management software and praxis. Barbarians have overrun naively-managed Internet forums routinely since the mid-1990s. You know the depressing pattern: A ...
1
vote
0answers
6 views

Read pre-grub2 error messages

Grub2 displays an error message followed immediately by the menu. Without a high speed camera there is no way to read the message. Is there any way to see the error messages that grub2 displays before ...
9
votes
5answers
405 views

How to debug a bash script?

I'm having some problems with some scripts in bash, about errors and unexpected behaviors. I would like to investigate the causes of the problems so I can apply fixes. Is there a way I can turn some ...
0
votes
1answer
17 views

How to determine Apache user from the command-line?

There is a question about the group, but I couldn't find any question/answer for getting the Apache user. Therefore how to determine Apache user from the command-line?
1
vote
1answer
31 views

Finding duplicate files and replace them with symlinks

I'm trying to find a way to check inside a given directory for duplicate files (even with different names) and replace them with symlinks pointing to the first occurrence. I've tried with fdupes but ...
0
votes
2answers
22 views

Find Largest Image Dimensions in Folder

I need a command which will allow me to search a folder of images for the images with the biggest width and the biggest height. As of now I'm using XNViewMP to find this info, but I'd like a faster ...
0
votes
1answer
19 views

Not to ask for grub password

I set a superuser and password for grub in Ubuntu and whenever I turn my machine on it asks for username and password... I want when I hit e on my keyboard just asks me for username and password... ...
0
votes
0answers
49 views

What is the difference between double quotes (“”) and single quotes ('')? [duplicate]

I really do not know the usage of " and '. I want to know usage of " and '. What is the difference between echo "hi" and echo 'hi'.
0
votes
2answers
25 views

How to find the occurrence of names in a file?

I want to know how many times users who have logged on the system in a single command. I have used repetitive commands to find the how many times he have logged. $ last | grep -c user1 $ last | grep ...

15 30 50 per page