Our Linux and Unix forum encompasses both Q&A based support as well as tweaking, managing, and configuring open source linux, unix, and bsd distributions.
749 Solved Topics
Remove FilterI How can I get the output from grep into a variable? In the following program I've tried the SSID line two ways but I am not getting what I want. `SSID=$(grep) ${FILE} -o empty-ssid` Gives me this garrett@bedroom ~/Desktop/folder/project $ ./testScript.sh ../OLD-172.28.50.30-system.cfg Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep …
How can I open an application on a specific workspace using the terminal in UNIX? **** I cannot use any external addons like Devil's Pie ****
I am trying to install ossec on a centos 6.4 machine but only repo which have .rpm file are from atomicrepo but then installing it require to upgrade my mysql I am reluctant to do it so I have used mock to rebuild and manage to yum install later from …
I have an old system with P4 processor, 1.12gb ram, 40 gb hdd (of which maybe 10 gb is in bad sectors) which was running Windows XP. I wanted to experiment with it. So, I installed Ubuntu 13.04 on it and completely removed windows xp. According to the [system requirements](https://help.ubuntu.com/13.04/serverguide/preparing-to-install.html) …
Sorry for the painfully specific question. My company's policy dictates that we have to acquire dependencies from commercial sources. Does anyone know if RH has TKinter available for download anywhere on the site? I can not find it and unfortunately I cannot access their FTP site either.
I've been trying all day to find a way to duel boot Windows 8 and Ubuntu. None of the google links I read seem to work on my computer. My computer has two internal hard drives, Widows 8 is installed on the first drive c:. The second hard drive has …
Please take a look at my fstab below. I'm trying to mount the HD stb onto /home/garrett/ but I don't know waht options I should choolse. Thanks for any and all replies. # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc …
I just installed Ubuntu 13.04 on a clean 1.5 TB drive. I have a two drives connected to my machine: 1 runs Windows 7 and the other is now loaded with Ubuntu. Installation went fine as far as I could tell, followed prompts and left all settings alone, accepting whatever …
Hello! So I decided I wanted to try some CGI... and it's not working out well at the moment, any help would be greatly appreciated! So essentially in my 000-default virtual host config file I have this: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /home/apott/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> …
Hey everyone I'm using Linux mint 14 , I have a problem with it the screen doesn't lock automatically after sometime passes without usig it . Also when I suspend the screen doesn't lock either . I want to make it lock after some time and when it suspend . …
In the following script I'm trying to have an automated task to move all the screen shots I have taken with the "Prt Scr" button from ~/Pictures to ~/Pictures/ScreenShots Any ideas why it's not working. I did it at first with the mv command but was told by my instructor …
Hi all, I am running the following command: time wc filename >wc.out 2>time.out in order to place the `wc` output into wc.out and the output from `time` into time.out. wc.out is fine but time.out is empty. I can't see where I am going wrong. Thanks for any help offered.
Hi everyone! I am trying to set up a reverse ssh tunnel from a windows machine using Cygwin (openssh) , to a Linux server machine with static ip, so i can access the windows pc directly through the server from any other machine. My ultimate goal is to be able …
Hi all, First, I do not know what is the appropriate forum, here or in Python forum!! I am new user in Ubuntu and I want install Python to complete installation other program. After I downloaded Python version 2.7.5 , and uncompress the file in the my folder, I go …
Hi! That's my first post in Daniweb Forums. If I go wrong in explaining something or violate rules of posting threads, give me assistance. Two days back, I installed Fedora 18 having KDE Desktop Environment on my Core i3 Computer. It was working smooth and fine. I have Intel HD …
hey everyone I want to change some environment variables , but I can't find the .bashrc file were I can change them, so can anyone tell me how to change environment variables in linux mint 14
Hi I nees answer for this questions 1.In Linux, what describes hdb2? Choose all answers that apply. Selecting an incorrect option will give minus points! A) [-1.00] Refers to the first disk. B) [1.00] Refers to the second disk. C) [-1.00] Refers to hard drive number 2. D) [1.00] Refers …
I'M trying to get backtrack Linux to boot from a USB flash drive. The book I'M reading is haivng me to a lot of formating and what not on the flash drive from the CLI and then use rsync to copy the contents of the backtrack disk to the flash …
Hello, I want to make automatic restart of apache witgh cron. But what about everyghitng going in that moment - what will happen? Will it finish last requests and jobs or instatly stop and then transactions will be rolled back?
Hello guys, I need to create a daily backup for files and save them on another server I use rsync -av --progress --inplace --rsh='ssh -p22' /var/www/html/product root@37.101.11.144:/var/www/html/backup/ but this ask me for password , I want to create a cron job to copy files automatically at midnight. how can I …
I've been using Linux for about half a year now but I'm definitely not taking full advantage of it as my knowledge regarding it is weak. I've seen some recommendations for the book "Unix Programming Environment by PIKE ROB KERNIGHAN BRIAN W. (1984)" but I can't help wondering if such …
one of my good friends wrote [this](http://developertimes.wordpress.com/) blog here. he asked me for an opinion , however , i havent used linux much... only used centOS for about a semester in college for a networking course. i was hoping the members here could give some opinions about the blog. thanks …
hello I don't get where my linux space is gone. when i run df -h, it shows used 15 GB of total 20 GB when I run ncdu program, to find what takes, I do sudo ncdu in my root directory. And I see sorted by size directories: 4.7GB home …
Hey guys, I have problem in my server dns in resolve.conf keep reseting after upgrade or reboot what should I do to stop this ?
I have been using kali linux for a wile now on my mini laptop. I am a developer and would like to start developing in nasm. The problem is when I try to download nasm I use this command: apt-get install nasm It gives an error that there isnt such …
I have Windows 7 in my primary partition and I installed Ubuntu 13.04 in the second partition. I deleted the Ubuntu partition and kept windows 7. Now the next day when I try to start my windows 7 I get an error: error : no such partition. grub rescue> How …
Hello every I have adobe reader 9 and now i want to install adobe reader 11 for the same purpose i run given command sudo add-apt-repository "deb http://archive.canonical.com/ precise partner" sudo apt-get update sudo apt-get install acroread but it gives Setting up acroread-common (9.5.4-1precise1) Noe how can done that donot …
I downloaded Kali linux, great os if you ask me, but I want to set the PATH to /sbin/ How do I do that, I want to set it permanantly and how do I make my account root so that I can create new files in /etc ... and so …
Hello, I am sharing my webserver with a few people (it's my server) and I am trying to create some sort of an admin panel for them. It has to be able to change Apache VirtualHosts and reload Apache. Now I can make the config-changing PHP code, but there are …
Anyone knows how to modify tmpfs on centos6 permanently. Thank you.
Hey there guys, I have a strange problem, I have many linux servers (ubuntu) I have a script installed on them all servers works fine but one server dont keep login information, everytime I logged in its says hello to server then back to previous page wothout logging in, I've …
I just installed Apache on my Ubuntu 12.04 and set it up to run with my domain name. Everything is working perfect, with one qualm. Though my site is up, and when I type mydomain.com/index.html, the index page loads, or suppose I type mydomain.com/directory, the index.html page in that directory …
Hi DaniWeb, I'm getting a light blue background in the text box. I don't know why this is happening or how to fix it.(it's usually white) Please see below for screenshot. http://imgur.com/UYg9srD If anyone can help me it would be much appreciated.
I currently have a Ubuntu 12.04 LTS box serving as a network repository for daily workstation backups for our HQ office. Throughout the day the Win7 workstations use Cobian Backup 11 to backup their user folders to their respective samaba shares on this server. At night this server rsyncs all …
Just purchased a new Samsung 250 Gig SSD, extern & internal. When I pluged it into my Mint Linux desktop via USB it never showed up or auto mounted. When I tried to run the command 'sudo mount /dev/sdc /mnt' it gave me this error, 'mount: you must specify the …
I just went in to edit /boot/grub/grub.cfg and the first thing I seen in the file was this: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # How am I to make changes if …
**Virus in linux machine???? Yes! under the following circumstances:** Please, before anyone jumps in with "impossible, there's no viruses for linux, you are stupid" read the post. I got a friend's computer to fix, Gateway NV53. Fast forward, put a new HDD but it won't accept any windows installation disk. …
HI i m new in linux and i have on my pc linux mint,now i just installed python 3 in my linux.. how i can use the gui to write some scripts i m learning python..and in the tuto he shows the gui in windows very easy to write how …
Hello, as one of the forum members susgested - I need to learn PECL to use. So I tried today, but not succesfully. I tried installing random extention, I choose html_parse http://pecl.php.net/package/html_parse\ So as documentattin writes - I run: pecl install html_parse in the ubuntu command line. And get error …
What's gvfs and why can't root access it? Emphasized Text Heremint-desktop ~ # du -sh /home/garrett du: cannot access `/home/garrett/.gvfs': Permission denied 73G /home/garrett
Hi guys I've downloaded debian-6.0.7-i386-CD-5 cd from linux site and burned the image to a cd, so my problem is that my pc skip the boot from cd booting process. My system type is x86-based pc, and I'm not sure if my system support the downloaded package please advice
Hello guys, I don't know whats wrong I followed every tutorial for adding editing cron jobs here is what I did. using putty sudo crontab -e 1 * * * * /usr/bin/php /var/www/cronjob.php then save file, my cronjob.php for testing perposes $DB_HOST="localhost"; $DB_USER="root"; $DB_PASS="123456"; $DB_NAME="cron"; $connect=mysql_connect("$DB_HOST","$DB_USER","$DB_PASS") or die ("error"); mysql_select_db("$DB_NAME",$connect) …
I've been having a problem with my php, apache, mysql. I can't find the problem so I'M gong to uninstall all of them and re-install them using tasksel. But when I type sudo apt-get remove mysql, it returns the following: garrett@mint-desktop ~ $ sudo apt-get remove mysql Reading package lists... …
Hello, maybe someone can write most important things what web developer should know about linux? When I am reading linux tutorials, I often find out that I don't need this what I read. At least never needed. So its not fun to read about things which you don't need. What …
I was just curious if this is just me or what but it's extremely annoying. I have installed Apache2 and PHP on my Linux Mint 14.1 Cinnamon machine fine, but when I use `apt-get install mysql-server` (as super user), this happens. Reading package lists... Done Building dependency tree Reading state …
When i try to uninstall openssl i get this error: Error: Trying to remove "yum", wich is protected I use the yum remove openssl Command how do i uninstall openssl then? Also after i installed it i had to configure some stuff in /etc/pki/CA I think that i might have …
I was foloowing instructions: https://help.ubuntu.com/community/CompilingEasyHowTo and came to this: sudo checkinstall I run this command and at the end I get errors. /bin/mkdir -p '/usr/local/libexec/mc/extfs.d' /bin/mkdir: cannot create directory `/usr/local/libexec': No such file or directory make[5]: *** [install-extfsDATA] Error 1 make[5]: Leaving directory `/usr/local/src/mc-4.8.1.7/src/vfs/extfs/helpers' make[4]: *** [install-am] Error 2 make[4]: …
Hello, I have installed auto-apt using instructions: https://help.ubuntu.com/community/AutoApt but the problem is I cannot execute it bash: apt-file: command not found probably it could be in some directory, but there is not in enviroment variable. So how can I find where it is inslled?
Is there a way I an compress a file in Linux for Windows? I recently sent a compressed folder to a Windows recipient and I don't think they were able to open the file.
Anyone use this distribution? I have a big big problem with the keyboard -- it misses characters or irradically repeats random characters. I might press a key quickly once and the driver will repeat it 100 or more times. Other times it misses the key altogether.
The End.