How do I get the libc development libraries for Ubuntu 12.04? I want to install glibc-devel package in Ubuntu 12.04. I am VM Ware work station in my project and this package is one of the dependency to build project image. I tried to find information on google about this package but didnt find any staisfactory answer.

Is this package not supported in Ubuntu 12.04? If not then what is the alternative package for it.

Any help on this will be useful.

The build-essential  package should sort you out.

sudo apt-get install build-essential

I have the same issue, and I clone the glibc (GNU libc) source with the command:

git clone git://sourceware.org/git/glibc.git

It runs fine for me.


Why does the Lubuntu minimum install say that it requires 10.7 GB of available drive space? I have a 4GB Dell Mini 9. I used UnetBootin following the instructions at pendrivelinux.com.

I have tried Xubuntu minimal install, Lubuntu minimal install, and vanilla Lubuntu, and all result in the same issue:

The second screen of the install 'Preparing to install Ubuntu' says 'for best results, please ensure that this computer has at least 10.7 GB available drive space'.

Am I doing something wrong? The system requirements for these OSes are much lower than 10.7GB.

The minimal size is only recommendation -- if you want you can change it.

In LiveCD environment (before running installation) open terminal and run

gksudo leafpad /usr/lib/ubiquity/plugins/ubi-prepare.py

at line 303, there's variable size and at line 310 you'll find this

min_disk_size = size * 2

just change the number 2 for adjustment (now the minimal size is 5 GB * 2, I've replaced it with 0.8), save the file and run Installator again.

Believe you are seeing a glitch in the installer, as they usually require 4.0GB. You can ignore that recommendation and install as normal.


Ubuntu 18.04 Server unable to see Windows 10 OS as dual boot My machine config:

  Threadripper 1950x 16-core  +  Gigabyte X399 aorus 7

  32GB DDR4

  Samsung NVME 960 512GB

  UEFI mode with GPT partition scheme

Windows 10 Pro + Ubuntu Server 18.04 LTS

I previously had Windows 10 + Ubuntu 16.04 Server as dual boot and I never had any problems.

What I did so far:

1) I Installed Windows 10 x64 Pro (1803) on my machine - no problems

2) I tried to install Ubtunu 18.04 Server as dual boot but it did not detect existing windows OS. Tried multiple boots but no luck so finally installed Ubuntu causing windows wiped out

3) Then I installed Windows 10 (as dual boot) without disturbing Ubuntu partitions. No problems

4) Now only windows 10 boots so I followed How can I repair grub? (How to get Ubuntu back after installing Windows?) and fixed the issue but now Only Ubuntu boots

5) Then I followed GRUB does not detect Windows  but it STILL does NOT detect Windows 10 OS but I can mount the windows
partition on Ubuntu. os-prober also sees the Windows OS but grub doesn't!
Please see below and advise, Many thanks!

root@ubuntu18:~# mkdir -p /media/windows
root@ubuntu18:~#  fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 01BADB0F-4C8E-4332-BA18-822F08CE451B
Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      2048   1050623   1048576   512M EFI System
/dev/nvme0n1p2   1050624 361760767 360710144   172G Linux filesystem
/dev/nvme0n1p3 361760768 370149375   8388608     4G Linux swap
/dev/nvme0n1p4 370149376 370182143     32768    16M Microsoft reserved
/dev/nvme0n1p5 370182144 976773119 606590976 289.3G Microsoft basic data
root@ubuntu18:~#
root@ubuntu18:~# mount -t ntfs-3g /dev/nvme0n1p5 /media/windows/
root@ubuntu18:~# os-prober
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
root@ubuntu18:~# update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
Adding boot menu entry for EFI firmware configuration
done
root@ubuntu18:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3.2G  1.6M  3.2G   1% /run
/dev/nvme0n1p2  169G  1.7G  158G   2% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/loop0       87M   87M     0 100% /snap/core/4486
/dev/nvme0n1p1  511M   29M  483M   6% /boot/efi
tmpfs           3.2G     0  3.2G   0% /run/user/0
/dev/nvme0n1p5  290G  187G  104G  65% /media/windows

but no luck, Please advise.

I think this must be a bug of 18.04.

1) I rebuilt my machine from scratch with WIndows 10 (clean) - No problems.

2) I installed Ubuntu Server 16.04 as dual boot - every thing worked straight forward. Detected windows 10 and grub setup was done and dual boot working fine.

3) I installed Ubuntu Server 17.10 on top of same Ubuntu partitions (not upgrade) alongwith dual boot of same WIndows 10 - No problems - worked straight forward.

4) Please note both #2 & #3 - I have tried with windows settings of Fast boot off & on. Irrespective of this setting, I was able to install both Ubuntu versions (16.x & 17.x) without any problems

5) But Ubuntu 18.04 doesn't even see the Windows partition and/or Windows 10 OS while installing it. It simply overwrites it (even though I chose manual partitioning). Please see below screenshot

Screenshot of ubuntu 18.04 installation

6) As I needed to run 18.04 - I freshly installed 17.10 and did a "do-release-upgrade" and it upgraded to 18.04 without any problems. All good now.

7) If anyone could please reproduce this issue(with similar setup) and report, it would be great, Many thanks!!


Installing debian package through Synaptic I want to install a .deb file. After going through various questions, I came across these three options: dpkg, GDebi and Ubuntu Software Center. However, I want to install the. Deb file via Synaptic Package Manager only. Is there any method by which I can install. Deb file as well as all it's dependencies via Synaptic Package Manager?

Well actually you can't install .deb files through Synaptic.

You have to install it by command-line:

  sudo dpkg -i filename.deb

Command-line is faster and easier as you can know the problem (if there is any) by the debugging information it provides.


upgraded to Ubuntu 20.04, unable to access older NAS and samba servers after upgrading to 20.04, I am now unable to access samba shes on older nas or older samba servers.

I have tried editing the smb.conf, and adding "client min protocol = CORE". This partly fixes the issue and authenticates and lets you view folder inside the share, but then all the files inside appear as folder. I am unable to copy the files out to access, and cannot open them in caja, which I think will be the same in Nautilus.

Other than that I am enjoying 20.04 :)

thanks in advance

Bigley

Just for completeness...as I could not read the exact instructions from the posts. If you have a NAS (e.g. FritzBox) that uses SMB1 you can make nautilus/gio downgrade the smb connection with the following commands, if you don't already have a .smb/smb.conf file (like me):
mkdir ~/.smb
echo "[global]" > ~/.smb/smb.conf
echo "client min protocol = CORE" >> ~/.smb/smb.conf

As an alternative for FritzBox users you could possibly upgrade your FritzBox to SMB2/SMB3 using the experimental Fritz!Lab OS.
See https://en.avm.de/service/fritzbox/fritzbox-7490/knowledge-base/publication/show/3327_SMB-versions-supported-by-the-FRITZ-Box/
Then you possibly don't need this workaround, but I didn't test that yet.
The bug with the files showing as folders is fixed now in Ubuntu 20.04 (focal) with smblibs package version 4.11.6+dfsg-0ubuntu1.2

You have 2 options:

[1] Install a PPA "fix" so that you can continue to do this through caja.

The details are listed in the bug report: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476

And the PPA can be found here: https://launchpad.net/~sergiodj/+archive/ubuntu/samba-bug1872476-v2

[2] I would strongly suggest you use a CIFS mount instead.

This way you can leave smb.conf alone and create a specific mount to your NAS box with earlier versions of smb.

There's an example of how to do that in another question here: 20.04 upgrade makes NAS unavailble

EDIT: I understand your reluctance to have mounts in fstab but it could be set up as a systemd automount then it doesn't mount on boot - it will only mount when you access the mount point.

The following is just a suggestion. If Step [1] doesn't work there is no point in setting it up in fstab.

[1] Do a temporary mount first to make sure it works:

** Create a mount point ( do not put it in your home directory or under /media:

sudo mkdir /mnt/NASx

** Do a temporary mount:

sudo mount -t cifs //nas-ip-address/share-name /mnt/NASx -o username=xxxx,password=yyyy,uid=1000,vers=1.0,sec=ntlm

[2] If step [1] works you can set this up as an automount in fstab:

** Unmount the share:

sudo umount /mnt/NASx

** Add this to /etc/fstab

//nas-ip-address/share-name /mnt/NASx cifs username=xxxx,password=yyyy,uid=1000,vers=1.0,sec=ntlm,noauto,x-systemd.automount 0 0

** THen reset systemd:

sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target

** Then access /mnt/NASx to verify its contents.

noauto = prevents the mounting at boot.

x-systemd.automount = mount the remote share only when the mount point is accessed.


set screen resolution higher than what's supported When I run xrandr I have this output:

barsoom@ubuntu:/etc/xdg/lxsession/Lubuntu$ sudo xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
   1024x768       75.0*    70.0     60.0
   800x600        75.0     72.0     60.0     56.0     65.0
   640x480        75.0     73.0     67.0     60.0

How do I change it higher than what's available? I need to set it to the resolution of my monitor, 1440x900 because everything looks so big.

What I Tried:

these command:

xrandr --addmode VGA1 1440x900
xrandr: Failed to get size of gamma for output default
xrandr: cannot find output "VGA1"

Try this:

sudo xrandr --addmode default 1440x900

See this post for a clear solution www.linuxquestions.org/questions/linux-newbie-8/screen-resolution-in-ubuntu-11-04-a-878836/


How do I change mirrors in Ubuntu Server from regional to main? I have a Lucid Server (10.04) set up and I would like to change the mirror from US (or any other country) to the Main Ubuntu Mirror.

For example my two first entries in sources.list are:

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

In a Desktop environment I would select the main mirror like this:

But how do I do that from the terminal as I don't have a graphical environment installed!

Open your sources.list file using your favorite text editor, e.g.

sudo nano /etc/apt/sources.list

Locate the text http://us.archive.ubuntu.com/ubuntu and replace it with http://archive.ubuntu.com/ubuntu.

With vim:

mv /etc/apt/sources.list{,.bak}   # you may want to make a backup
vim /etc/apt/source.list

Type : (you need to hold Shift) to enter command-ine mode, and then type:

%s/http:\/\/us\./http:\/\//g

Hit Enter

Hit Esc to be sure you've exited the command-line mode and entered normal mode. Now you can scroll around the file with keyboard move keys (if you want) to make sure all occurrences of us mirrors have been edited.

Finally, exit with saving by entering command-line mode (type :) and enter wq! to save and exit vim.


How to recover splash screen I am on 11.04.My Ubuntu splash screen was replaced by Kubuntu after I installed Kubuntu-desktop.I followed the answer of daniel kullmann by mistake in this askubuntu link and I lost splash screen.Now it shows only a blank screen after boot menu until login screen.I entered the other commands from the same post but changed nothing.How can I get back the splash screen back?

Open the terminal and type:

sudo update-alternatives --config default.plymouth

Select the original default and then

sudo update-initramfs -u

Reboot.

If it still doesn't appear then open a terminal and type the following command:

sudo -H gedit /etc/initramfs-tools/conf.d/splash

or this command by Alt+F2

gksu gedit /etc/initramfs-tools/conf.d/splash

This file may not exist, so you may be creating it from scratch now.
Enter the following content on the file you opened on the previous step:

FRAMEBUFFER=y

Close and save the file.
Now, run the following command to commit the change:

sudo update-initramfs -u

Reboot and enjoy your Plymouth splash screen.

Here's an one liner command of the abybaddi009's good answer:

sudo tee -a /etc/initramfs-tools/conf.d/splash <<<"FRAMEBUFFER=y"


Unmet dependencies for libgl1-mesa-dev while initializing build environment for android I am trying to setup build environment on
Ubuntu 12.04 (precise)(64bit). I am following the guide at official android site. I encountered the following message.

$ sudo apt-get install  libgl1-mesa-dev
[sudo] password for buddy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgl1-mesa-dev : Depends: mesa-common-dev (= 9.2.0~git20131002+9.2.2eb55601-0ubuntu0sarvatt~precise)
                   Depends: libdrm-dev (>= 2.4.45)
E: Unable to correct problems, you have held broken packages.

I tried installing mesa-common-dev

$ sudo apt-get install  mesa-common-dev

message

The following packages have unmet dependencies:
 mesa-common-dev : Depends: libdrm-dev (>= 2.4.45)

Then I tried installing

 $ sudo apt-get install libdrm-dev

message

The following packages have unmet dependencies:
 libdrm-dev : Depends: libdrm2 (= 2.4.46-1ubuntu0.0.0.1) but 2.4.46+git20130702.c6d73cfe-0ubuntu0sarvatt~precise is to be installed
              Depends: libdrm-intel1 (= 2.4.46-1ubuntu0.0.0.1) but 2.4.46+git20130702.c6d73cfe-0ubuntu0sarvatt~precise is to be installed
              Depends: libdrm-radeon1 (= 2.4.46-1ubuntu0.0.0.1) but 2.4.46+git20130702.c6d73cfe-0ubuntu0sarvatt~precise is to be installed
              Depends: libdrm-nouveau1a (= 2.4.46-1ubuntu0.0.0.1) but 2.4.46+git20130702.c6d73cfe-0ubuntu0sarvatt~precise is to be installed
              Depends: libdrm-nouveau2 (= 2.4.46-1ubuntu0.0.0.1) but 2.4.46+git20130702.c6d73cfe-0ubuntu0sarvatt~precise is to be installed
              Depends: libkms1 (= 2.4.46-1ubuntu0.0.0.1) but 2.4.46+git20130702.c6d73cfe-0ubuntu0sarvatt~precise is to be installed
E: Unable to correct problems, you have held broken packages.

Then I tried the following steps mentioned here: How do I resolve unmet dependencies after adding a PPA? skipping the Disable/Remove/Purge PPAs part.

Disable that PPA ... the version numbers indicate these are not Ubuntu archive packages ...


Can I use a Bash alias in a keyboard shortcut? Is it possible to use an alias within a custom shortcut?

For example, suppose I have the alias

alias cal="google-chrome --new-window calendar.google.com"

Can I create a custom shortcut that binds Ctrl+Alt+C to cal?

I have tried but it doesn't seem to work.

Yes, you can. You just need to ask the command for an interactive shell.

Let's say your alias is:

alias myalias='some cool command here'

Your shortcut command must be:

bash -i -c "myalias"

a quick alternative, in case it helps anyone in the future

to add a "Save Image As.." keyboard shortcut to Chrome as Shift-Ctrl-S

command: bash -c "xdotool click 3 && sleep 0.5 && xdotool key v;"

also, if you're organized enough to keep a separate file with your shortcuts & then sourcing it at the end of ~/.bashrc for example, the following works & can comes in handy ;)

command: bash -c ". /tmp/keyboardShortcutsFcns && tefAliasFcn"

content of the "/tmp/keyboardShortcutsFcns" file from the above example:

# test fcn to be called ( maybe ? ) from a keyboard shortcut
tefAliasFcn(){ notify-send "tef alias function called succesfully !"; }


Ubuntu 18.04 no DNS resolution when connected to OpenVPN When I connect to a VPN network through Gnome Network-manager I lose DNS resolution and in practice, I cannot access resources inside the VPN network or outside.

When I was using Ubuntu 16.04 and I was using the VPN, the "/etc/resolv.conf/" file would contain the DNS servers of the (VPN) network I had connected. Now it always contains the following entries:

nameserver 127.0.0.53
search myprovider.com

From what I have understood 127.0.0.53 is the address of the DNS stub used by the system-resolved.

I suspect that this is a bug because the VPN was working fine the Ubuntu 16.04. Is there any way that I can set the DNS servers of my network when I am using a VPN service?

Update:

I tried connecting to the OpenVPN network with the  configuration file attached at the end of the post, but I get the following error:

 Authenticate/Decrypt packet error: cipher final failed

I have verified that the server uses lzo compression and I have enabled it as well. The connection stays active but I cannot navigate to any page inside or outside the VPN.

In the configuration file listed below, I have included the solutions posted in the replies

 client
 dev tun
 proto udp
 remote openvpn.bibsys.no 1194
 remote my-server-2 1194
 resolv-retry infinite
 nobind
 user myuser
 group myuser
 persist-key
 persist-tun
 ca ca-cert.pem
 cert openvpn.crt
 key openvpn.key
 cipher AES-256-CBC
 comp-lzo yes
 script-security 2
 up /etc/openvpn/scripts/update-systemd-resolved
 down /etc/openvpn/scripts/update-systemd-resolved
 down-pre

Problem

The file /etc/resolv.conf does not get updated by the /etc/openvpn/update-resolv-conf script because resolvconf is not installed by default on ubuntu 18.04.

In fact, one of the first lines of that script checks for the /sbin/resolvconf executable:

[ -x /sbin/resolvconf ] || exit 0

Installing resolvconf via apt-get is not a solution as the /etc/openvpn/update-resolv-conf script updates the /etc/resolv.conf file with the pushed DNS entry but the tun device seems to ignore it.

Solution

Ubuntu 18.04 uses systemd-resolved, so all you have to do is install the openvpn helper script for systemd-resolved via

sudo apt install openvpn-systemd-resolved

or with these GitHub instructions
Update your config.ovpn file adding these lines:

script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre

That instead of adding up and down of /etc/openvpn/update-resolv-conf to the conf.
To prevent DNS Leakage, you should add this line to the end of the config.ovpn file (according to this systemd issue comment):

dhcp-option DOMAIN-ROUTE .

I'm impacted too. In my case, I'm using OpenVPN with an internal name server (which is inside the VPN). That worked until Ubuntu 17.10 (with "hosts: files dns" in /etc/nsswitch.conf).

/etc/resolv.conf was updated correctly by the openvpn scripts (through calls to /etc/openvpn/update-resolv-conf in the openvpn client configuration file).

However, name resolution for hosts inside the VPN was not working any more (or at least sporadically... I guess the local DNS cache was picking the names, but after a rather long time).

What seems to help, or even resolve the issue (though that's too early to say) is to install the below package:

sudo apt install openvpn-systemd-resolved

In a few days, I'll have more experience whether this fixes my issue or not.

If you're impacted too, please try this and post comments!

Cheers,

Michael.


Is there any way to use my Samsung Galaxy S3 as USB modem on Ubuntu PC? Ive already installed Nautilus and I can mount both my Internal and external memories on my Ubuntu PC, but I couldn't find how to use my Samsung as Modem. Is it possible?
BTW, my most sincerest despite to Samsung for not including drivers for free software.

Yes. Just enable USB tethering on your phone and Ubuntu will see an USB ethernet device on which your phone will provide an address on (DHCP). Don't use the USB-modem approach, that's much harder.

See this video on how to enable it on your phone.

easy tether works great they have an Ubuntu client, I am using it on my phone.
its a cdma Samsung Galaxy S3


Screen Brightness on new MacBook Pro 8,3? 2011 8,3 MacBook Pro running 64bit 11.10.

The screen brightness keys seem to actually do things, but nothing actually changes with regard to actual laptop screen brightness. (See this video. Ubuntu can sense when the buttons are pressed, but nothing actually happens with screen brightness. I know you wouldn't be able to see it if it did work, but it doesn't.)

Is this a known issue? How can I adjust the screen brightness on my MacBook Pro?

I know I can do something like this in the AMD/ATI FGLRX configuration software, but it actually just adjusts the output picture, not the physical laptop's screen brightness. What can I do?

Are you using ubuntu on mac? If yes then you can change your screen brightness using the following command:

echo 4 | sudo tee /sys/class/backlight/acpi_video0/brightness

Value range: 1 to 10 [1 lowest, 10 highest]

Also you can set the brightness at start-up. Append the line in /etc/rc.local before exit 0

Apparently, you need to boot to EFI, not to emulated BIOS, as is what happens with rEFIt.


How do I list the members of a group? How can I see all the members of a group in Linux?

Use the commands:

getent group groupname

or

getent group groupname | awk -F: '{print $4}'

One more way to check all the members of a group is by checking the /etc/group file which lists all the groups and its members

Example:

root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:syslog,nikhil
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:
fax:x:21:
voice:x:22:
cdrom:x:24:nikhil
floppy:x:25:
tape:x:26:
sudo:x:27:nikhil
audio:x:29:pulse

The first string (separated by :) specifies the group name and the last string specifies the user added to this group.


How to customize the Ubuntu Live CD? I would like to customize Ubuntu live CD by installing some additional packages. I have followed  this but it doesn't seems to work. Can anyone provide clear instructions?

Note: I do not prefer Remastersys, manual way will be appreciated.

Customization

Packages that I want to install:

Thunderbird
Samba
SSH

Changes that I need:

Remove Games menu from the Application menu
Firefox shortcut on Desktop
Radiance as the default Theme
Different default Ubuntu Wallpaper

Configuration file changes

I want the panel to be placed at the bottom
I want to paste my Samba configuration file instead of default Samba configuration
I have few Firefox shortcuts and folders I would like to show that in Desktop
Also it will be nice if you say me how to change the icon sets

Recent Updates

I have customized Ubuntu 10.10 with Firefox shortcuts and few folders on desktops. Everything went smooth. But the installer gets crashes after choosing the timezone. How do i fix this issue?
Also setting wallpaper affects the login screen. The wallpaper which i set is displayed on the login screen also. I just want the default one for the login screen.

Creating your own Custom Live CD - the manual way.

1. Preparations

First you download the Live CD ISO. While it is downloading install some software that is needed for rebuilding: sudo apt-get install squashfs-tools schroot

Squashfs  is a compressed read-only filesystem for Linux.

schroot  allows users to execute commands or interactive shells in different chroots.
Mount the Live CD:

mkdir /tmp/livecd
sudo mount -o loop ~/Downloads/ubuntu-11.04-desktop-i386.iso /tmp/livecd

If you use another ISO or another location for your download please adjust accordingly.
Create a working area and copy contents over to the working area:

mkdir -p ~/livecd/cd
rsync --exclude=/casper/filesystem.squashfs -a /tmp/livecd/ ~/livecd/cd
mkdir ~/livecd/squashfs  ~/livecd/custom
sudo modprobe squashfs
sudo mount -t squashfs -o loop /tmp/livecd/casper/filesystem.squashfs ~/livecd/squashfs/
sudo cp -a ~/livecd/squashfs/* ~/livecd/custom

If you get an error like this while doing modprobe:

sudo modprobe squashfs
WARNING: Deprecated config file /etc/modprobe.conf,
all config files belong into /etc/modprobe.d/

move the modprobe.conf mv /etc/modprobe.conf /etc/modprobe.conf.OLD and try again!
Network access:

sudo cp /etc/resolv.conf /etc/hosts ~/livecd/custom/etc/

Create a pseudo filesystem:

sudo chroot ~/livecd/custom /bin/bash -l
mount -t proc none /proc/
mount -t sysfs none /sys/

2. Customizing

You can get a list of all packages with
dpkg-query -W --showformat='${Package}\n' | less
You can remove games with apt-get remove --purge gnome-games
Update your sources withsudoedit /etc/apt/sources.list. Comment out lines you do not want and uncomment the ones you do want, add in PPAs if you want and then you need to update with apt-get update && apt-get dist-upgrade
Adding packages like thunderbird, Samba, Samba system config and SSH is done the same way as you would normally install from command line. So sudo apt-get install thunderbird samba system-config-samba ssh will add those.
If you've manually downloaded the package from you can install it with sudo dpkg -i {file_name}.deb

You can check Ubuntu Software Center, Synaptic or the packages website for the names if more need to be installed.
You might consider adding (wireless) network utilities.
You will quickly run over 800 Mb; if you do you either remove more packages to get under 800 or you need to use a DVD when burning. Removing libre office will free up you 33+ Mb if you do not need it.

To create an AskUbuntu shortcut on the desktop:

mkdir -p /etc/skel/Desktop && printf '[Desktop Entry]\nVersion=1.0\nName=Ask Ubuntu\nComment=Ask Questions About Ubuntu\nGenericName=Question and Answers\nExec=xdg-open http://askubuntu.com\nTerminal=false\nX-MultipleArgs=false\nType=Application\nIcon=firefox\nCategories=Internet;\n' > /etc/skel/Desktop/askubuntu.desktop && chmod a+x /etc/skel/Desktop/askubuntu.desktop

You can add more of these (skip the mkdir part) by editing the URL to something else.
Courtesy of dv3500ea
Changing settings inside gconf-editor.

You can change any gconf option if you know what the path is of that option and the value you want it to be (and the type of the value of course).

Changing the wallpaper is done with the path I pointed arrows to: /desktop/gnome/background/, it is a string value and it uses picture_filename as an option. The value it currently holds on my desktop is /discworld2/Downloads/fantasticwall_2.jpg. The background itself should be copied into /usr/share/backgrounds/. Make sure to set permissions and owner.

Examples:

To change the wallpaper (change the filename in the 1st command to your own image) to this image and to change the theme to Radiance you can use this information to create commands to set this for your live cd:

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --set -t string /desktop/gnome/background/picture_filename  /discworld2/Downloads/fantasticwall_2.jpg

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --set -t string /desktop/gnome/interface/gtk_theme Radiance

Courtesy of dv3500ea
Enable remote desktop:

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --set -t bool /desktop/gnome/remote_access/enabled true

Settings for icons, panels etc are all done by adding a command like this.
Alternatively you can edit /etc/gconf/gconf.xml.defaults/%gconf-tree.xml (or when you are down save this file for future usage). All the configuration settings done through gconftool-2 are stored in this file.

Change the default timezone used by the live cd

dpkg-reconfigure tzdata

Change locale setting to english (of course change it to what you want)

locale-gen en
update-locale LANG=en LANGUAGE=en LC_ALL=en

Configure configuration files.

If you want to have a custom configuration file for a certain package you can do this in several ways.

The difficult (but most logical) way would be to either find the package, change the configuration file and repackage it or to find the source files, figure out where they store their dummy config file and change that and then rebuild the package.

Of course this only works if the default configuration file is included in the source package. Many packages auto-generate their config files in the {packagename}.postinst script so it would make it rather difficult to get this done.

The easiest way would be to create a script and copy your current config to /etc/skel so they get added to your desktop (similar to adding firefox shortcuts as explained above) and after installing click the desktop link to set the config file to the place it needs to be. The script could both do the copying and removal of both the script and config file from your desktop after it succesfully installed. This method can be used to update the Samba configuration (put your current config in /etc/skel/. Put a script in there that has execute permissions and contains a move of said config to /etc/samba/smbd.conf and all you need to do afterwards is execute the script).
This basically always works since it replaces a post-install manual action with a post-install manually activated script. But it also means it is not part of the custom live cd.

3. Cleaning up

apt-get clean
rm -rf /tmp/*
rm -f /etc/hosts /etc/resolv.conf
umount /proc/
umount /sys/
exit

This removes all the temporary files; not what we created. ~/livecd/ is readonly so a normal rm will not remove these files. You need to mount it with write access (or as I did use the new live cd to boot and mount the home and rm it from there.

4. Setting up the ISO

Manifest files.

chmod +w ~/livecd/cd/casper/filesystem.manifest
sudo chroot ~/livecd/custom dpkg-query -W --showformat='${Package} ${Version}\n' > ~/livecd/cd/casper/filesystem.manifest
sudo cp ~/livecd/cd/casper/filesystem.manifest ~/livecd/cd/casper/filesystem.manifest-desktop

Regenerate squashfs file.

sudo mksquashfs ~/livecd/custom ~/livecd/cd/casper/filesystem.squashfs

Update md5 sums.

sudo rm ~/livecd/cd/md5sum.txt
sudo bash -c 'cd ~/livecd/cd && find . -type f -exec md5sum {} +' > md5sum.txt

5. Creating the ISO.

cd ~/livecd/cd
sudo mkisofs -r -V "Ubuntu-Live" -b isolinux/isolinux.bin -c isolinux/boot.cat -cache-inodes -J -l -no-emul-boot -boot-load-size 4 -boot-info-table -o ~/Downloads/ubuntu-11.04-desktop-i386.iso .

6. Unmount & Clean

sudo umount ~/livecd/squashfs/
sudo umount /tmp/livecd
sudo rm -fr ~/livecd/

7. Comments:

Everything was tested with an Ubuntu 11.04 Live CD. Only thing that went wrong was chrooting: I added dchroot to the files you need to install to do this.
Regarding "should create some firefox shortcuts on desktop", "Should change the default theme to radiance" and "Should change the default ubuntu wallpaper". I edited these in after dv3500ea put it into the comments; I did not test this while creating the 11.04 live cd.

Download http://sourceforge.net/projects/uck/files/uck/2.4.6/uck_2.4.6-0ubuntu1_all.deb/download
follow the instructions and when it asks to run package manager, a console application or continue packing, select Console application.

Now you can run

  nautilus

  unity-2d-launcher

  unity-2d-panel

and do everything.

If this doesn't work first try running the package manager, then try again with the console.

Hope this helps.


Unable to connect wifi ubuntu 14.04 LTS HP Pavilion Network driver rtl8723be I have purchased a new HP Pavilion 15-ab030TX, just installed dual boot Ubuntu 14.04 next to Win8. But my wifi has been showing either very weak signal at times or none at all. I tried multiple solutions available on internet but nothing seems to work. Also i hosted connectify on another laptop and started using internet through that it worked for two days but it is also not connecting (probably due to trying some solution from old posts).

You need to install the driver using dkms. If you build it from the lwfinger git, it stops working after kernel upgrades.

I packed the same driver as DKMS and added it to a ppa. Install it this way:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware

and reboot.

Upgrade your Linux Firmware to 1.161 and Kernel version to 4.8.

To update the Linux Firmware , there are two ways :-

    1.  Via Ubuntu Software Center:
           Download this file -

         [\[http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb\]][1][1]
    Then open this Debian Package with Ubuntu Software Center and click    Install

2.Via Terminal :
        Open The Terminal ( ctrl+alt+T)
            Enter :-

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb

        De-package it :-

sudo dpkg -i linux-firmware_1.161_all.deb

Now check your kernel version :-

Type:- uname -r
    Note if its generic or cloud or low latency

Upgrade your kernel to 4.8:

Go to Index of /~kernel-ppa/mainline/v4.8
For 64 bit system look under the amd64, for 32 bit one look under i386
For example, if its amd64 and your kernel is generic download these 3 files:-

     linux-headers-4.8.0-040800_4.8.0-040800.201610022031_all.deb
     linux-headers-4.8.0-040800-generic_4.8.0-040800.201610022031_amd64.deb
     linux-image-4.8.0-040800-generic_4.8.0-040800.201610022031_amd64.deb

Now Open these files one by one in Ubuntu Software Center and install all the three.
Re-boot
Check again for your kernel version Type:- uname -r
It’s 4.8 and your WiFi should be working !!!


How do I automatically restart docky after a crash? docky crashes from time to time for me. How can I make it restart automatically after it crashed?

First off, I'm not using docky. But I'm assuming docky is in your $PATH. If not, then specify the full path to the binary.

Here is the awesome use of Bash:

Start off with a file, such as (vim instead of gedit if you want):

gedit ~/process_monitor.sh
Type the following:

#!/bin/bash

if [[ -z "$1" ]];then
    echo "ERROR: must specify program"
    exit 1
fi

while (( 0 == 0 ));do
    $@ &
    pid=`jobs -l | awk '{print $2}'`
    wait $pid
done

Save the file.
Set the permission:

chmod a+x ~/process_monitor.sh

Now you can run a program like so:

~/process_monitor.sh docky

and it'll launch the program once, and make sure to restart the program if you ever choose to quit it or it chooses to crash.

To add an entry to system startup so it launches the program once you logged in and won't stop until you quit, do this:

Go to Unity Dash, type and look for "Startup Applications"
Click Add
Name: Docky or whatever you like
Command: /bin/bash ~/process_monitor.sh docky
Comment: Whatever you like

Make sure the new entry is checked. Log back out and in and you see docky all the time.

The ./process_monitor.sh works great.

But only if i use Terminal, or yakuake...so i can just open a new shell, when i use "~/process_monitor.sh docky" or "/bin/bash ~/process_monitor.sh docky"

But if I go to the "Startup Applications", click add and follow these instructions nothing happens when my Computer is starting up. I still have to run that command manually.
And it won work, when i put in /home/"username"/process_monitor.sh docky, too.

I found, or created a solution (which hasn't been posted somewhere) to get it autostarted.

Instead of using the ~/process_monitor.sh docky create a new textfile:

gedit ~/start.sh
type following

  #!/bin/bash

  ~/process_monitor.sh docky

  done

Save file
Set permission:

  chmod a+x ~/start.sh

Now you can run the program in your terminal/yakuake or whatever you prefer to use:

  ~/start.sh

and it will start the ~/process_monitor.sh docky. So it'll get startet and restarted if crashes.

You can choose any name you like for "process_monitor.sh" and "start.sh" only .sh is important. But be sure to change it in your textfiles as well.

Now go to your Dash, type in and open "Startup Applications".

Delete othe set Docky Startup settings
Create a new one
Name: Docky or whatever you want to name it
Command: /home/"your username"/start.sh (for me for ex. /home/kevin/startup.sh)
Comment: Whatever you like.
Go to your Docky settings and disable "Start at login"

Now you can restart your Computer and test it.

Videotutorial


Ubuntu 12.04 on ASUS X55C I've bought a new ASUS X55C laptop, with no OS preinstaled (only DOS). I've installed Win7, since I got in box cd with Win7 drivers, and everything works fine.

Now, I want to install Ubuntu 12.04 (dualboot), and I tried it (from CD, without installation). I noticed that my network isn't worknig (wifi, LAN), keyboard commands doesn't work fine, etc...

I googled for ubuntu drivers, but all I've founded is this. My question is this:

Can anyone tell me is Ubuntu going to work fine (network, keyboard,...) when I install it, although it doesn't work on "Try Ubuntu" mode? I wouldn't like to install OS that wouldn't work.

Here is the output of commands you asked for.

ubuntu@ubuntu:~$ lspci -n

00:00.0 0600: 8086:0104 (rev 09)
00:02.0 0300: 8086:0116 (rev 09)
00:14.0 0c03: 8086:1e31 (rev 04)
00:16.0 0780: 8086:1e3a (rev 04)
00:1a.0 0c03: 8086:1e2d (rev 04)
00:1b.0 0403: 8086:1e20 (rev 04)
00:1c.0 0604: 8086:1e10 (rev c4)
00:1c.1 0604: 8086:1e12 (rev c4)
00:1c.3 0604: 8086:1e16 (rev c4)
00:1d.0 0c03: 8086:1e26 (rev 04)
00:1f.0 0601: 8086:1e59 (rev 04)
00:1f.2 0106: 8086:1e03 (rev 04)
00:1f.3 0c05: 8086:1e22 (rev 04)
02:00.0 0280: 1814:3290
02:00.1 0d11: 1814:3298
03:00.0 0200: 1969:1091 (rev 10)

and

ubuntu@ubuntu:~$ sudo lshw -C network

  *-network UNCLAIMED

       description: Network controller
       product: Ralink corp.
       vendor: Ralink corp.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:f7d10000-f7d1ffff

  *-network UNCLAIMED

       description: Ethernet controller
       product: AR8161 Gigabit Ethernet
       vendor: Atheros Communications Inc.
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 10
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix bus_master cap_list
       configuration: latency=0
       resources: memory:f7c00000-f7c3ffff ioport:e000(size=128)

Quick answer (without deeper research): it is highly unlikely that a component that fails in the live system will work in the installed system without extra work. Thats one of the purposes for Ubuntu Live CDs.

I bought the same and tried Ubuntu 12.04. Which is good choice to work.  But sometimes WiFi will not functioning. It showed me like disabled.

So I just fold the laptop, it will be in the standby or sleep mode. Then I will reopen it. Then the Wi-Fi will connected automatically.


Authentication failed with the correct password and now I cannot use sudo anymore Recently I installed Ubuntu 12.04 (first time on Ubuntu).

I have my normal "administrator", and another Guest account.

I was experimenting today with the user accounts, and set my "administrator" account to "standard" in user account settings.

Now whenever something asks me for authentication, it gives me failed message.

I am using the same old password, didn't create new accounts, just changed privileges.
I'm sure that the password is correct, because I can still log in.

I tried logging in to root from Terminal, but it gave me that I'm not one of the sudoers.

The sudoers file works normally via group membership of a user.

As default, you have the following configuration in ubuntu:

 # Members of the sudo group may gain root privileges
 %sudo ALL=(ALL) ALL

As I understand your description, you have dropped the group membership for the sudo group.

Hopefully you have left over another account which is member in the sudo group.
If this is true, you can use the following command to fix your user:

 sudo usermod -a -G sudo  USERNAME

If you have given your root user an explicit password (non standard in ubuntu), you can also invoke:

 su -c usermod -a -G sudo  USERNAME

If both isn't possible, you may do the following:

boot your computer with a live/rescue cd (see also https://wiki.ubuntu.com/RecoveryMode)
mount your root partition (aka /) to e.g. /mnt
chroot /mnt usermod -a -G sudo USERNAME

You do not have a root password. Open a terminal and type sudo passwd root then hit the enter and set the password.


Can't fix broken packages I am too dumb but determined to use Ubuntu that I paid a professional to install it for me (dualboot 11.10 with Win7). When I came home I got a lot of things from the software center. Skype did not have a download button so I googled it and Ubuntu help told me to do this:

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

and then this:

sudo apt-get update && sudo apt-get install skype

The terminal told me "that this is potentially harmful..." but I thought it was Ubuntu language meaning "are you sure?"

Now the computer is mute.

Items cannot be installed or removed until the package catalog is repaired, so I want to repair it but the package operation fails.

"sudo aptitude -f install" -> command not found

Synaptic package manager tells me that I have two broken packages, libc6 and libc6-dev

so I do this:

 sudo apt-get update && sudo apt-get upgrade

which tells me to do this:

 sudo apt-get -f install

that ends up like this:

Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.

Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.

Preconfiguring packages ...

dpkg: warning: 'ldconfig' not found in PATH or not executable.

dpkg: error: 1 expected program not found in PATH or not executable.

Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

E: Sub-process /usr/bin/dpkg returned an error code (2)

When fixing broken packages in synaptic package manager I get this:

Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: error: 1 expected program not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install.  Trying to recover:
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: error: 1 expected program not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

I want to become a linux geek but it is harder than I thought. Please help!

Your installation seems trashed and broken

Your best bet now is to completely wipe out and reinstall your system, after booting from a live CD and backing up your files.

try apt-get update
and then apt-get upgrade, this worked for me many times when i got this problem


Unable to resolve dh-modaliases I installed Ubuntu 13.10. I have issue that my GUI is really slow. So I'm trying to install new drivers to ATI Radeon HD 6310. I downloaded driver and trying to compile it

sudo sh amd*.run --buildpkg Ubuntu/saucy

it starts all process, but after few seconds I'm getting

Unable to resolve  dh-modaliases.  Please manually install and try again.

I google it but I couldn't find anything what could tell me where I could find this package.

I was able to install dh-modaliases with:

sudo apt-get install dh-mod*


Can't open file '/var/www/svn/repos/db/txn-current-lock': Permission denied on RapidSVN I tried to commit my modified file on SVN (RapidSVN). I got the following error:

Error while performing action: Commit failed (details follow):
Can't open file '/var/www/svn/repos/db/txn-current-lock': Permission denied

Can anyone help in solving this? Any suggestions are appreciated.

I dont think you have this file /var/www/svn/repos/db/txn-current-lock on your machine. Have you checked whether it exists on your system or not. How can you give permission on files which does not belong to your system.

It might be issue which server admin should take care of.He should give proper permission to files.Ask them.

Check this http://www.jamison.org/2011/09/13/fixing-the-svn-txn-current-lock-permission-denied-error-in-subversion/

You need to run the command(s) as root.

Open the terminal
Run the following command:

  sudo su

3 . Then run the commands you want.

The following commands that you execute will get run as root, and hopefully you will get permission access the '/var/www/svn/repos/db/txn-current-lock' file.


Wine won't install via Terminal Whenever I try to install wine this is what I get:

galien1@galien1-desktop:~$ sudo apt-get install wine
[sudo] password for galien1:(Password)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wine is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'wine' has no installation candidate
galien1@galien1-desktop:~$

I don't know how to get wine!?!?!?!

if you want to add the winehq repository follow there directions.
first we need multi-arch support for 32 bit wine prefixes.

sudo dpkg --add-architecture i386

then add their repository:

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

Update you package list:

sudo apt-get update

Now you are ready to install.
I recommend a GUI package installer like aptitude or the software center since there are many versions of wine that can be installed (including testing and development stages).

To get the latest stable release, run:

sudo apt-get install wine-stable

See: Installing WineHQ packages.


Why is the 11.10 ISO so much larger than the 11.04 one? Wanted to download Ubuntu and I just saw that ubuntu-11.04-dvd-amd64.iso is 4GB while the ubuntu-11.10-dvd-amd64.iso is only 1.5GB.

Why the difference in size? Is there something missing form 11.10?

If yes, what's the release number with "the most complete set of applications"?

According to the answer to this question, 11.10 has extra packages on the DVD versions. 11.04 and earlier had additional language packs with a few extra software in the DVD versions.

Look at the file size differences at the Ubuntu Releases page gives information that

11.04 Natty is 4 GB
11.10 Oneiric is 1.5 GB
12.04 Precise Beta 1 is 1.5 GB

You can view the extra packages by viewing the seed files of the DVD versions of Natty, Oneiric and Precise to see and make a better decision of which would suit you best.

11.04 Natty DVD seed file
11.10 Oneiric DVD seed file
12.04 Precise Beta 1 Seed file

Just remember, not everything bigger is better ;)

A lot was changed from 11.04 to 11.10. The biggest change was that classic Gnome was removed as a fallback option to Unity. Also, PiTiVi was removed as a video editor and not replaced. Thunderbird was put in place of Evolution.

Of course, these were only removed from the default disk, not from the repositories, so "the most complete set of applications" doesn't really make sense as a question.

For example, if you got an 11.04 Ubuntu disk, you'd get a copy of PiTiVi with it. But then there would be updates to get it to the latest version which you'd want to download. You might as well have got 11.10, and done "apt-get install pitivi" to start with!


Can I move the password field to the center of the login screen? I am using Ubuntu 11.10 ( I reverted back from 12.04 to 11.10 because of stability issues). I would like to know is it possible to change the location of the password field in the login screen ?

Options for 11.10

The layout of the login screen is controlled by the greeter package (plugin) for LightDM; the default with the left-side layout is unity-greeter. There's no way to modify unity-greeter to do what you want short of changing the source code, but it's easy to get centered layout with these alternative greeters if you don't mind the slightly simple design:

1. Use the gtk-greeter:

sudo apt-get install lightdm-gtk-greeter

open /etc/lightdm/lightdm.conf and change the greeter-session=unity-greeter to:

greeter-session=lightdm-gtk-greeter
save, exit, and either reboot or switch to the console (Ctrl-Alt-F1) and run sudo service lightdm restart
11.10 has a qt-greeter (for Kubuntu) and themes for Mythbuntu, but they didn't work for me on regular Ubuntu

2. Switch to GDM for a similar layout to (1):

sudo apt-get install gdm

switch to GDM when you are prompted (see this answer for more details or a GUI way to install GDM)

http://ubuntuforums.org/showthread.php?p=9068333#post9068333

Best tutorial I can find, but so far it has only been tested for Karmic.


Wrong available space on usb So I'm trying to get my FAT 128gb usb drive to have execute permissions so I can add a steam library in ubuntu 14.04 crouton on my chromebook. I used this:

sudo umount /dev/sdb1
mkdir -p ~/usbdrive
echo '/dev/sdb1 /home/user/usbdrive vfat rw,exec,uid=1000,gid=1000,umask=022 0 0' | sudo tee -a /etc/fstab

I get a usbdrive entry with execute permission but it says it only has 5gb available which is whats left on the internal ssd. How do I fix it so it sees the whole 128gb? Would installing the whole crouton to the usb fix it?

Heres the output you asked for:

Model: SanDisk Ultra Fit (scsi)
Disk /dev/sda: 124GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
 1      16.4kB  124GB  124GB  primary

Model: Linux device-mapper (crypt) (dm)
Disk /dev/mapper/encstateful: 3297MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  3297MB  3297MB  ext4

Error: /dev/mmcblk0boot0: unrecognised disk label

Error: /dev/mmcblk0boot1: unrecognised disk label

Model: MMC SEM16G (sd/mmc)
Disk /dev/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name        Flags
11      32.8kB  8421kB  8389kB               RWFW
 6      8421kB  8422kB  512B                 KERN-C
 7      8422kB  8422kB  512B                 ROOT-C
 9      8422kB  8423kB  512B                 reserved
10      8423kB  8423kB  512B                 reserved
 2      10.5MB  27.3MB  16.8MB               KERN-A
 4      27.3MB  44.0MB  16.8MB               KERN-B
 8      44.0MB  60.8MB  16.8MB  ext4         OEM         msftdata
12      128MB   145MB   16.8MB  fat16        EFI-SYSTEM  boot
 5      145MB   2292MB  2147MB  ext2         ROOT-B
 3      2292MB  4440MB  2147MB  ext2         ROOT-A
 1      4440MB  15.7GB  11.3GB  ext4         STATE       msftdata

Just go get format your USB flash with any other file system instead of FAT.


Mobile Phone tethering in Ubuntu 14.04 I have a Nokia C3-01.5 mobile phone I use it to get access to the internet on occasions from my laptop. I recently changed from Windows XP to Ubuntu 12.10. Tethering worked fine with blue tooth but I couldn't get my wireless to work. I changed to version 13.10 and I could then get my wireless to work but not tethering. I have now installed and updated version 14.04. My wireless works but I still can not get tethering to work either via blue tooth or USB Cable. After pairing the phone I select the "Access the Internet using your mobile phone (DUN) option but get an error message "Error timed out detecting phone details."
Can someone please tell me how I can get DUN through my phone in Ubuntu 14.04? I looked at some answers to similar problems when I had Version 13.10 installed and one suggested installing Modemanager but all this did was to stop my wireless working.

I was able to get bluetooth tethering working in 14.04 with my lg phone. AT&T would not authorize my phone to do this without upgrading to a 5gb+ plan.

I installed https://play.google.com/store/apps/details?id=jp.co.nicumaru.bluetoothtetheronoff
and this seems to flip the switch allowing me to tether that AT&T and/or LG was blocking.


Can't run shellscript with sudo When I try to run my script like this:

sudo ./connector.sh

It give me this:

sudo: ./connector.sh: command not found

What am I doing wrong?

Either add a shebang at the first line of your script:

#!/bin/bash
echo "Hallo"

And/or set the executable rights

sudo chmod +x connector.sh

no no no.. your problem here is that when you sudo, your current directory is not fully realized. you just have to call your script by the full path, like this(assuming your script is in /tmp)
sudo /tmp/connector.sh


How to Unlock Maxtor Blackarmor Portable hard drive disk I have a Maxtor portable Hard drive Disk.  I can't unlock it. It has a launcher.exe file . Is there any unlock utility ?

plug the hard drive in a usb port.  then click on open to view files.  a window will open and you will see the word  launcher click on the icon and that will take you to the unlock screen where you will type in your password. then click on unlock at the lower corner of the screen


DropDown Menu from Panel on Mouse Hover I was wondering if there is any way to make the Global Menu   (File, Edit.......Messages etc)   Drop Down Automatically when I Hover my Mouse Pointer above it instead of Clicking them???  Im using Ubuntu 11.10 Unity Desktop.

You can install xdotool and create a script to put at "Startup Applications" like this:

#!/bin/bash
#
# version 0.06 by desgua
#
# To click at global menu
#
############################################################
h=
d=

function hittop {

eval $(xdotool getmouselocation --shell)

if [ "$Y" -lt "24" ] ; then
h=1
d=0
fi
}

while :
do

if [ "$h" = "1" ] ; then
xdotool click 1
sleep .1
h=0
fi

eval $(xdotool getmouselocation --shell)
if [ "$Y" -gt "24" ] ; then
d=1
fi

if [ "$d" = "1" ] ; then
hittop
fi

########################
# Uncomment the following line if your cpu gets hot...
# sleep .2
########################
done

exit 0

Step by step instructions:

1) Press Alt + F2 and paste gedit ~/.click.global.menu then hit Enter - this will open a blank file.

2) Paste the previous script at the blank file and save.

3) Press Alt + F2 and paste gnome-terminal - this will open a terminal.

4) At terminal paste chmod +x ~/.click.global.menu

5) Press Alt + F2 and paste gnome-session-properties - this will open the Startup Applications.

6) At Startup Applications hit "Add".

7) At dialog paste Global Menu at "Name:" and ~/.click.global.menu at "Command:" as showed in this picture:

8) Install xdotool (just click at the link and hit "Install")

9) Logout and Log back in.

10) Have fun ;-)

Automated way

1) Just open a terminal and paste this:

sudo apt-get install xdotool && cd ~/ && wget -c http://dl.dropbox.com/u/4098082/click.global.menu && chmod +x ~/click.global.menu && ~/click.global.menu

This is a small answer but it could solve that lazy issue of yours :P Go to System>Preferences>Mouse -- now go to the accessibility tab and check the box "initiate click when stopping pointer movement". This will enable click when not moving your mouse.


Kdenlive: GUI Issues I use Ubuntu 16.04 LTS and I am having issues. I am trying to apply a dark theme to Kdenlive, and it's not working. Using the Qt5 Settings tool makes some things dark and some things not dark, and it looks messy. Can anyone get me going in the right direction to correctly apply a dark theme to Kdenlive? Thanks!

Do you use kdenlive from default ubuntu, or from PPA

The best is that you use the PPA of themselves:

https://kdenlive.org/download/

The solution found in this thread on the KDE forums worked for me:

sudo apt install plasma-workspace
sudo apt install plasma-desktop

Try running the two above commands in a terminal to full re-install the Plasma dependency tree.


Failed to download repository information (Software Updater) When I'm trying to update my system (Linux Ubuntu 16.04 LTS) through Software Updater, I receive the following error message:

Failed to download repository information

Check your Internet connection.

First I thought it might be the server where it's trying to download the repositories, so I went to Software Updater -> Settings -> Ubuntu Software and changed the Download from selection from Server for United States to Other -> Select Best Server. As a result, my new server is http://www.nic.funet.fi/pub/mirrors/archive.ubuntu.com

When returning to the main window, I receive a following notification:

The information about available software is out-of-date

To install software and updates from newly added or changed sources,
you have to reload the information about available software.

You need a working Internet connection to continue.

Now, after clicking the button Reload, Software Updater starts to update the cache. However, this results into a failure with the following error message:

Failed to download repository information

Check your Internet connection.

Details

W:Target Packages (Packages) is configured multiple times in
/etc/apt/sources.list:53 and /etc/apt/sources.list:54, W:Target
Translations (en) is configured multiple times in
/etc/apt/sources.list:53 and /etc/apt/sources.list:54, W:The
repository 'http://ppa.launchpad.net/landronimirc/clamtk/ubuntu xenial
Release' does not have a Release file., W:Data from such a repository
can't be authenticated and is therefore potentially dangerous to use.,
W:See apt-secure(8) manpage for repository creation and user
configuration details., E:Failed to fetch
http://ppa.launchpad.net/landronimirc/clamtk/ubuntu/dists/xenial/main/bina
ry-amd64/Packages  404  Not Found, E:Some index files failed to
download. They have been ignored, or old ones used instead.

So, it seems I am unable to update my system at the moment. Does any of the good people here on the forum know how to fix the problem?

Thanks in advance! :-)

The solution is very simple.

First, you have two problems.

The errors:

W:Target Packages (Packages) is configured multiple times in
/etc/apt/sources.list:53 and /etc/apt/sources.list:54

W:Target Translations (en) is configured multiple times in
/etc/apt/sources.list:53 and /etc/apt/sources.list:54,

are because you have some duplicated information in the file /etc/apt/sources.list. In terminal, type cd /etc/apt, then gksudo gedit /etc/apt/sources.list. Review lines 53 and 54, and remove the duplication and save the file.

The error:

W:The repository http://ppa.launchpad.net/landronimirc/clamtk/ubuntu xenial

is because you've got the wrong Ubuntu version for this particular PPA. Change xenial to saucy. The incorrect entry will either be in the file /etc/apt/sources.list, or /etc/apt/sources.list.d/landronimirc-clamtk-quantal.list (quantal may be something else).

Ask if you need more help. Cheers, Al

Well I recommend to follow the steps below in your terminal.

Become privileged user.

sudo -i

Take a backup of your current source list.

mv /etc/apt/sources.list /etc/apt/sources.list.backup

Clean your system package cache.

sudo apt-get clean; apt-get autoclean

Add new source list Igenerated for you with United States mirror.

curl https://repogen.simplylinux.ch/txt/xenial/sources_e3432824238c837b112c3056e4e4e4c5e16313a2.txt | sudo tee /etc/apt/sources.list

Add the GPG key.

curl https://repogen.simplylinux.ch/txt/xenial/gpg_e3432824238c837b112c3056e4e4e4c5e16313a2.txt | sudo tee /etc/apt/gpg_keys.txt

Now update.

sudo apt-get update

That's it. Now try your Software Center / Updater.


How to set PcManFm as the default file manager in 16.04? Nautilus make my pc so slow, it keeps using more than 300MiB memory even after i close all folders... i installed PCMan file manager from software center and i like it.

but how can i set it as the default file manager in 16.04?

also exo-preferred-applications didn't work.

I SOLVED USING THIS COMMAND:

xdg-mime default pcmanfm.desktop inode/directory application/x-gnome-saved-search

and then edited /etc/mime.types and carefully review if nothing is left of nautilus. If it is, replaced it by pcmanfm.

source

Go to settings manager.
Go to preferred applications folder/utilities tab.
Click on file manager.
Choose your file manager from the drop down menu.

This always works for me.


Write permissions in /var/www folder I followed the steps from https://askubuntu.com/a/51337/115811 to add my user to a www-data group and set the /var/www/ dir group writeable.

sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www

This is /var/www/ contents:

drwxrwsr-x  2 www-data www-data 4096 Oct 25 08:13 ./
drwxr-xr-x 14 root     root     4096 Oct 17 08:47 ../
-rwxrwsr-x  1 www-data www-data  177 Oct 17 23:51 index.html*

However when I try to git clone or mkdir in /var/www/, I am still getting "Permission denied". What am I missing?

this line sudo chown -R www-data:www-data /var/www made the directory to user www-data so other user can't write, why not try something like chown -R :www-data /var/www

sudo chmod 777 -R /var/www/

I think the above will solve your problem chmod 755 did not solve my problem.


Wired Ethernet not working Ubuntu 18.04 Upon bootup the network connection appears to be connected, for several reboots, I was shortly able to ping 8.8.8.8. However, I'm not longer able to do this. Then after logging in (<30 seconds) the network manager says the cable is disconnected. Unplugging and re-plugging the cable does not change this status.

The wireless connection is working.

I have previously used the wired connection in older versions of ubuntu (16.10 & 16.04) on this laptop, although I haven't tested them recently.

The network cable works with other computers.

The NIC device is a BCM5762.

Here is the output of ifconfig

    enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 40:b0:34:09:9a:c0  txqueuelen 1000  (Ethernet)
        RX packets 91  bytes 54152 (54.1 KB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 146  bytes 32104 (32.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 294  bytes 23870 (23.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 294  bytes 23870 (23.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.87.252.202  netmask 255.255.0.0  broadcast 10.87.255.255
        inet6 fe80::3260:ab36:9b89:9e58  prefixlen 64  scopeid 0x20<link>
        ether 7c:b0:c2:4e:13:d0  txqueuelen 1000  (Ethernet)
        RX packets 1247  bytes 1208923 (1.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 881  bytes 160559 (160.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Here is the output of lshw -C network

  *-network
       description: Ethernet interface
       product: NetXtreme BCM5762 Gigabit Ethernet PCIe
       vendor: Broadcom Limited
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: 10
       serial: 40:b0:34:09:9a:c0
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=sb latency=0 link=no multicast=yes port=twisted pair
       resources: irq:36 memory:e0820000-e082ffff memory:e0810000-e081ffff memory:e0800000-e080ffff
  *-network
       description: Wireless interface
       product: Wireless 7265
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 59
       serial: 7c:b0:c2:4e:13:d0
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-23-generic firmware=29.1044073957.0 ip=10.87.252.202 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:47 memory:e0d00000-e0d01fff

I had my network card get disabled after this morning's Ubuntu update.  Rebooting the machine in Win10 the network card still works, so it's an Ubuntu configuration.

The way I solved it was the following:

sudo lshw -C network

This listed the "logical name" values:

logical name: enp8s0
logical name: docker0
logical name: enp0s29f7u7c4i2

I have a Dell T7400, so I know the device is a Broadcom NetXtreme BCM5754.  Dell support provides no Ubuntu drivers, but you don't really need one.  Somehow my ethernet device name was renamed.

sudo vi /etc/network/interfaces

Add the logical name to the end of the file:

auto enp8s0
iface enp8s0 inet dhcp

Finally, turn the interface on:

sudo ifup enp8s0

Had the same problem try:

sudo apt install ifplugd

then

reboot

Fixed it for me.


Where do I get a package for GNU Parallel? I want to install GNU Parallel in Ubuntu but I can't find a package for it in the default Ubuntu repos. Where can I get it?

In 13.04, you can install with apt-get:

sudo apt-get install parallel
sudo rm /etc/parallel/config

The second line is necessary because GNU parallel is installed in --tollef mode (if anyone can provide a rationale for this, I'd like to know).

In 14.04, the config file is apparently no longer included, since the --tollef option was removed from the GNU parallel source entirely: http://lists.gnu.org/archive/html/parallel/2013-02/msg00018.html

You can install latest version using LinuxBrew:

brew install parallel

As of today, current Version installed is 20150922.
You can check it's Formula.


Upgrade Version of Apt manually? I'm in a situation where I want to use a feature introduced to apt in version 1.1. I'm on an older version of Ubuntu 14.04 on an ARM device.

Even when I use apt-get upgrade I can't get the latest version of apt.

Would it be safe to upgrade the apt program manually? If so how would I go about doing it?

The safest way is to see if it has been backported
enable the backport repositories.

Next option is to download it from the repository that has it.
Provided it doesn't create a dependency mess it should run fine.

though, updated software often requires updated dependencies


How do I format a TrueCrypt-encrypted flashdrive? I encrypted a flashdrive using TrueCrypt, but now I've changed my mind and I want to format it as an unencrypted drive. When I plug it in it is no longer appears on the launcher or in the Nautilus sidebar (until I mount it as an encrypted drive via TrueCrypt, which appears in the Nautilus sidebar, but even then the flash drive itself is not recognised).

How can I access/mount it in order to format it?

Using Disk Utility or Gparted, delete the partition and create a new one, format it to your choice of filesystem.  Disk Utility may have a problem deleting partitions it doesn't understand which may include an encrypted partition.  If Gparted also has this problem, open a terminal window and use the following command:

sudo dd if=/dev/zero of=/dev/sdX bs=512 count=1

Where /dev/sdX is the device name of the USB drive.  Make sure you have the right device because there will be nothing left on the target device after you press enter. It deletes the partition table entirely.

You can then re-commission the USB device by using Gparted to create a new partition table then create the primary partition and format it as before.

One does not need to "access" or unencrypt the drive just to format it. By your question, I'm assuming you needed to pull some stored data off the flashdrive before reformatting it and this is why you ended your question asking for how to access the drive. With the drive still encrypted, you can reformat it. But you will lose any stored data present on the encrypted drive. To reformat the flashdrive without gaining access to it first, you should plug in the flashdrive and then open the "Disk Utility" program that you can find via Dash. In Disk Utility, the flashdrive's drive will appear as a "Peripheral Device" in the left column of Disk Utility. Locate your flashdrive and select it: all the format/partition options available will be presented in the main body of the program.

To pull stored data off the drive before reformatting you will need to access/mount the drive before you reformat. You can access/mount the drive by doing the following:
1) Plug in your encrypted USB flashdrive.
2) Start the TrueCrypt program > click on the "Select Device" button and in the window that opens select the drive that matches your flashdrive (match it by size, etc.) and then click OK.
3) Click the "Mount" button > input your password.
The encrypted material should now show up as an entry in your Places column in Nautilus.


How to install openjdk-7-jdk on Ubuntu 12.04 without dragging in unrelated GUI and sound packages? Ubuntu 12.04.2 LTS

What's going on here?

# apt-get install openjdk-7-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  consolekit cryptsetup-bin dbus-x11 dconf-gsettings-backend dconf-service
  gconf-service gconf-service-backend gconf2 gconf2-common gvfs gvfs-common
  gvfs-daemons gvfs-libs libatasmart4 libavahi-glib1 libbonobo2-0
  libbonobo2-common libcairo-gobject2 libcanberra0 libck-connector0
  libcryptsetup4 libdconf0 libfontenc1 libgconf-2-4 libgconf2-4 libgdu0
  libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnome-keyring-common
  libgnome-keyring0 libgnome2-0 libgnome2-bin libgnome2-common libgnomevfs2-0
  libgnomevfs2-common libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0
  libidl-common libidl0 libllvm3.0 libltdl7 liblvm2app2.2 liborbit2
  libpam-ck-connector libpolkit-agent-1-0 libpolkit-backend-1-0 libsgutils2-2
  libtdb1 libvorbisfile3 libx11-xcb1 libxaw7 libxcb-glx0 libxcb-shape0 libxmu6
  libxpm4 libxv1 libxxf86dga1 libxxf86vm1 mtools openjdk-7-jre policykit-1
  policykit-1-gnome sound-theme-freedesktop udisks x11-utils

Is it possible to install the JDK without half of Gnome and X11? And sound themes? This is a headless (and speakerless) server.

UPDATED

I personally try to avoid Java because in my opinion it is very clumsy.
These instructions are pieced together from various sources,
I had to install Java recently and this should work for you.

If your licensing requirements permit, install Oracle Java.
Download java from here, you need to chose which one you need based on what you have installed.

JDK x64

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz

JDK x32

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.tar.gz

JRE x64

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-x64.tar.gz

JRE x32

wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-i586.tar.gz

Note that you need a workaround for wget and oracle to play nice together.

Create a directory where your Java will live:

sudo mkdir -p /usr/lib/jvm

Move the downloaded Java:

sudo mv jdk-7u51-linux-x64.tar.gz /usr/lib/jvm

Extract Java:

sudo tar zxvf jdk-7u51-linux-x64.tar.gz

Tell Ubuntu that Java exists:

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_51/bin/javac 1
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_51/bin/java 1
sudo update-alternatives --set javac /usr/lib/jvm/jdk1.7.0_51/bin/javac
sudo update-alternatives --set java /usr/lib/jvm/jdk1.7.0_51/bin/java

Add java path to your system profile, so that the machine knows where the Java binaries are:

sudo nano /etc/profile

At the end of the file add this:

JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME
export PATH

Save and reboot.

Test your Java installation:

java -version

I think this is not a good idea to skip any dependency when installing from source. You can't skip this all time. When you update dependency using apt-get it will be check there also.


How do I load the synaptics driver on 12.04? (Scrolling does not work) I have installed Ubuntu 12.04 on my new Lenovo z580 laptop. The touchpad maker is Synaptics. However Ubuntu is unable to load the Synaptics driver, although the driver has been installed. Due to this, I am unable to use scrolling on my touchpad. The command

  synclient -l

returns:

  Couldn't find synaptics properties. No synaptics driver loaded?

Please help.

IT IS SCARY YET EASY TO DO, DON'T BE SCARED MY CHILD

try this if neither of the previous ideas of this thread worked:In a terminal enter : xinput
you should get something looking like this :

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=14   [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Wireless Mouse          id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ USB Camera                                id=11   [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=12   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]

Even though it is scary, it is actually very easy to understand; now locate your touchpad, mine here is called is called "ETPS/2 Elantech Touchpad" (on the third line).
now, once you've done this enter :  xinput --list-props "whatever your touchpad is called"  for instance mine would be  nathan@linux-engine:~$ xinput --list-props "ETPS/2 Elantech Touchpad"
Once you've done this, Lotta lines should appear, for me it is :

Device 'ETPS/2 Elantech Touchpad':
    Device Enabled (135):   1
    Coordinate Transformation Matrix (137): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (263): 1
    Device Accel Constant Deceleration (264):   2.500000
    Device Accel Adaptive Deceleration (265):   1.000000
    Device Accel Velocity Scaling (266):    12.500000
    Synaptics Edges (288):  123, 2974, 114, 2005
    Synaptics Finger (289): 1, 1, 0
    Synaptics Tap Time (290):   180
    Synaptics Tap Move (291):   165
    Synaptics Tap Durations (292):  180, 180, 100
    Synaptics ClickPad (293):   1
    Synaptics Middle Button Timeout (294):  0
    Synaptics Two-Finger Pressure (295):    282
    Synaptics Two-Finger Width (296):   7
    Synaptics Scrolling Distance (297): 75, 75
    Synaptics Edge Scrolling (298): 0, 0, 0
    Synaptics Two-Finger Scrolling (299):   1, 1
    Synaptics Move Speed (300): 1.000000, 1.750000, 0.053305, 0.000000
    Synaptics Off (301):    0
    Synaptics Locked Drags (302):   0
    Synaptics Locked Drags Timeout (303):   5000
    Synaptics Tap Action (304): 2, 3, 0, 0, 1, 3, 0
    Synaptics Click Action (305):   1, 3, 0
    Synaptics Circular Scrolling (306): 0
    Synaptics Circular Scrolling Distance (307):    0.100000
    Synaptics Circular Scrolling Trigger (308): 0
    Synaptics Circular Pad (309):   0
    Synaptics Palm Detection (310): 0
    Synaptics Palm Dimensions (311):    10, 200
    Synaptics Coasting Speed (312): 20.000000, 50.000000
    Synaptics Pressure Motion (313):    30, 160
    Synaptics Pressure Motion Factor (314): 1.000000, 1.000000
    Synaptics Resolution Detect (315):  1
    Synaptics Grab Event Device (316):  1
    Synaptics Gestures (317):   1
    Synaptics Capabilities (318):   1, 0, 0, 1, 1, 1, 1
    Synaptics Pad Resolution (319): 32, 31
    Synaptics Area (320):   0, 0, 0, 0
    Synaptics Soft Button Areas (321):  1548, 0, 1737, 0, 0, 0, 0, 0
    Synaptics Noise Cancellation (322): 18, 18
    Device Product ID (255):    2, 14
    Device Node (256):  "/dev/input/event5"

But it is alwright! If you look carefully you should be able to find the a line saying "two fingers scrolling". for instance, mine is at Synaptics Two finger scrolling (299). If the values in that line are something else than 1, 1 then BINGO here are the problem ! just type : xinput --set-prop "touchpad name" "scrolling option" 1 1mine isnathan@linux-engine:~$ xinput --set-prop "ETPS/2 Elantech Touchpad" "Synaptics Two-Finger Scrolling" 1 1. it should be working now :)  You'll have to this everytime you restart your computer though !
Now it is time to automatized that everytime you wake up your computer :  In your home folder (or wherever you want) make a file named as you wish. it should contain

#! bash
xinput (the command) ...

Then in the search for an application name startup applications and press "ADD". Name it as you wish and write in the command Field bash /your/file/path.     example. It is done, forever :D !!!

Do it in terminal:

open terminal by pressing Ctrl + Alt + t
su (Administrator)
Password
sudo apt-get update
sudo apt-get install synaptic
continue as your knowledge


How can I move Chrome's buttons to the right in Gnome3's Shell I switched from Unity to Gnome Shell in Ubuntu. Now Chrome has the buttons on the left side, but I want them on the right. How can I fix this without switching to the system titlebar?

I also tried gconf-editor and modifying apps>metacity>general>button_layout, but that doesn't make any difference.

Won't let me add a comment to the chosen answer

if you use

gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize,maximize,close"

You'll keep all the buttons

Works only for all metacity windows, but not for the integrated in new Chrome buttons...
To make it work, just need to check the option to see title bar in the browser's settings..


How do I get the IP address of an LXC container for automation? How can I get the IP address of an LXC container in a format I can use in scripting?

Right now, the command lxc info <container> report that information, but in a human readable format, with a lot of information.

I would like to ONLY to GET the IP address given a container name.

Note: I HAVE to duplicate this question because Linux Containers have changed a lot.

Installing lxd and using unprivileged containers is the default way to go this days (2017) and I think the solutions posted on the original question are do not resolve the issue in this case.

In any case, I installed the package lxc1 to get access to the command lxc-info, but that command doesn't recognize any of my unprivileged containers.

A native solution (which isn't any prettier than @siloko's answer) would be

lxc list "<name>" -c 4 | awk '!/IPV4/{ if ( $2 != "" ) print $2}'

There are alternatives to awk, but that's tangential to the question.

lxc-info --name container --ips --no-humanize

prints the container IP addresses.

The returned value is a list because a container can have more than one address.


pulse audio equaliser not working in ubuntu 18.04 I recently installed ubuntu 18.04 LTS ,and my laptop is dell vostro 14 3468. But since i updated to 18.04 i can't really use pulse audio equaliser. When i start pulse audio in terminal it says

E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

And also my touch pad now sucks, it jumb over frequently, that is annoying.
why is ubuntu 18.04 like this.
please help.

None of the above solutions worked for me, so here is what I found helpful in my case:

cleanup the previous mess:

sudo apt purge pulseaudio-equalizer
sudo add-apt-repository --remove ppa:nilarimogard/webupd8

Install the pulseeffects (equalizer included):

sudo add-apt-repository ppa:mikhailnov/pulseeffects -y
sudo apt update
sudo apt install pulseeffects

Pulseeffects comes with equalizer so there is no need to install the equalizer separately. The above solution works perfectly in case of Ubuntu 18.04 and I found it here https://github.com/wwmm/pulseeffects/wiki/Package-Repositories

You can install from Webupd8 PPA repo with following commands for Ubuntu 18.04 based distros. Pref file for priority of PPA's package.

First remove main repo's package.

sudo apt purge pulseaudio-equalizer

After install from PPA

sudo add-apt-repository ppa:nilarimogard/webupd8

echo -e 'Package: pulseaudio-equalizer\nPin: release o=LP-PPA-nilarimogard-webupd8\nPin-Priority: 700' | sudo tee /etc/apt/preferences.d/webupd8.pref

sudo apt-get update

sudo apt-get install pulseaudio-equalizer


How can I configure the launcher in Unity 2D? Possible Duplicate:
  How do I configure Unity 2D?

Is it possible to resize the Unity 2D launcher?

Is it possible to change the reveal mode from the left edge with delay to the top left corner without delay?

There is a proposal to merge that will allow resizing of the unity-2d launcher, Atm still 'needs review' due to some concerns.

Hopefully it will get squared away, merged & released. As it is now would be done thru dconf-editor or gsettings. (though if not, it or some variation of, could end up in a ppa at some point

I've found it works well & because I would be using it none of the concerns  matter here. It's caused no issue in use

https://code.launchpad.net/~thiago-nsantos/unity-2d/launcher-width/+merge/79974

Do you mean this?

http://www.omgubuntu.co.uk/2011/04/video-how-to-change-the-size-of-the-unity-launcher-in-ubuntu-11-04/


Netflix just stopped to work on LInux32+firefox I have been using Netflix on 2 computers for weeks, both with Ubuntu 16, one is a 32 bits computer and the other is a 64 bits. I made them work reading this post: Now that I have Firefox 49 or higher, how do I watch Netflix? and they worked fine but, two weeks ago the trick stopped working on the 32 bits machine (It's still working on my laptop, the 64 bit machine) and I can't understand why. It start to load the video and the message: https://help.netflix.com/es-es/node/23742 does not appear, instead of that, I get the error-code: M7363-1260 which can mean:

(I cant post more than 2 links but googling this error there are three or four branch of it that say maybe something is outdated on my browser (maybe widevine) But I've been trying to update it and I thing it is updated...

Somebody have this problem??

There are more alternatives that work appropriately? I've been trying to install google chrome with wine without exit and to made chromium able to reproduce netflix video with pipelight but same)

I would thanks all kind of help!

Netflix should work fine in Firefox if you're using one of their newer versions which supports CDM (a solution for playing DRM-media through HTML5). (Firefox introducing this made rather big fuzz actually - read here or here for more information and tips).

It hard to say why it's not working in your case. Widevine and Adobe Primetime should download automaticly by Firefox I think. You could start by verifying that both Google Widevine and Adobe Primetime is set to "Always Activate":

Then check that Firefox is set to play DRM content:

Also delete all your cookies and set Firefox to remember history:

If this doesn't work try to re-install firefox (sudo apt-get install --reinstall firefox I guess).

Best of luck!

UPDATE: Netflix now supports Firefox on Linux as well. No user-agent spoofing needed.

As described in this comment on the bug report here,
you may have to change your user agent to

  Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36

...and Netflix will work again.

I'm using User-Agent Switcher extension here. The original string mentioned Chrome/40, I think.

Remember it's not a bug in Firefox. It's just that Netflix doesn't officially support Firefox on Linux yet.


Can't log in to new 14.04 install I have just installed Lubuntu 14.04 and can't log in. I get incorrect password, even though I just added and confirmed password during setup. I did not set up any users during setup just a root password.

Do you know how to fix this problem?

By default while installation ubuntu does not set root password. It creates a default User, based on what you enter in "Enter your Name" , and sudo rights are given to it.

Double check if your caps lock was on and try to login from shell (Ctrl+Alt+F1/F2), not with "root" as username.

At the grub login, drop to root shell and either check if your user is in /etc/passwd and change the user password or add your user.


Midori webapp mode doesn't use cookies Is there any known workarounds for getting midori to remember the cookies? I only ask because for me the ubuntu-browser app is currently broken (even when I open a link and it loads, all I get is white space).

I am trying to use midori to open gmail and other sites in their own windows, but midori completely sandboxes the webapp, requiring login each time I launch the app, even if I have a cookie from gmail.

Perhaps a way to just make certain cookies global?

Cookies are managed in

Preferences -> Privacy tab

Your description of the problems sounds unrelated to cookies though.


How can I check the information of currently installed WiFi drivers? When I clicked on additional drivers on Ubuntu 12.04, I could not see any drivers.. How can I check what drivers are installed for WiFi on Ubuntu environment.

The following commands are run in a terminal. Open one by Ctrl+Alt+T.

To check what drivers your wireless adapter is currently using, you may run the following command:

sudo lshw -C network

lshw lists information on your hardware
-C network filters the output to only show the network class.

In the output, look for the entry with description: Wireless interface.

Here's the output from my Ubuntu:

alaa@aa-lu:~$ sudo lshw -C network
[sudo] password for alaa:
  *-network
       description: Wireless interface
       product: RTL8723AE PCIe Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: wlan0
       version: 00
       serial: 24:ec:99:21:c9:29
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8723ae driverversion=3.8.0-27-generic firmware=N/A ip=192.168.1.74 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:17 ioport:3000(size=256) memory:c3000000-c3003fff

In the configuration line (line before last), you'll see the driver currently being used by my card. I've highlighted it in the output.

Alternatively, you can use the command:

lspci -nnk | grep -A2 0280

lspci lists information on your PCI connected cards
-nnk instructs lspci to output more information about these cards (including the driver being used)
| pipes the output to the next command
grep 0280 filters the output to show lines containing 0280, which is the PCI class code for wireless PCI controllers in Ubuntu.
-A2 shows two more lines of information.

Here's the output from my Ubuntu:

08:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723AE PCIe Wireless Network Adapter [10ec:8723]
    Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:0724]
    Kernel driver in use: rtl8723ae

Once you determine the driver you're using, you can use the following command to show more information about it:

modinfo <driver-name>

To check what wireless drivers you currently have installed, but not necessarily being used by anything, you can do the following command:

find /lib/modules/$(uname -r)/kernel/drivers/net/wireless -name '*.ko'

The above command will list all drivers you have installed. This will probably be an exhaustive list, because these are preinstalled drivers on your Ubuntu to make it possible for people to use their wireless drivers as soon as they install Ubuntu.

Try

  lsmod

to check if the module r8169 is existed by:
If it is not then add it by:

  sudo modprobe r8169

This solved the problem for me.


Explicitly accept change for PPA 'Label' When I run apt-get update on my ubuntu 17.10 I receive the following error:

E: Repository 'http://ppa.launchpad.net/ondrej/php/ubuntu artful InRelease' changed its 'Label' value from '*****
The main PPA for PHP (5.6, 7.0, 7.1) with many PECL extensions *****' to '*****
The main PPA for supported PHP versions with many PECL extensions *****'
N: This must be accepted explicitly before updates for this repository can be applied.
See apt-secure(8) manpage for details."

The man page doesn't really point to a solution.  My question is, how do I explicitly accept the change?

It would help if you posted your repositories, but, with that said, you sort of have 2 ways to fix this.
First would be to use apt rather than apt-get. apt is preferred over apt-get for interactive use in recent Ubuntu versions; and apt should, in theory, fix this for you.
sudo apt update
sudo apt upgrade

Your second option is to use --allow-releaseinfo-change
sudo apt-get update --allow-releaseinfo-change

If those options do not resolve the issue, please post your repositories, are you using mixed repositories or pinning, and, finally, tell us, is this an upgrade ?

For me, anyhow, the answer was here:

https://neon.kde.org/faq#command-to-update

And I give you the link because I assume it's updated as needed.  Currently, it reads that you must run:

pkcon refresh
pkcon update

Which is what I'm running.  Hopefully, my computer will still work once it's done.


Current Software Update for Ubuntu 15.10 trashes VM with VMWare fusion I had a fully functioning 15.10 VM running under VMWare Fusion for testing Swift and pressed the "Update Software" button today. 300mb later it no longer boots. If I then recreate the VM from scratch and try the update again it fails to boot again. Red message about /etc/rc.local not something... flashes on screen just before boot hangs. Any ideas, fixes? This seems pretty serious to me.

I had this issue with VMware Workstation 12 Player. The temporary fix is likely similar. I started the VM and it didn't fully complete. I thought, like you, it was the software update that did it. The only updates I had were the kernel update, so that had to be it. I fixed my issue by rebooting with the old kernel.

The fix requires that an ssh server be installed on the VM. Start the VM and let it get to the "hung" state. ssh into the machine and edit /boot/grub/grub.cfg to have it default to the old kernel (3.19.0-49 for me). You can do this by moving the menuentry for the old kernel to the top of the list. Reboot the machine with 'sudo reboot' and hope the VM reboots correctly.

This may be a bug.....been working the snapshots in VMWare so far, but sure hope a fix comes along soon!
As it is I'm not updating until I know for sure it's safe.

Post edit: I just can't keep my hands off a screwed up computer...tried a couple more times....reverted to screenshots a couple more times.....read someone booted from an older kernal using the startup screen. I thought I had tried that to no avail, but what I must have done is used the safe start screen from that older kernal and tried to repair the packages. The short story is: If you boot from an older kernal via the start menu, you're saved.
Good luck! Hope they fix this soon! I'm not sure how I'll know when it's safe to update now!

PS Just noticed the title of this discussion! I'm in Windows VMWare, but it looks like in this case, it doesn't matter - this being an Ubuntu problem more than a VM problem.

PPS Also tried a repair install(NOT clean install) to no avail - so save yourself the effort - it don't work. this is highly ******!

So, J. Doe, what was the painful edit you made to  /boot/grub/grub.cfg to fix it? Since it was so painful, maybe you can make it so us less-talented individuals can cut and paste the edit....
OK, so I read through  /boot/grub/grub.cfg, not that I understand it.....but do you think it would be safe, then, to simply delete the menuentry section using/referring to 4.4....that way it would proceed to just use 3.19.....??
On the other hand, looking at the file once more it isn't at all that clear to someone who doesn't understand the code where, exactly to begin and end the delete, so some help would be in order. Huh, huh, please?

HERE'S AN ACTUAL ANSWER!!!:

A temporary solution (until the bug is fixed) was to remove the version 4.2.0-30 kernel. This should revert you back to whatever the last version that was working. The command below worked for me:

sudo apt-get --purge remove linux-image-4.2.0-30-generic linux-image-extra-4.2.0-30-generic

Yipee....that worked for me, too!
But that still begs the question, "When is it safe to update?" I guess we'll just have to pay attention to Ubuntu info.....


Disable auto-opening nautilus window after auto-mount Every time I plug a USB stick in, nautilus opens a new window with the contents of the drive. I would like to disable this auto-opening of the nautilus window, but I would like the actual auto-mount to keep working. Is this possible?

The simplest option is to open a terminal with Ctrl+Alt+T, and type:

gsettings set org.gnome.desktop.media-handling automount-open false

Using GUI in debian gnome desktop:

Open dconf-editor then go to org -> gnome -> desktop - media-handling.
There uncheck automount.


Ralink rt5390 driver problem I am a new linux user. I am trying to set up my ralink drivers.

I am following the steps from another forum
which are:

download driver: http://www.mediatek.com/_en/07_downloads/01-1_windowsDetail.php?sn=5001
tar -xvf /home/ukbeast/USERNAME/Downloads
/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_v2.bz2.bz2
cd 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO
download patch: http://gridlox.net/diff/rt5592sta_fix_64bit_3.8.patch
patch -p1 < rt5592sta_fix_64bit_3.8.patch (if asks for directory point it to pci_main_dev.c)
make sure /os/linux/config.mk reads HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
make
sudo make install
modprobe rt5390sta

I am getting stuck on step 5. When I enter patch -p1 < rt5592sta_fix_64bit_3.8.patch into the terminal I am getting "no such file or directory" as a response.

I do not know how to point it to pci_main>dev.c?

Any help on how to point it there would be much appreciated.

The file rt5592sta_fix_64bit_3.8.patch must be in the same location as your Makefile (base dir of the driver source). Also, you will require sudo for step 7.

Have you tried placing the downloaded .patch file inside 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO directory and then run the command from inside that directory? I did that on Ubuntu 13.04 and it has worked.


How do I change the icon of a Epiphany web app? The webapps just take a thumb of whatever image they can find on the page, can I customise it?

For Gnome-Shell (Ubuntu 12.10), the image is located at ~/.config/epiphany/app-epiphany* (where the * in app-epiphany* is the web app name followed by and some additional numbers/letters)

Try menulibre.

sudo add-apt-repository ppa:menulibre-dev/devel
sudo apt-get update
sudo apt-get install menulibre

Menulibre is really easy to use - hopefully it'll work with the webapps (it works with Unity-webapps). You can access it from the settings menu, or just type "menu" into the dash, and open the one called "Menu Editor."
Also, check out the developer's site here.


wpa_cli fails when I connect to my interface Following How to connect to Wi-Fi AP through WPS?, I configured my wpa_supplicant (I'm trying to connect with WPS), the steps are these:

sudo systemctl stop NetworkManager.service
echo -e "ctrl_interface=/var/run/wpa_supplicant\nctrl_interface_group=0\nupdate_config=1" | sudo tee /etc/wpa_supplicant.conf
sudo wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

But when I run wpa_cli, I get:

Could not connect to wpa_supplicant: (nil) - re-trying

And when I use wpa_cli -i wlan0, I get:

Could not connect to wpa_supplicant: wlan0 - re-trying

I must use wpa_supplicant. I want to save my password there. How I can solve these errors?

At last I got wpa_supplicant working but I get this error and I think when I am using wps wpa_cli never exits:

Successfully initialized wpa_supplicant ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument

When I try to use this:

sudo wpa_cli wps_pin mymac 68129231

that never finishes either. I dont know why wpa_supplicant can't work with wpa_cli. I can't use dhclient to save my psk can I?

Config of my wpa_supplicant:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

I use Ubuntu 16.04 and I know how to fix this.

First, you have to make sure that you didn't change anything in /etc/network/interfaces.

Then you have to go to /etc/wpa_supplicant/action_wpa.sh and change the IFACE variable to

"$(cat /var/run/network/ifstate.wlp2s0)"

instead of

"${CTRL}#/run/wpa_supplicant"

Reboot your system and you will be able to use wpa_cli functions. But nmcli conflicts with wpa_cli, so don't use wpa_cli to reconnect or connect.
https://lh6.googleusercontent.com/QGb8Cs3RMHVXs40VbZ1JCJv4PXG5VQbthB5SUB4NpwrfCj9_xwfZQQbP5wVT95fZllbb_sVQuXlTYiI=w1366-h620