1
vote
0answers
8 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 ...
-2
votes
0answers
11 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
0answers
12 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 ...
1
vote
2answers
48 views

How can I deny internet access to all processes except the chosen ones?

Sometimes I am forced to use really narrow Internet bandwidth of 56kbps. On my Ubuntu desktop I have too many programs, that frequently check something on the net - and hunting and disabling them ...
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 ...
1
vote
1answer
85 views
+50

sshfs - device not found

After updating the server with apt-get update && apt-get upgrade this command return an error command echo "the-password" | sshfs root@domain.com:/var/www /remote_mount -o password_stdin ...
0
votes
1answer
609 views

libvirt daemon doesn't start on Gentoo

I'm trying to use Xen with virt-manager on Gentoo system and I have some troubles with libvirt daemon. When it starts: Starting libvirtd ... /usr/sbin/libvirtd: error: Unable to initialize ...
0
votes
1answer
17 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 ...
8
votes
1answer
123 views
+50

Vim spell punctuation for ⸮

I am finding myself using the point d'irony (⸮) more and more. However, vim spelling does not recognise it as a valid punctuation character. How can I add it to vim so that the spelling works? See ...
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 ...
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
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
3answers
58 views

Can a file ( such as PNG image ) wear out if transferred via SSH ( scp ) 1000s of times back and forth?

The question is about anything really. But in my case it is PNG images. Can they wear out if transferred in-between servers over and over again? I send them to another server and then retrieve ...
0
votes
0answers
10 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 ...
2
votes
1answer
67 views

How to check and set “rhash_entries” parameter?

I'm reading this article, and it says: rhash_entries is the size of the hash table. If you don't specify it on the kernel command line, it is computed dynamically based on the memory available on ...
2
votes
2answers
1k views

How can I keep *all* environment vars for a specific command in sudo?

I have a script that sets several environment variables and then finally calls another script using sudo. The script run with sudo must be able to pick up those variables, and I'm not always going to ...
3
votes
4answers
56 views

Possible to download these webpages as a book?

I would like to download a SQL tutorial here http://www.w3schools.com/sql/default.asp, as a book with all linked SQL related sections. Here is my command wget -r -np -nH -p -k ...
-1
votes
1answer
21 views

Difference between route cache and neighbor table [on hold]

Our Ubuntu server runs as a router for thousands of devices. With the growing number of connecting clients we have noticed 3 overflow problems in the kernel log: 1. Route cache chain too long 2. ...
1
vote
4answers
68 views

How to use a variable plus glob ($var*) in bash

I'm having a issue with a script. So this is the code #!/bin/bash date=`date +"%m-%d-%y"` dokuwiki="dokuwiki.$date*.toolbox.admin.tar.gz" if test -e $dokuwiki then echo "works" else echo "shits ...
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
1answer
22 views

Cross-compiling Slackware: is the build order listed anywhere?

I'm building a Slackware system from source and hitting a dependency wall here. (Before you ask: no, I'm not trying to "make it faster"; I'm building against a different C library.) Getting a ...
0
votes
0answers
12 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 ...
2
votes
2answers
42 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 ...
1
vote
1answer
927 views

Setting up SMTP-AUTH & TLS in Postfix

So I have been in the process of installing a Postfix Server on my CentOS 6.2 Virtual Private Server. I have been following this tutorial: ...
28
votes
5answers
2k views

When do you use brace expansion?

I understand what brace expansion is, but I don't know how best to use it. When do you use it? Please teach me some convenient and remarkable examples if you have your own tip.
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 ...
3
votes
2answers
898 views

Convert links of downloaded website

I downloaded a website using: wget -c --mirror -p http://www.somewebsite.com for offline viewing and I just remembered that I forgot the --convert-links option! They are all on my hard drive right ...
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 ...
6
votes
5answers
1k views

Merging folders with mv?

If I move a folder with mv called "folder" to a directory that already contains "folder" will they merge or will it be replaced?
0
votes
1answer
1k views

Got fatal error during xfer (Child exited prematurely)

I have a backup server which takes backup of other servers and in few days back the backup server started experiencing error and the not able to take back. I think the error log bellow could describe ...
3
votes
3answers
443 views

apt-get returns strange error

I am on kali linux and when I run apt-get update it returns this: W: Unknown flag value: yes W: You may want to run apt-get update to correct these problems after running apt-get update several ...
3
votes
5answers
909 views

Encrypt a password the same way mysql does

I've created a user ... but forgotten the password mysql> create user 'blayo'@'%' identified by 'right'; Which Linux command line tool can encrypt the password the same way mysql 5.5 does ? ...
2
votes
1answer
339 views

Difficulties to establish a ppp connection to a GSM provider

I want to establish a ppp link to a GSM provider with my cell phone modem. The modem gets recognized and I can send AT commands just fine, but I can not get the connection established. My chat script ...
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. ...
7
votes
3answers
2k views

Untar only a certain number of files from a large tarball

I have a large tarball that is busy being FTP'd over from a remote system to our local system. I want to know if it is possible to start untarring lets say 50 files at a time so that those files can ...
2
votes
1answer
511 views

SSH agent forwarding, multiple hop

I tested this setup with Linux origin machine - everything is the same - only the first hop can use keys from origin machine. Initial problem I'm trying to set up SSH agent forwarding with multiple ...
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, ...
0
votes
2answers
5k views

User denied ssh access while in AllowUsers list

I've inherited the administration of a linux box in my workplace; it was set up by a colleague who is now gone. Recently, I added a new user to the system, and tried to give her ssh access as well; ...
9
votes
5answers
397 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
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 ...
1
vote
1answer
5k views

libc.so.6(GLIBC_2.14)(64bit)

Installed: glibc-static.x86_64 0:2.12-1.107.el6_4.4 glibc-utils.x86_64 0:2.12-1.107.el6_4.4 Dependency Installed: fontconfig.x86_64 0:2.8.0-3.el6 ...
1
vote
2answers
2k views

Is there any command to enable/disable a php extension from command line?

Is there any command to enable/disable a php extension easily from command line? (php.ini)
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 ...
4
votes
1answer
159 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
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
vote
1answer
6 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
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 ...
1
vote
1answer
359 views

Determine whether kernel built-in driver supports a device

I'm trying to find a way to accurately determine whether all the hardware on some system has a valid driver installed either via a kernel module or built-in to the kernel. I'm working with RHEL 5.5 ...
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 ...

15 30 50 per page