Greatest Hits

38
votes
3answers
134k views

How do I compress a directory?

I'm trying to compress a directory and ftp it to a windows ftp. I have tried every tar command I can find to compress a directory. It appears to be ok. Then I transfer it and view it's contents ...
14
votes
1answer
66k views

How do I mount a CIFS share via FSTAB and give full RW to Guest

I want to create a Public folder that has full RW access. The problem with my configuration is that Windows users have no issues as guests (they can RW and Delete), my Ubuntu client can't do the same. ...
7
votes
1answer
57k views

“E: Unable to locate package update” when I try to update my system, why?

I have almost an hour trying to update my installation, this is how I'm trying to do it: $ sudo apt-get install update [sudo] password for braiam: Reading package lists... Done Building dependency ...
47
48
votes
4answers
76k views

“(CRON) info (No MTA installed, discarding output)” error in the syslog

I have a fresh install of Ubuntu 12.04.1 LTS an a number of servers. I have not added any cron jobs or edited my crontab on those servers, however, at around the same time for each machine, I get a ...
70
16
votes
11answers
75k views

Can I install Microsoft Office? If so, how?

I want to know how to install Microsoft Office (specifically, Microsoft Office 2010) in Ubuntu? I am a die hard fan of MS Office and I want to know if there is a way I can use it in Ubuntu.
11
votes
4answers
66k views

Grant a user permissions on www-data owned /var/www

I have a simple web server setup for some websites, with a layout something like: site1: /var/www/site1/public_html/ site2: /var/www/site2/public_html/ I have previously used the root user to ...
11
votes
2answers
77k views

How to install the Boot-Repair tool in an Ubuntu live disc?

When the bootloader (GRUB) is broken, I cannot access neither Ubuntu nor Windows. I heard that an easy solution to fix this is to use the Boot-Repair tool from an Ubuntu liveCD (or liveUSB). What ...
37
votes
3answers
35k views

Wireless networking not working after resume in Ubuntu 14.04

[Update]: The same problem exists in Kubuntu and is solved in the same manner. [Solved]: By applying the following command nmcli nm I got the following: Before suspend RUNNING STATE ...
82
votes
10answers
117k views

How do I clear the DNS cache?

I just updated the DNS record (ns1, ns2, ns3.myhostingcompany.com) for a site I've got hosted, but I still get the domain registrar parking page. I'd like to see if the problem is Ubuntu's cached DNS ...
7
votes
1answer
54k views

How do you make USB bootable on chromebook

I have a chromebook series 5. I want to install Ubuntu onto a USB stick. When I downloaded Ubuntu onto my USB stick, it won't start up. Do I first have to download Ubuntu onto my chromebook hard ...
25
votes
3answers
72k views

Failed to get canonical path of /cow

I am trying to install Ubuntu 12.10 for quite some time, and passing hurdles one by one. Now I am in a situation as follows. I have got a PC and 10 GB HDD which will be totally dedicated to Ubuntu so ...
22
votes
7answers
85k views

fsck can't find fsck.ntfs

On several machines that I've upgraded from Natty to Oneiric, I get an error every boot (one for every NTFS partition): Serious errors were found while checking the disk drive for /windows/c. Press ...
85
22
votes
7answers
76k views

Ripping DVD to iso - Accurately

I have been using Brasero to rip my DVD collection to .iso. However, I've discovered some errors in some of the DVDs through playback e.g. VLC player would just stop playing the iso file when a bad ...
82
35
votes
6answers
48k views

setting timezone from terminal

there has been a few questions about this topic and i know the answer this could help others and maybe someone could help me out if what i want to do is possible i want to chainge the timezone of the ...
12
votes
4answers
44k views

Ubuntu 14.04 multi touch screen support

Just installed 14.04. It seems to be converting all my screen touch gestures to mouse gestures. And it only supports one point touch. It is supposed to support ten touch points (tested with windows ...
5
votes
1answer
47k views

Assigning a static IP to Ubuntu Server 14.04 LTS

I've installed Ubuntu 14.04 LTS Server in my machine on a separate hard drive while having my Windows 7 installation. The Windows OS has its full network connectivity and internet access through the ...
4
votes
3answers
73k views

apt.conf “Acquire::http:Proxy ”proxyserver:port" seems not to be used (Ubuntu 13.04 under Virtual Box on Win7)

This is for an installation of Ubuntu 13.04 Desktop in a VirtualBox VM. I'm on a corprate network with an HTTP proxy at x.y.z.251:9090. I've configured the guest OS with the autoconfiguration script, ...
9
votes
5answers
75k views

How do I update/install Perl

The Perl package is in /usr/bin and is an older version (5.12.4) and the current stable release appears to be 5.14.2. How do I update this version? Root access is required, and I do not want to ...
86
14
votes
6answers
44k views

How do I take a screenshot?

I'm not really sure since I'm still new to Linux distros in general
9
votes
4answers
82k views

How do I navigate between directories in terminal?

I am new to Linux and Ubuntu and have tried changing to folders/directories with some difficulty. Could someone explain why the following commands failed to change to the desired target ...
42
votes
5answers
94k views

What are the differences between “su”, “sudo -s”, “sudo -i”, “sudo su”?

I already read it from manual but I can't see difference.. su - change user ID or become superuser sudo -s [command] The -s (shell) option runs the shell specified by the SHELL environment ...
78
53
votes
4answers
80k views

What is the equivalent of the “tracert” DOS command?

tracert is a command in MS-DOS command prompt to trace the route to an IP Address. Is there any command in the Gnome Terminal equivalent to this?
14
votes
6answers
36k views

What version of Python do I have?

How can I find out what versions of Python I have? I am using Ubuntu 14.04 (Trusty Tahr).
39
7
votes
2answers
42k views

cgi-bin not working

I reinstalled kubuntu 13.10, cgi-bin is not working. Apache downloads the cgi instead of executing it! I have the latest apache with cgi mod enabled. To 000-default.conf, I added these options: ...
70
33
votes
6answers
89k views

Bash remove first and last characters from a string

I have a string like that: |abcdefg| And i want to get a new string called in someway (like string2) with the original string without the two | at the start and at the end of it so that i will ...
40
votes
3answers
77k views

How to force Wine into acting like 32-bit Windows on 64-bit Ubuntu?

When installing Wine on 64-bit Ubuntu 12.04, both 64-bit support and 32-bit support get installed. If I run wine foo.exe where foo.exe is a 64-bit-aware installer, it thinks it's on 64-bit Windows. ...
11
votes
3answers
46k views

How to set the JDK for Android Studio?

I can't compile a default new project for Android 2.1 because(?) the JDK used by Android Studio is JDK 1.7 but it should be JDK 1.6. To change it I go to File -> Project Structure and try to find the ...
26
votes
2answers
92k views

Proper fstab entry to mount a samba share on boot?

I am a little confused on the proper fstab entry for a samba share in Ubuntu 12.04 I can get the drive to mount manually by using: sudo mount -t cifs //192.168.2.2/raid_drive /mnt/homeserver -o ...
3
votes
2answers
28k views

No Wireless When Install 14.04 on Macbook Pro

So I'm attempting to dual-boot OS X 10.8.5 (native OS) and Ubuntu 14.04. I installed Ubuntu (hooray!) but upon booting into Ubuntu I discovered I have no network connection from the OS. I'm very new ...
21
votes
1answer
79k views

My WiFi adapter is not working at all, how to troubleshoot?

On this site I see hundreds if not a thousand questions being asked about issues with a Wireless LAN adapter not being detected/recognized by Ubuntu. Some mainstream adapters appear to be utterly ...
20
votes
5answers
63k views

In VirtualBox, how do I set up host-only virtual machines that can access the Internet?

In setting up virtual machines with VirtualBox, I often want the following characteristics vm has a static ip host can access vm without port forwarding vm can access the internet I can move ...
49
votes
5answers
95k views

Getting MTP enabled devices to work with Ubuntu?

Since Ubuntu 13.04 storage access to external devices via MTP is supposed to work out of the box via a GVFS-MTP module. While this question is about the Galaxy Nexus, other Android devices as ...
71
5
votes
4answers
62k views

Can I play Windows (Steam) games on Ubuntu?

I am downloading Ubuntu and I really want to play Windows games from Steam but I don't want it to replace my OS.
60
35
votes
10answers
73k views

How to find and change the screen DPI?

I am trying to find and then change the screen DPI (dots per inch) setting in 12.04 and 12.10. However, I can't seem to find any app or config file that can do this. Is there any app or conf file for ...
70
23
votes
5answers
52k views

Automatically enter input in command line

I'm running a script that it requests entering 'y' on each operation, I am looking for a solution like $ ./script < echo 'yyyyyyyyyyyyyy' to pass all my inputs in one time.
12
votes
2answers
37k views

How to install KDE along Unity?

I have just installed the latest Ubuntu 14.04 and I would like to install KDE along side my Gnome/Unity that I have now. How can I do this? Thanks!
59
18
votes
3answers
73k views

How to fix 3D Acceleration for Vmware Workstation 9?

I have recently installed Vmware workstation 9 on Ubuntu 12.04 & i have migrated my VM's from windows to Ubuntu 12.04 . Now i am getting openGL error & it says no 3D acceleration as shown in ...
1
vote
6answers
59k views

how to reduce size of an image from 31.1 kb to between 15kb - 20 kb

As per a requirement mentioned here the size of photos submitted should be between 20kb-50kb. I have my scanned photos which have been cropped but the sizes are still ~139 kb. If I reduce the pixels ...
77
24
votes
1answer
57k views

Share wireless Internet connection through ethernet

I want to share the wireless Internet connection on my desktop with my old laptop, through ethernet. I have ticked the option "Make available to others" on both connections, on my desktop, but my ...
4
votes
5answers
44k views

Ubuntu 14.04 installation with USB flash drive problem

I have problems while trying to install Ubuntu 14.04 using USB flash drive. I tried to create bootable usb flash drive with UnetBootin and startup disk creator but when I boot from flash drive I get ...
7
votes
3answers
65k views

How to make an xorg.conf file

I just installed Ubuntu 12.10 and I need to make a custom xorg.conf file. By default, there is not an xorg.conf file on my system. I know what I need to write in the config, but I just don't know how ...
67
votes
2answers
89k views

How do I keep track of failed SSH log-in attempts?

I'd like to see if somebody has been trying to log-in by brute-force into my Ubuntu 12.04 server over SSH. How can I see if such activities have been taking place?
13
votes
5answers
48k views

How to uninstall OpenJDK?

I don't want OpenJDK installed on my Ubuntu 13.04 system, but trying to uninstall the openjdk-7-jre yields the following message: $ sudo apt-get purge openjdk-7-jre Reading package lists... Done ...
36
votes
3answers
71k views

mv: Directory not empty

I want to move content of a directory within another directory with the same folders. Here's an example: I have ./backup wich have the directories base and test. Now I want to move these directories ...
9
votes
5answers
76k views

SSH Permission denied (publickey)

I have tried searching previous questions for answers to my question but all of the answers that have been suggested previously haven't worked for me. I am trying to connect to a linode (running ...
15
votes
2answers
48k views

Is this a correct way to enable htaccess in Apache 2.4.7 on Ubuntu 12.04

In almost every solution of "How to activate htaccess", they say that the /etc/apache2/sites-available/default file needs to be edited. But there isn't such file in Apache 2.4.7 I read somewhere ...
20
votes
7answers
67k views

Grub does not show a Windows 8 option after dual boot

So, I've successfully dual-booted my Windows 8 machine with Ubuntu 12.04 . However, I still don't have a convenient method of choosing what OS to load at boot time. After installing Ubuntu, my ...
11
votes
2answers
71k views

How much memory (RAM) should I allocate to the Virtual Machine?

I'm installing Ubuntu in a Virtual Box; my host OS is Windows 7, and I have 6GB of RAM on my system. One tutorial on setting up Ubuntu on a virtual machine (this one, on step 14: ...
43
votes
7answers
39k views

Repeat a command every x interval of time in terminal?

How can I repeat a command every interval of time , so that it will allow me to run commands for checking or monitoring directories ? There is no need for a script, i need just a simple command ...
9
votes
6answers
73k views

Every command fails with “command not found” after changing .bash_profile?

I was updating my .bash_profile, and unfortunetly I made a few updates and now I am getting: env: bash: No such file or directory env: bash: No such file or directory env: bash: No such file or ...