Thursday, August 31, 2017

installation - How to resize Ubuntu partition with unallocated space w/GParted & LiveCD

I currently have one hard drive with 3 partitions and 2 partitions of unallocated space. I am dual booting Windows 7 (1 partition) and another partition for Ubuntu 12.04.


I'm using Gparted and Ubuntu 12.04 Live CD with all drives unmounted, this is what i'm seeing:



  1. /dev/sda1. NTFS. 325gb, 292gb used. Boot flag. = WINDOWS 7

  2. (extended) /dev/sda2. EXTENDED. 92.95gb. lba flag.


    2A. (extended) /dev/sda5. EXT4. 89gb. = UBUNTU
    2B. (under extended) unallocated. 3.82gb


  3. unallocated. 39.75gb = ???

  4. /dev/sda4. NTFS. Respawn Recovery. 7.79gb. 4.27gb used.

  5. unallocated. 3.02mb.


I CAN resize sda4 to include the 40gb of unallocated space but obviously I dont see the point in doing that to a recovery partition.
I CAN resize sda5 to include the unallocated space of 3.82gb but would this help?


Help?

grub2 - How do I get the GRUB menu to show when starting my dual-boot system?




Recently I have installed Ubuntu 10.10 and selected a wrong option while installing it.



Now the problem is that my machine directly boots Ubuntu and even does not show me grub menu.



How do I install grub menu ?



And how do I add Windows Vista to the grub menu?



This is what I have tried.




sudo grub

> root (hd0,0)

> setup (hd0)

Error 17: Cannot mount selected partition


I don't know what's going wrong here and I am sure that I have not wiped out my windows partition.




Edit :



sudo update-grub

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
ls: cannot access /media/BC54B2C654B282A6/boot

Boot: No such file or directory
done





sudo os-prober

ls: cannot access /media/BC54B2C654B282A6/boot
Boot: No such file or directory



Thanks.



I tried using sudo update-grub and sudo os-prober but I had no luck.



So this is what I have done.



sudo gedit /etc/default/grub and placed a comment # in front of the line GRUB_HIDDEN_TIMEOUT=0.




Then I updated my grub so that I don't have to press Left shift for the grub to appear using sudo update-grub .



After updating the grub I opened grub.cfg using sudo gedit /boot/grub/grub.cfg command.



And added



menuentry "Windows Vista" {

set root='(hd0,1)'


chainloader +1

}


between ### BEGIN /etc/grub.d/40_custom ### and ### END /etc/grub.d/40_custom ###



And don't forget to save the file.



I am marking this answer as Community wiki in case someone wants to add or modify this post.







Edit to update:



Meanwhile (2013) we have a GUI tool to repair/reinstall grub: Boot Repair.



To use it, do one of the following:





  • Create a live CD/USB of Ubuntu Secure Remix, which is an Ubuntu live with supplementary rescue tools, boot from that and use Boot Repair.


  • If you already have a regular Ubuntu live iso, create live usb with UNetbootin, live boot from that and install Boot Repair





sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get
update



sudo apt-get install -y boot-repair && boot-repair &





(But apt-get update on a live USB might involve updates that take some time - and are also useless if the live usb is not persistent - so I recommend the first solution.)



Using Boot Repair to fix/reinstall GRUB is simple, just choose default/recommended repair option; more details here.


backup - Can't boot into any OS on my computer, what should I do? [Ubuntu 12.10]

Was using Ubuntu 12.10 (on a ThinkPad T430i), things started jumping and freezing so I shut down.



When I try to boot up, it always fails. Trying to boot in recovery mode, I get errors such as "I/O error (dev sda)", "mounting /dev on /root/dev failed: no such file/directory." I ran a diagnostic to check for sector errors and there were a lot (e.g. sector error 5936256; however I did not tell my Lenovo machine to try and fix the errors). I can be more specific if you tell me what to post, but the amount of errors I'm getting is vast.



Windows 7 will not boot either.



I'm guessing there's something fatally wrong with the hard-drive. So my primary question is: how can I back-up my data before I try any fixes? There are numerous files I had not yet backed up. My secondary question is: what steps should I take to try and diagnose and fix this problem?




Thank you enormously in advance.



UPDATE: I booted up with Ubuntu Live CD. I couldn't get fdisk to run, but when I tried to mount 232 GB File System I get the following error:




Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sda5,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so





When I run disk utility on my hard disk, I get: Current Pending Sector Count, Normalized 59, Worst 59, Threshold 0, and Value 1160 Sectors. Screenshot of SMART Data is here: http://www.foopics.com/show/01f6dc2a4e47915367be5300b57500f1



So that looks bad...Do I have any option besides making a clone of the File System?

11.04 - Distribution upgrade problem "No new release found"


I'm using Ubuntu 11.04. The update manager once found the new release 'oneiric', and still shows up this screen when I log on use ssh:


Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-14-generic x86_64)
* Documentation: https://help.ubuntu.com/
0 packages can be updated.
0 updates are security updates.
New release 'oneiric' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Wed Apr 25 16:22:48 2012 from ***

But I didn't upgrade then, and change my apt sources. And now I cannot upgrade to 'oneiric'. do-relase-upgrade shows:


$ sudo do-release-upgrade
Checking for a new ubuntu release
No new release found
$

And apt-get dist-upgrade shows:


$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$

I can successfully update all my packages.




File contents of source.list:


$ cat /etc/apt/sources.list
## See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty main universe restricted multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty main universe restricted multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-security universe main multiverse restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-updates universe main multiverse restricted
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ natty-backports universe main multiverse restricted
# deb http://ubuntu.dormforce.net/ubuntu/ lucid main universe restricted multiverse
# deb-src http://ubuntu.dormforce.net/ubuntu/ lucid main universe restricted multiverse
# deb http://ubuntu.dormforce.net/ubuntu/ lucid-security universe main multiverse restricted
# deb-src http://ubuntu.dormforce.net/ubuntu/ lucid-security universe main multiverse restricted
# deb http://ubuntu.dormforce.net/ubuntu/ lucid-updates universe main multiverse restricted
# deb-src http://ubuntu.dormforce.net/ubuntu/ lucid-updates universe main multiverse restricted
# CDROMs are managed through the apt-cdrom tool.
# deb http://archive.canonical.com lucid partner
# deb http://archive.canonical.com lucid-security partner
# deb http://archive.canonical.com lucid-updates partner
# deb-src http://archive.canonical.com lucid partner
# deb-src http://archive.canonical.com lucid-security partner
# deb-src http://archive.canonical.com lucid-updates partner
#medibuntu repo
# deb http://packages.medibuntu.org/ lucid free non-free
# deb-src http://packages.medibuntu.org/ lucid free non-free
# deb http://extras.ubuntu.com/ubuntu maverick main #Third party developers repository
deb http://mirrors.sohu.com/ubuntu/ natty main restricted multiverse universe
deb-src http://mirrors.sohu.com/ubuntu/ natty main universe restricted multiverse #Added by software-properties
deb http://security.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirrors.sohu.com/ubuntu/ natty-security universe main multiverse restricted
deb http://mirrors.sohu.com/ubuntu/ natty-updates universe main multiverse restricted
deb-src http://mirrors.sohu.com/ubuntu/ natty-updates universe main multiverse restricted

File contents of /etc/update-manager/meta-release:


$ cat /etc/update-manager/meta-release
# default location for the meta-release file
[METARELEASE]
URI = http://changelogs.ubuntu.com/meta-release
URI_LTS = http://changelogs.ubuntu.com/meta-release-lts
URI_UNSTABLE_POSTFIX = -development
URI_PROPOSED_POSTFIX = -proposed

What may be the problem of this?



To upgrade from Ubuntu 11.10 or Ubuntu 10.04 LTS on a server or system: install the update-manager-core package if it is not already installed; launch the upgrade tool with the command sudo do-release-upgrade -d; and follow the on-screen instructions. Note that the server upgrade is now more robust and will utilize GNU screen and automatically re-attach in case of e.g. dropped connection problems.


drivers - How to get AMD graphics card working on kernel 3.10.x?

I'm running Kubuntu 13.04_x64 on my Sony Vaio SVE171E13L. The notebook has an AMD Radeon HD7650M graphics card. Up until now, I've been using the AMD proprietary driver (AMD Catalyst 13.4).


After building the 3.10 (now 3.10.1) kernel, however, I no longer had a graphical interface!


It turns out that 3.10 has introduced a major change in the /proc filesystem API. (According to the bug report for broken fglrx driver.)


The fglrx driver no longer builds. I tried purging the proprietary driver and installing the open source driver with no success. In retrospect, that's not surprising, as the open source driver is an older version of the AMD driver.


I also tried the beta Catayst 13.6, but that didn't work either. That version predates the kernel as well.


Has anyone found a way to get an AMD graphics card working with this kernel?!?


I've searched and searched, but I've been unable to find anything that will help me get this working! In fact, I've barely found any references to this issue at all!


Surely this kernel wasn't released knowing that everyone with an AMD graphics card would be unable to use it!!!


Thanks for any suggestions!


EDIT: 7/21/2013


I wanted to clarify in response to @edwin's comment... This isn't a bug, per se, although I did see that someone had filed a bug report.


From what I read on the issue, it's simply a matter that that there was a somewhat major change in kernel 3.10, and the AMD driver hasn't been updated to deal with it.


I'm simply asking if anyone with an AMD graphics card has successfully built 3.10, and, if so, how?!?

installation - Clean install from Ubuntu 10.04 to LUbuntu 10.10 without losing data?


I have the same situation with this one.
Upgrade from Kubuntu 9.10 to Ubuntu 10.04.


But I am planning to install LUbuntu 10.10 via USB on my netbook after the release. I have only one partition (and don't have any plans yet to create another partition). Is it possible to keep the /home folder while installing aside from backing it up to an external drive and do a clean install?



It's entirely possible to do just that. Simply run the installer, and when you get to the partitioning options, go for manual partitioning, and mark your single partition as root (/) BUT DO NOT FORMAT IT.


Proceed from here as normal and the installer will simply overwrite the existing system files, and anything else that isn't a system file (such as the contents of your home directory) will be ignored. I've done it myself, though I was reinstalling my Ubuntu 10.04 installation, rather than moving to a separate distro, but I can't see there being any problem with that.


Good luck.


drivers - Bumblebee Nvidia Drivesrs

Actually I am new to Linux. Currently I using Ubuntu 15.10 on my Lenovo Y50-70 with Nvidia GeForce GTX 860M graphics driver installed. I've installed the required graphics drivers from Additional Drivers. I used





Using NVIDIA binary driver -version 352.63 from nvidia-352(proprietary, tested)




And its working fine. My question is should I install bumblebee or not?? And what is bumblebee and its actual use. Surfing the net I got it's for linux platform in exchange of proprietary NVIDIA drivers and similar like that. Any insights could be great.



I've already followed these links too but not completely satisfied.




Bumblebee and Nvidia




Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?



How to switch between hybrid Graphics Intel/nVidia?


apt - Why do I always get dependancy errors when trying to install 'ubuntu-restricted-extras'?

Whenever I try to install ubuntu-restricted-extras I always get errors similar to these, however the answer to that question only resolved the errors I had that time, though I get very similar errors every time I try to install it on a fresh install of Ubuntu, the same solution never works for all and I don't think I should ask here every time... I feel that that would get a bit much...




But why is it so? Why do I get these errors (because I didn't used to on previous version of Ubuntu and I'm not sure that other people do)? Is this a bug which I should report or...? I am running Ubuntu GNOME 15.10 with GNOME 3.18.



Information Update:



It has been suggested that this could be due to an outdated package list, but this is not the case as I always run sudo apt-get update before attempting and upgrade or new installation, so I do not believe that this can be the problem unless somehow that command is not solving it.

Wednesday, August 30, 2017

64 bit - g77 for Ubuntu 14.04 (64 bit)


I have been having troubles installing g77. When I type "sudo apt-get install g77" in terminal I get:


"""
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package g77 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 'g77' has no installation candidate
"""


I am aware that g77 is no longer supported. I have gfortran, gcc, etc. installed but I need g77 for some older code that I want to use.


I have read one way to do this is to download g77 (64 bit) and install it (http://conquer-ur-computer.blogspot.ca/2011/02/g77-offline-installation-for-all-ubuntu.html), but I can't seem to find a safe place to download.


Any help would be appreciated.


Thanks.



To get it to work, I followed karel's instructions:


Downloaded g77 from Ziddu, link on karel's comment.
Scanned the file for viruses and malware before and after unzipping it (wasn't sure it Ziddu was safe).
Put the unzipped file on my desktop.
In the desktop directory of my terminal entered:


tar -xzvf g77_x64_debian_and_ubuntu.tar.gz
cd g77_x64_debian_and_ubuntu
chmod +x ./install.sh
sudo ./install.sh

Then it worked (tested by entering g77 in terminal, reads: g77: no input files).


security - Scanning External Drives for Viruses - Ubuntu

So I recently installed Ubuntu onto one of my Computers and would like to uses it to scan external drives USB and what not for viruses that can affect windows PC. Is there a possible antivirus or antimalware detection tool i can use on Ubuntu to look for Viruses/Malware that can affect windows or MacOS computers?

Tuesday, August 29, 2017

nouveau - How do I revert from the Nvidia driver to the unrestricted driver?


Possible Duplicate:
Remove nVidia driver and go back to Nouveau






Installed Ubuntu 11.10 on a Gateway GT 5628 with a NVIDIA GeForce 8500 GT graphics processor. Was working fine until I attempted to update the driver; now, after boot I get a blank/black screen.



How can I revert back to the unrestricted driver from a terminal?

16.04 - What updates is 'Ubuntu Software' installing?

I have recently upgraded from 15.10 to 16.04LTS. Since the upgrade, I have still been prompted occasionally to update by 'Software Updater' which had been present in 15.10. Quite a few updates to Ubuntu core have been done this way.


In the last couple of days, when returning from suspend a popup has appeared in the same place as the wifi connected/disconnected information appears. This new popup told me that 'Important OS and application updates are ready..." before disappearing. Yet when I checked with the 'Software Updater' it told me that the software was up to date.
Checking with the new 'Ubuntu Software' (update tab) told me that there were updates, so I clicked 'Install'. It didn't tell me what was being installed.


Why is there this different method of checking and why are the two giving different results?


How can I find out what the new Ubuntu Software did install ?


Edit 9th May


Again today the pop-up appeared. The 'Software Updater' showed the machine was up to date. The 'Ubuntu Software' app showed 1 update. On clicking the '1' icon it showed 1 update, namely: ubuntu-drivers-common 1:0.4.17.1. I clicked the 'Install' button and installed it.


I'm none the wiser as to why it is only shown as necessary by 1 app and not the other.

Monday, August 28, 2017

software recommendation - Is there any utility like the Windows program smartcopy?

It should help me pause copying, so I dont have to wait for each copy to finish. Basic googling didnt help out. The windows equivalent is Teracopy, or Fastcopy.




I need the application to be GUI based, but wouldn't mind shell commands.



I wait for the copy to finish, in cases where I copy to the same destination, like a pen-drive, where throughput is in the order of 5 MB/s.

grub2 - Stuck in grub rescue after Windows install

I used to have a dual boot between Ubuntu (lucid) and Windows 7, but wanted to upgrade my Windows to 64 bit, so I installed the new Windows, which naturally wrote over the MBR, and so I attempted to repair it using the following guide: https://help.ubuntu.com/community/Grub2#Reinstalling%20GRUB%202.



I had a lot of trouble following it, but managed to get the system to boot to some grub command line, instead of Windows, which I thought was useful. Then I did something screwy and now when I boot I get a grub rescue command line.



So I follow the instructions on that same page related to rescue mode, but am a bit confused. If I do ls, I get:




(hd0) (hd0,msdos1) (hd1) (hd1,msdos5) (hd1,msdos1)





If I attempt to list the contents of these partitions, the only one that works is (hd1,msdos1), all of the others say "unknown filesystem." Examining the contents of this partition, it appears to contain my Ubuntu home directory.



In any case, I found some combination of commands that do something:



set prefix=(hd1,msdos1)/boot/grub
set root=(hd1,msdos1)
insmod /boot/grub/linux.mod
linux /vmlinuz root=/dev/sdb1 ro
initrd /initrd.img

boot


It then looks like it's going to work, but I find myself in some kind of prompt which calls itself busybox initramfs. I try various things, but can't figure out how to run the command update-grub as recommended.

boot - Which kernels from Ubuntu 3.5.0 can I remove?

After reading some very helpful information on your forums, I now know how to remove unneeded kernels to free up disk space for updates.



Can any of you tell me which of the following I can safely uninstall?



-rw-r--r--  1 root root 834K Oct  9  2012 abi-3.5.0-17-generic
-rw-r--r-- 1 root root 834K Nov 13 18:19 abi-3.5.0-19-generic
-rw-r--r-- 1 root root 837K Dec 11 19:26 abi-3.5.0-21-generic
-rw-r--r-- 1 root root 837K Jan 8 22:11 abi-3.5.0-22-generic
-rw-r--r-- 1 root root 837K Jan 24 13:34 abi-3.5.0-23-generic
-rw-r--r-- 1 root root 839K Feb 7 06:02 abi-3.5.0-24-generic

-rw-r--r-- 1 root root 839K Feb 25 19:32 abi-3.5.0-25-generic
-rw-r--r-- 1 root root 839K Mar 8 23:49 abi-3.5.0-26-generic
-rw-r--r-- 1 root root 841K Mar 25 20:29 abi-3.5.0-27-generic


I have already removed 3.5.0-17-generic as, after a brief search, I found it was tagged as deleted.

wireless - Wifi connection issues on Ubuntu 16.04 RTL8188EE

I have a HP notebook, which had Windows 7 (or 10, can't remember) by default, deleted Windows and installed Ubuntu 16.04. I'm quite a newb, anyway. The thing is, I'm having connection issues, having the wifi disconnected randomly. I solve the problem from time to time by pressing the airplane button 2 times, so the wireless connection gets reset.
I did this:



sudo lshw -class network



Then I get the following:



   *-network    
descripción: Ethernet interface
producto: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
fabricante: Realtek Semiconductor Co., Ltd.
id físico: 0
información del bus: pci@0000:07:00.0

nombre lógico: enp7s0
versión: 07
serie: b0:5a:da:ce:ae:bd
tamaño: 10Mbit/s
capacidad: 100Mbit/s
anchura: 64 bits
reloj: 33MHz
capacidades: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuración: autonegotiation=on broadcast=yes driver=r8169
driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s

recursos: irq:43 ioport:5000(size=256) memoria:d6000000-d6000fff memoria:d6100000-d6103fff
*-network
descripción: Interfaz inalámbrica
producto: RTL8188EE Wireless Network Adapter
fabricante: Realtek Semiconductor Co., Ltd.
id físico: 0
información del bus: pci@0000:13:00.0
nombre lógico: wlp19s0
versión: 01
serie: 18:4f:32:00:30:94

anchura: 64 bits
reloj: 33MHz
capacidades: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuración: broadcast=yes driver=rtl8188ee driverversion=4.4.0-53-generic firmware=N/A ip=192.168.1.50 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
recursos: irq:50 ioport:3000(size=256) memoria:d3000000-d3003fff


So what can I do?

software installation - How do I install a .so file? - newbie

I downloaded freeverb.tar.gz which contains a plugin library (freeverb.so) for Audacity.


I extracted the .tar.gz file to my downloads folder but I don't know what to do next. There is no
Readme file or any other info contained in the .tar.gz file, just freeverb.so


Can you advise me how to get the freeverb.so installed into the correct folder for Audacity to pick it up?

apt - Why are old kernels marked as manually installed?

From everything I've read, in Ubuntu 18.04 sudo apt-get autoremove should clean up old kernels. However, for some reason, after installing a new kernel version, I am left with "linux-image-*", "linux-headers-*" and "linux-modules-*" packages which are inexplicably marked as manually installed, and therefore are not cleaned up by apt-get autoremove.



I have not manually installed these packages (for example linux-image-4.15.0-70-generic), and can't figure out what is marking them as manually installed.



Why are these packages getting marked as manually installed? And how can I stop that from happening?





I'm replying to @user535733 here, because it is too long for a comment. I think this is something different than the script in /etc/kernel/postinst.d/apt-auto-removal.




Looking at that script, it doesn't mark the packages as manually installed, instead it writes an apt configuration file with a "APT::NeverAutoRemove" section that lists the kernels that shouldn't be removed. And I understand that. The problem is the packages I'm seeing marked as manually installed are not in that list. And they are never removed by autoremove even after multiple kernel updates.



And by marked as manually installed, I mean that apt-mark showmanual linux-* lists these packages and apt-mark showauto linux-* does not.





I found this in my apt history:



Remove: linux-headers-5.0.0-32:amd64 (5.0.0-32.34~18.04.2), linux-modules-extra-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2), linux-headers-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2), linux-image-4.15.0-70-generic:amd64 (4.15.0-70.79), linux-modules-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2), linux-modules-extra-4.15.0-70-generic:amd64 (4.15.0-70.79), linux-image-5.0.0-32-generic:amd64 (5.0.0-32.34~18.04.2), gradle-6.0:amd64 (1.0-0ubuntu2), linux-modules-4.15.0-70-generic:amd64 (4.15.0-70.79)
Error: Sub-process /usr/bin/dpkg returned an error code (2)



And the corresponding term.log contains:



Log started: 2019-12-21  22:23:02
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
Log ended: 2019-12-21 22:23:02



So it looks like autoremove tried and failed to remove the packages. (And I think it is failing because it is in a cron job and the PATH isn't set correctly). I still don't understand how they became marked as manually installed though. I don't see anything else suspicious in the apt history or term.log

Unity launcher full - Need more icons

I have already reduced the Unity launcher icons to 32 but still the space is exhausted already with my most-used programs. Basically I have to scroll often in the unity launcher bar with is annoying.



So far (Ubuntu 10.04) I had those icons as mini ones in the top panel (smaller icons and wider space) where they could fit all.




I was thinking already of sub-launchers or something the like but could not find something like the drawer was in Gnome 2.



I am using Ubuntu at home and in the office. I am a consultant and need a lot of stuff on a regular basis. To put links at the desktop does not make sense because of the many windows that I usually have open there is hardly ever a piece of the desktop looking through.



How do you - power users get keep most-used programs at reach (and I mean <= 2 clicks away)?

Sunday, August 27, 2017

16.04 - Nouveau doesn't recognize my chipset (136000a1)

When I try to boot into a Live USB with 16.04.2 LTS, I get the following error:




[3.358556] core perfctr but no constraints: unknown hardware!



[4.154821] nouveau 0000:09:00.0: unknown chipset (136000a1)




[6.107481] sd 9:0:0:0: [sdc] No Caching mode page found



[6.108023] sd 9:0:0:0: [sdc] Assuming drive cache: write through




My monitor displays "Format not supported" and turns off. I can get a TTY prompt, but I'm not able to install an Nvidia graphics driver because /dev/loop0 is write-only.



"nomodeset rdblacklist=nouveau" does nothing as I don't have integrated graphics to fall back to.




My graphics card is a relatively new GTX 1060, and my CPU is a Ryzen.

Does the "security" repository provides anything not found in the "updates" repository?

For the limited number of package I looked at (e.g. apache), I found that the package version in the updates repository is always newer than or equal to the version available in the security repository (provided that they exist). This gives me the impression that all security patches posted to the security repository are also posted to the updates repository. If this is true, I can remove all -security entries in my apt sources.list and the -updates entries will still give me the security patches. This will speed up apt-get update quite a bit.


The best documentation I can found regarding the repositories is on the community help page




  1. "Important Security Updates (raring-security)". Patches for security vulnerabilities in Ubuntu packages. They are managed by the
    Ubuntu Security Team and are designed to change the behavior of the
    package as little as possible -- in fact, the minimum required to
    resolve the security problem. As a result, they tend to be very
    low-risk to apply and all users are urged to apply security updates.

  2. "Recommended Updates (raring-updates)". Updates for serious bugs in Ubuntu packaging that do not affect the security of the system.



However, it does not mention whether the updates repository also includes everything in the security repository. Can anyone confirm (or disconfirm) this?

networking - Wireless disabled by hardware switch on an Asus X550V



I'm using Ubuntu 13.04 and I have ASUS X550V laptop. This is my rfkill list:




0: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: asus-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
3: hci0: Bluetooth

Soft blocked: no
Hard blocked: no


Before you start going: Hey, just turn on your hardware switch, dummy... my hardware switch is Fn + F2 and it works perfectly fine on my Windows boot.
But, on my Ubuntu boot it does nothing... All the other Fn + F_ combos work (turn off the touchpad, screen turn off, screen brightness, sound) and they give some kind of visual indicator when I press it.



My lshw log:



*-network DISABLED

description: Wireless interface
product: AR9485 Wireless Network Adapter
vendor: Atheros Communications Inc.
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlan0
version: 01
serial: 24:0a:64:28:b4:25
width: 64 bits
clock: 33MHz

capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=3.8.0-19-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:f7900000-f797ffff memory:f7980000-f798ffff


Is the module asus_nb_wmi loaded? Check:



lsmod | grep asus



If so, please try a driver parameter:



sudo -i
echo "options asus_nb_wmi wapf=0" > /etc/modprobe.d/asus.conf
exit


Reboot and see if the Fn+F2 behavior is changed.



If the above does not work, redo it again but replace asus_nb_wmi wapf=0 with asus_nb_wmi wapf=1, and if that does not work, replace it with asus_nb_wmi wapf=4 instead.



12.04 - Nvidia Geforce 680 GTX - Glitches on screen

I have an Nvidia Geforce 680 GTX and installed the prob. driver Ubuntu showed me![Screenshot1]. I have the problem that if e. g. I have to scroll down a large document I get glitches. I looks like some lines are overlaying or rendered to late. It's kinda hard for me to describe it since I don't know how to explain it in English ;-)


Maybe it's just a setting in the Nvidia XServer? The screen is connected via HDMI. Could ths be the problem.


The problem exists in Unity and Gnom3.


Here is some more information about the system:



  • Ubuntu 12.04 LTS (64 bit)

  • Memory 16 GB

  • Intel Core i7-3770K CPU@3.50GHz x 8

  • Graphic GeForce GTX 680/PCIe/SSE2


I really would appreciate if someone could help me. This is quite annoying. If you need any further information I will try to provide them.


Thanks in advance!


Mark


enter image description here

wireless - WI-FI doesn't work (Hard Blocked)




Yesterday I installed Ubuntu 12.04 for the first time (I've always been a Windows user) as I was at the office and I had the Ethernet connected.



At home I only use WI-FI. When I started Ubuntu it didn't connect or try to connect with any network.



By google, I found the command rfkill and these are the results:



0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no


1: brcmwl-0: Wireless LAN
Soft blocked: no
Hard blocked: no

2: dell-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: yes

3: dell-bluetooth: Bluetooth

Soft blocked: no
Hard blocked: no


Well, the WI-FI is blocked by hardware, so I tried the command rfkill unblock 2 and it didn't work. As I didn't know even my Broadcom model, I found lspci and the result for the WI-FI is:



0e:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)


My laptop is a Dell Vostro 1520 with WinXP also installed.

Thanks for the help!



PS: It also may help that when I enter System Settings > Network (it may be different, my Ubuntu is in Spanish) "Airplane Mode" is connected. When I try to unlock it, it goes to its original place after I close that window and open it again and when I reboot.






Update added from comment to an answer



The Broadcom "Additional Drivers" are turned on and enabled.




Broadcom and ubuntu do not play nicely together



Try these fixes



Installing Broadcom Wireless Drivers


grub2 - no windows 7 entry in grub after installing ubuntu

I installed Ubuntu 11.10 on a separate partition. Unfortunatelly after installation I couldn't see grub menu. Ubuntu starts automatically. Then I installed the boot-repair and repaired by this software my grub. Now I can see grub menu, but there is no windows entry. Just ubuntu.

Saturday, August 26, 2017

Partial upgrade from Ubuntu 14.04 to 14.10


I was trying to upgrade from Ubuntu 14.04 to 14.10 but due to a brief wifi disconnect, at some point the upgrade failed.


Since everything was working fine and some packages were modified, I ran apt-get upgrade to update my packages.


When I logged in, the login screen said "Ubuntu 14.10" but when I check the Overview page in system settings, it shows "Ubuntu 14.04" Also, I am getting random errors like "You are not allowed to perform this action" when I try to change network settings or settings in the update manager.


Is there any way I can go back to 14.04 or finish my upgrade to 14.10? Or simply revert the changes that I did?


So, I ran apt-get dist-upgrade and here is the output that I got:


Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
fonts-unfonts-core libdb5.3:i386 libgtkdatabox-0.9.2-0 libidl-common mpg123
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up brltty (5.0-2ubuntu3) ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: Service mountkernfs has to be enabled to start service brltty
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package brltty (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.103ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-52-generic
Errors were encountered while processing:
brltty
E: Sub-process /usr/bin/dpkg returned an error code (1)

Edit: I just realized that I can't mount pendrives. (Ubuntu would give the "Not authorized to perform operation" error)



The problem, after doing some investigation turned out to be a problematic sources list. (can be found at /etc/apt/sources.list) where the version was set to trusty and not utopic. This, I think, was causing the machine to download the wrong updates. So this is what I did:



  • changed all instances of trusty in that file to utopic

  • removed the brltty package as it was causing trouble with the upgrade.

  • ran sudo apt-get update followed by sudo apt-get upgrade and sudo apt-get dist-upgrade This installed the right version of the packages.

  • Restarted the machine and now I have a nice 14.10 running on my machine.

  • The kernel was not installed properly, so I removed the problematic version. Look at this question


And now magically, all the "You are not authorized to do ..." errors are gone. Everything seems to be working fine.


virtualbox - Create bootable Windows 8.1 iso using ubuntu

I'm wondering if anyone can give me some guidance as to how to create a bootable Windows 8.1 installation iso using Ubuntu/Linux. The deal is that I had to extract the files from an existing iso so I could make some mods to the configuration. Now I need to wrap the iso up again and boot into it using virtualbox.


For reasons I'd rather not go into, I can't create a bootable USB or CD, and I can't do this using Windows. Is there a pure Linux solution to my problem?

grub2 - Why does grub store multiple kernels?



Is there some sort of best practice around removing them (when/how/why)? What is the point of keeping them around in the first place and why would you even put them in grub?



I guess there is not a "problem" per say, but I am just curious about that design decision.



Correct me if I am wrong, but you can still use the old kernels with the new user interface right?




The short answer is they are used "as a backup". New kernels are tested on a large amount of hardware before being released, but can't be tested on everything. If an update causes the machine to not boot successfully, then the previous known-good kernel is available as a fallback.


Friday, August 25, 2017

14.04 - Ubuntu Dual boot install with windows 8.1


I have Windows 8.1 on C: drive and i want to install Ubuntu14.04 on D: drive and i will be extending D: drive with E: what i want to know is ,is it fine if i select install "Ubuntu alongside windows" option and is it ok to keep three partitions?


scenario:


C: 100GB Primary partion(Boot,page file,crash dump) <== windows 8.1 installed


D:50GB Logical partition


E:50GB Logical partition <==will merge with D:


F:90GB Logical partition



Try it! Select the alongside option. The installer then will you set how much space is going to be used for Ubuntu. If it shows three partitions, you're fine. But I assume it will attempt to split up the Windows partition. If this is the case, go back and select "Something else".


Now it will ask you to set up everything manually. Do the following:



  1. Delete E: (probably sda3, I can't tell) resize D: (sda2). Leave some space the size of your RAM

  2. Create a new partition between D: and F: of the size of your RAM. E.g. If you have 8GiB of RAM, create a 8GiB partition.

  3. Format this new partition as linux-swap

  4. Format D: as ext4

  5. Select the disk, where all those partitions are on, as bootloader device (most likely /dev/sda)

  6. Apply and install.


This instructions my contain something that won't work, but it won't damage your Windows, if you don't do anything stupid. But you should still create a backup of all your important data, since partitioning can always harm the data on the affected disk.


customization - How can I customize the Ubuntu boot up logo?


I am making a custom distribution, and have a question about the Ubuntu Logo with 5 dots displayed when booting up.


The Ubuntu-Logo-Script in the /lib/plymouth/themes/ubuntutext folder has the word Ubuntu and beneath that 5 progressing 'dots'. Is it possible to remove the progress bar dots, and instead replace it with a faded Ubuntu logo, that gradually colors up to full?


enter image description here



Install Theme


I have created theme as you wanted with a faded Ubuntu logo (moreover I have added an animation of the Ubuntu logo. Hope you'd like it :-P )


Screenshot


Spinning Ubuntu logo and the Ubuntu text logo with a moving fade effect.


Want to see it live?


Go to http://www.youtube.com/watch?v=zPo50gM3txU


Where can you get this theme?


I have uploaded it to Mediafire cloud here.


How do you install it?


Download from the above link, save it on your Desktop, then issue these commands one by one.
Please replace /lib/plymouth/themes with /usr/share/plymouth/themes in the commands, if you are on 16.04 or later.


cd ~/Desktop/
tar -xf ubuntufaded.tar
sudo cp -r ubuntu-faded-screen '/lib/plymouth/themes'
sudo rm '/lib/plymouth/themes/default.plymouth'
sudo ln -s '/lib/plymouth/themes/ubuntu-faded-screen/ubuntu-faded-screen.plymouth' '/lib/plymouth/themes/default.plymouth'
sudo update-initramfs -u

How to check it?



  1. Restart Ubuntu and you'll see a nice animation while booting up and
    shutting down. OR

  2. Copy the whole command below and paste it into a terminal and hit enter. (You will probably need to install a package: sudo apt-get install plymouth-x11)


    sudo plymouthd --debug --debug-file=/tmp/plymouth-debug-out ; sudo plymouth --show-splash ; for ((I=0;I<10;I++)); do sleep 1 ; sudo plymouth --update=event$I ; done ; sudo plymouth --quit



How to create a Plymouth theme yourself


Plymouth Scripting Language is very similar to C or JavaScript. If you know these languages, it'll be very easy to create Plymouth scripts yourself.


Let's start with basics like operators, looping, comments, etc. Three type of comments are supported.


# comment like in bash
// single line comment like in C
/* block comments */

Statements are terminated with a semicolon, e.g.


foo = 10;

Statement blocks can be created with curly brackets, e.g.


{
foo = 10;
z = foo + foo;
}

The supported operators are +, -, *, /, %.
Shorthand assignment operators are also supported +=, -=, *=, etc.
Unary operators are also supported, e.g.


foo *= ++z;

+ is used for concatenation e.g.


foo = "Jun" + 7; # here foo is "Jun7"

Comparison operator example:


x = (3 >= 1); # assign 1 to x because it's true
y = ("foo" == "bar"); # assign 0 to y because it's false

Conditional operations and looping:


if (foo > 4)
{
foo--;
z = 1;
}
else
z = 0;
while (foo--)
z *= foo;

&&, ||, ! are also supported.


if ( foo > 0 && foo <4 )

This may be new to many readers: hashes, similar to arrays. Hashes can be created by accessing their contents using dot or [ ] brackets, e.g.


foo.a = 5;
x = foo["a"] ; # x equals to 5

Use the fun keyword to define function, e.g.


fun animator (param1, param2, param3)
{
if (param1 == param2)
return param2;
else
return param3;
}

The two basic Plymouth objects


Image


To create a new Image, give the filename of an image within the theme directory to Image(). Remember, only .png files are supported. For example:


background = Image ("black.png");

To show a text message you must create an Image of the text. (This might surprise you.) For example:


text_message_image = Image.Text("I love Ubuntu");

Width and height can be found using GetWidth() and GetHeight(); for example:


image_area = background.GetWidth() * background.GetHeight();

One can rotate or change the size of an Image; for example:


down_image = logo_image.Rotate (3.1415); # Image can be Rotated. Parameter to Rotate is the angle in radians
fat_image = background.Scale ( background.GetWidth() * 4 , background.GetHeight () ) # make the image four times the width

Sprite


Use Sprite to place an Image on screen.


Creating a Sprite:


first_sprite = Sprite ();
first_sprite.SetImage (background);

Or by supplying image to its constructor,


first_sprite = Sprite (background);

How to set different the sprite to different positions on screen (x,y,z):


first_sprite.SetX (300); # put at x=300
first_sprite.SetY (200); # put at y=200
background.SetZ(-20);
foreground.SetZ(50);

Or you can set all at once with SetPosition():


first_sprite.Setposition(300, 200, 50) # put at x=300, y=200, z=50

Changing opacity:


faded_sprite.SetOpacity (0.3);
invisible_sprite.SetOpacity (0);

Some miscellaneous methods used are:


Window.GetWidth();
Window.GetHeight();
Window.SetBackgroundTopColor (0.5, 0, 0); # RGB values between 0 to 1.
Window.SetBackgroundBottomColor (0.4, 0.3, 0.6);
Plymouth.GetMode(); # returns a string of one of: "boot", "shutdown", "suspend", "resume" or unknown.
etc.

Predefined Functions


Plymouth.SetRefreshFunction (function); # Calling Plymouth.SetRefreshFunction with a function will set that function to be called up to 50 times every second
Plymouth.SetBootProgressFunction(); # function is called with two numbers, time spent booting so far and the progress (between 0 and 1)
Plymouth.SetRootMountedFunction(); # function is called when a new root is mounted
Plymouth.SetKeyboardInputFunction(); # function is called with a string containing a new character entered on the keyboard
Plymouth.SetUpdateStatusFunction(); # function is called with the new boot status string
Plymouth.SetDisplayPasswordFunction(); # function is called when the display should display a password dialogue. First param is prompt string, the second is the number of bullets.
Plymouth.SetDisplayQuestionFunction(); # function is called when the display should display a question dialogue. First param is prompt string, the second is the entry contents.
Plymouth.SetDisplayNormalFunction(); # function is called when the display should return to normal
Plymouth.SetMessageFunction(); # function is called when new message should be displayed. First arg is message to display.

Mathematical Functions


Math.Abs()
Math.Min()
Math.Pi()
Math.Cos()
Math.Random()
Math.Int()
etc.

It is better to modify an existing script than to start from scratch.


Open up .script file from my uploaded theme and try to understand what it does. A fantastic guide can be found here.


I'm sure you'll learn this. It isn't hard. Let me know if you need any help.


Hope it'd help you create one yourself.


Answer to Roshan George's Comment :
Is it possible to replace the purple colour with an image as background in the default Plymouth theme names "ubuntu-logo" ?


background = Image ("your-image.png");
sprite = Sprite (background.Scale (Window.GetWidth(), Window.GetHeight()));
sprite.SetX (0); # put at x=0
sprite.SetY (0); # put at y=0

You might need to add sprite.SetZ (-10);


You should remove


Window.SetBackgroundTopColor (p, q, r);
Window.SetBackgroundBottomColor (a, b, c);

where p, q, r, a, b, c are some values.


More links


system installation - Installing Ubuntu on blank hard drive

Ok so I took the hard drive out of my old laptop to use as an external however now I want to use it in the old laptop again so that I can mess with Linux. Again, I did reformat it to the "default settings" which was FAT. I have installed Ubuntu on a flash drive the way that the website has says however when i put it in and restart my computer it says "Please remove all disks and restart computer". How can i solve this problem and install Ubuntu properly?


Comp Specs:
Sony Vaio
I3 processor
4 gb of ram
500gb HD

System requirements for ubuntu touch?



The system requirements for ubuntu touch are not completely obvious to me.




Ubuntu for Android drops in cleanly alongside the rest of Android, so
it is easy to integrate into current production roadmaps. The hardware

requirements are straightforward and, with a broad range of ARM and
x86 hardware supported, it can realistically be added to phones
already in development.



Of course, your phone needs the docking capability and hardware
support for HDMI and USB. But that’s standard for high-end models in
the current generation of devices in development.




Well the "HDMI" requirement probably only applies if you want to use a monitor. I really want to install ubuntu touch on my phone, is there a list of all supported hardware pieces available?




I am curious if it could work with http://www.gsmarena.com/sony_ericsson_xperia_mini-3947.php



According to this site https://wiki.ubuntu.com/Touch/Devices



Only The Sony Xperia S & T are currently, they are in Work In Progress although.



Forum devoted to Ubuntu Touch work in progress development



http://forum.xda-developers.com/forumdisplay.php?f=2068



Thursday, August 24, 2017

auto login - Autologin on lubuntu 14.10

How can I enable autologin on lubuntu 14.10?
I tried various method like this LXDE Auto Login but they don't work.

networking - Ubuntu 16.04 Network Issues


I have been having issues with networking for a very long time. The worst is when I am at home but there are also issues at school sometimes. I'll start from the beginning.


I first started having issues when I moved in with my family. I had Windows 10 and the wifi would sometimes disconnect. I installed ubuntu 16.04 on that laptop and still had issues connecting and with random network drops. At this point, `sudo service network-manager restart' usually works for a short time, but then it starts acting up again an hour or two later. I assumed at this point the issue was with my wireless card and I went out and bought a new laptop.


EDIT: also note that at this point I had no issues when I was on campus or if I used the mobile hotspot on my phone or tablet. It was only the home router that refused to stay connected).


I am now on a dell laptop that is specifically listed as being compatible with Ubuntu (a Dell Latitude E6420). I immediately installed Ubuntu 16.04. At this point the only issue with networking was the occasional network drop and reconnect, usually after coming back from suspend.


I upgraded to Ubuntu Gnome 16.10 and the issues got worse. Now I am back to Ubuntu Gnome 16.04 and nothing is getting better.


I have tried using wicd but wicd doesn't even connect to the network unless network-manager is running, and even then it doesn't make a difference. This seems to be the only solution anybody can come up with. I don't know what commands to use to get more information so let me know and I will tell you what you need.


$ ifconfig
eno1 Link encap:Ethernet HWaddr e0:db:55:dd:5a:82
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:e6e00000-e6e20000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:9454 errors:0 dropped:0 overruns:0 frame:0
TX packets:9454 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:709546 (709.5 KB) TX bytes:709546 (709.5 KB)
wlp3s0 Link encap:Ethernet HWaddr 84:3a:4b:56:4a:9e
inet addr:192.168.0.17 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::5f18:be7:8291:2b8f/64 Scope:Link
inet6 addr: 2607:fcc8:6a41:3900:36b3:fd71:a6b3:97bf/64 Scope:Global
inet6 addr: 2607:fcc8:6a41:3900:4545:66d0:48b:b8e2/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25275 errors:0 dropped:0 overruns:0 frame:0
TX packets:17066 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27895660 (27.8 MB) TX bytes:2478205 (2.4 MB)
$ sudo lshw -C network
[sudo] password for guinevere:
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eno1
version: 04
serial: e0:db:55:dd:5a:82
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.13-3 latency=0 link=no multicast=yes port=twisted pair
resources: irq:30 memory:e6e00000-e6e1ffff memory:e6e80000-e6e80fff ioport:5080(size=32)
*-network
description: Wireless interface
product: Centrino Advanced-N 6205 [Taylor Peak]
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 34
serial: 84:3a:4b:56:4a:9e
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=4.8.0-36-generic firmware=18.168.6.1 ip=192.168.0.17 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:29 memory:e6d00000-e6d01fff


It might be worth disabling the n option of the IEEE802.11 and the power management.


The instructions on how to achieve this can be found in the link below under the Force Disable 802.11n heading.


https://www.linux.com/learn/tips-and-tricks-get-most-out-your-linux-wifi


11.10 - How do I reinstall grub2?

Having tried all day to reinstall grub and trawling the internet I have had no luck. I can no longer boot into ubuntu and have tried boot disk frin yannubuntu but the grub tabs are greyed out. Other methods will not install it on sda1. I have no other os to boot into but have a live usb. Please help

software center - 'Some index files failed to download' while updating



When running sudo apt-get update I get these following errors:



Err archive.ubuntu.com quantal InRelease

Err archive.ubuntu.com quantal-updates InRelease
Err archive.ubuntu.com quantal-backports InRelease
Err archive.ubuntu.com quantal-security InRelease
Err archive.ubuntu.com quantal Release.gpg
Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err archive.ubuntu.com quantal-updates Release.gpg
Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err archive.ubuntu.com quantal-backports Release.gpg
Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err archive.ubuntu.com quantal-security Release.gpg

Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Reading package lists... Done
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal/InRelease
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-updates/InRelease
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-backports/InRelease
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-security/InRelease
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-updates/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-backports/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]
W: Failed to fetch archive.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg Unable to connect to archive.ubuntu.com:http: [IP: 91.189.92.177 80]

W: Some index files failed to download. They have been ignored, or old ones used instead.


I am using Ubuntu 12.04.
This is the command I used after installing Ubuntu from window installer.
I am sure my laptop is connected to internet. What can I do now?



Just open synaptic manager, install/reinstall ubuntu-extras-keyring and then (in terminal) type sudo apt-get update.



cheers u'd get out from this error.



installation - differences between ubuntu touch and ubuntu-touch-preview

does anyone know what the differences between ubuntu-touch and ubuntu-touch-preview are?


see their links at:


http://cdimage.ubuntu.com/ubuntu-touch/daily-preinstalled/current/


http://cdimage.ubuntu.com/ubuntu-touch-preview/daily-preinstalled/current/


Also, the instructions explain the use of zip files for installation but it never explains what the use of those img files are. Can anyone explain?

ati - Unity 3D doesn't work on ubuntu 12.04 LTS in virtual box hosted by Windows 7 64bit

Can't google out the solution through some time so I'm asking here.


I have installed Linux Ubuntu 12.04 LTS in virtual box hosted by Windows 7 64bit


Simple >>>my 3D stopped working after some kernel headers update<<< few months ago. Just like that. I don't member which version was it.


In meantime there was 2 or 3 new releases of VirtualBox which I have installed.
Every time I am updating VirtualBox Guest Additions to the newest version.


My 3D in Ubuntu still doesn't work.


root@pjadmin-VirtualBox:~# /usr/lib/nux/unity_support_test -p
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x300)
OpenGL version string: 2.1 Mesa 8.0.2
Not software rendered: no
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: no

My graphics card in PC is ATI 6850. Please help.

dual boot - Expanding Windows partition easily




When I installed Ubuntu onto my hard drive, I already had Windows installed. I had to allocate space for Ubuntu, and I did so using a cute little slider.



I made my Ubuntu partition a bit too big (Windows doesn't have much space left right now) so I want to expand Windows and shrink Ubuntu.



Is there any idiot-proof way to do this (preferably by getting the slider back)? GParted gave me tons of scary warnings, and I remember how there were no such hassles when I was resizing partitions during my initial Ubuntu install.



Here is a GParted screenshot, if it helps.



Thank you!




Given your current state, and assuming the amount of free space is what you want to add to Windows, you must:




  1. Move your Ubuntu partition (/dev/sda5) to the right.

  2. Shrink your extended partition (/dev/sda4) to its smallest possible size. (You must shrink it from its left side.)

  3. Grow your Windows partition (/dev/sda2) to fill the free space.



Unfortunately, I know of no tool that lets you resize an already-installed system in as simple a way as the installer did. Also, these operations are not risk-free. Moving the Ubuntu partition is particularly risky, since a lot of data structures will have to be re-written. You might want to grow the Windows partition using Windows tools rather than GParted, since GParted relies on a reverse-engineered understanding of NTFS and might mess things up. To minimize the risks, back up all your important personal files before you begin.




An alternative that's much safer is to create a new partition in the free space. Make it FAT or NTFS and Windows will be able to use it. This is likely to be less convenient, but it has some other advantages. For instance, if you use that new partition to store all your personal files you might want to access from either OS, you can configure Ubuntu to not access the main Windows partition at all. This reduces risks to that partition, since it then becomes much less likely that an errant command in Ubuntu will wipe out Windows, or that a driver bug will do the same. OTOH, the configuration that you'll get from this will be less efficient, since when you're in Windows, the disk's head will have to seek over the Ubuntu partition when accessing both the original Windows partition and your new partition. The sizes also might not be optimal. Nonetheless, it's worth considering this approach. Given your unfamiliarity with the tools, I'd say it's the preferable solution.


drivers - kernel 4.18.0.11.12 trouble: Video black screen



I've had a comedy of video errors that all trace back to a kernel upgrade in Ubuntu 18.10 cosmic. The kernel 4.18.0.11.12 causes trouble, well, in every conceivable way and I can't quite understand why it works for anybody.



In case you have "black screen of death" at various phases, my suggestion is to resist advice to fiddle a lot with config for video or display manager. Instead, boot with older kernel to see if problems disappear. Hardest part for most users will be figuring how to make Ubuntu show a grub menu to choose a kernel (they've made that tricky, but have instructions: https://wiki.ubuntu.com/RecoveryMode).



The symptoms of the problem revolve around




  1. Black screen of death with message about rejection of PKS keys


  2. Unable to start display manager (gdm3 or lightdm)

  3. External monitors not recognized (by desktop programs or xrandr)

  4. Black screen of death on resume from suspend.



This is a Dell Precision 5510 laptop with Nvidia and Intel graphics:



    *-display
description: 3D controller
product: GM107GLM [Quadro M1000M]

vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: irq:125 memory:dc000000-dcffffff
memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:e000


*-display
description: VGA compatible controller
product: HD Graphics 530
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 06
width: 64 bits
clock: 33MHz

capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:126 memory:db000000-dbffffff
memory:70000000-7fffffff ioport:f000(size=64) memory:c0000-dffff


I did not realize that the kernel update was at the heart of my trouble, I chased a lot of symptoms that pointed at the use of either gdm3 or lightdm as the display manager, then the Nvidia drivers, then modesetting, but in the end I conclude this particular kernel causes problems that I'm not able to solve. I'm back running the 4.18.10



The first symptom I saw was a failure to start. After the grub phase, I had black screen freeze-up with the message




PKCS#7 signature not signed with a trusted key


The system did not respond to Alt-Ctl-F2 or such, no VT was possible. Comments in this forum pointed the finger at the Nvidia drivers. In retrospect, this may be a gdm3 flaw, rather than Nvidia (Ubuntu 18.04 Boot hangs at PKCS#7 signature not signed with a trusted key, Ubutnu 18.04 - after upgrade - Display/PKCS#7 signature error). I never solved it.



I used the recovery login to clear out the Nvidia drivers and move xorg.conf out of the way. I'd run with the intel drivers.



After that, when gdm3 was the display manager, I came to black screen with just a single "_" showing top left on the screen. One suggestion was that gdm3 was trying to launch a Wayland session. I tried the fix to disable Wayland (gdm3 does not start in ubuntu 18.04), no help. Those posts suggest there is a way to make gdm3 work, but more posts recommend using lightdm instead.



So I changed display manager to lightdm. However, even after that, I had black screen of death after grub and I found advice about putting settings in the grub setup for nomodeset or enforce restrictions on nouveau. After a lot of fiddling around, the system would reach the login window. However, I saw 2 problems after that. The video would not resume after suspend (but I could log in with SSH) and external monitors were not detected (probably because of all the no mode setting steps I'd taken).




Not realizing that the mode settings were probably causing the external monitors to be ignored, I re-installed the nvidia drivers (hoping somehow the PKCS key issue would solve itself). That resulted in a black screen of death at startup, but Alt-Ctl-F2 did allow a VT so I could look at dmesg.



After a lot of restarts, I finally decided to try the older kernel, 4.18.0-10, and after that lightdm would start. Suspend would work. I had to remove all of the nomodesetting things I'd put into grub config (and re-run update-grub) in order to get external monitors to work. Also, in the nvidia file /lib/modprobe.d/nvidia-kms.conf, it had to be put back



# This file was generated by nvidia-prime
# Set value to 0 to disable modesetting
options nvidia-drm modeset=1



and initramfs had to be executed.



I have found many sites and posts about video problems and they may offer helpful advice, but none of them helped me with kernel 4.18.0.11.12. I spent a couple of days chasing those fixes, but wish I had just tested the older kernel first.



My suggestion if that if an update in the kernel occurs, and you start to have black screen or other video problems, be a bit patient with trying to bugshoot those things in the usual way. Run the older kernel to see if it works, and if it does, use it and be happy until the new kernel's problems get worked by the experts.



The only "video fix" that I've learned is--absolutely for sure-- valuable is to remove 2 lines from /etc/environment. I don't know for sure how these lines were inserted in there, but it happened in a previous version of Ubuntu (either by a package like gnome-wobbly-windows or by my manual effort to fix screen tearing in 2017). These last 2 lines in /etc/environment about CLUTTER need to be commented out (or deleted entirely):



PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
## CLUTTER_PAINT=disable-clipped-redraws:disable-culling

## CLUTTER_VBLANK=True


If you don't make that change, then video inside Ubuntu Gnome desktop with nvidia drivers is fragmented and choppy. Those 2 lines were, so far as I can tell, inserted by some special-effects packages in older Ubuntu (maybe 17.10) and they were causing lots of trouble for me only with Gnome, but not with XFCE4. Because the problem appeared only in Gnome, I knew it was not an Nvidia problem. (Graphics problem on Ubuntu 18.04 - blurred text + screen flickering)



About troubleshooting with the new kernel: I'm willing to try again, but I want somebody to give advice about whether it is useful to even try and what is the best way to go about it.



I have one avenue to fix the gdm "black screen" problem. Please see the post on the Nvidia Linux forum: https://devtalk.nvidia.com/default/topic/1044730/linux/x-displays-in-a-small-section-of-screen-something-in-my-grub-setup-wrong-



I made a number of changes before we understood the fundamental problem. The gdm package, at some point, created the user gdm with an incorrect user number and it created the user's home folder in /home/gdm. In order to fix this, I had to force remove the gdm package, then manually delete the gdm user from /etc/passwd and /etc/group. Then upon re-install, I got a new gdm user with a uid below 1000 and no new folder in /home/gdm. That change, by itself, may correct the problem. It is for sure causing the black screen of death if your user id (in /etc/passwd) is greater than 1000.




However, I made other changes. With the newest Ubuntu kernel, I am sure that the following boot elements are needed to prevent the black screen of death upon resume from suspend:



That details the steps I took. I have a block in the /etc/default/grub file like so:



GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
## GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nosplash"

GRUB_CMDLINE_LINUX="nouveau.blacklist=1 acpi_rev_override=1 acpi_osi=Linux nouveau.modeset=0 pcie_aspm=force drm.vblankoffdelay=1 scsi_mod.use_blk_mq=1 nouveau.runpm=0 mem_sleep_default=deep"


There is a kernel bug that necessitates this (according to the Nvidia forum).



Second, in /etc/default/, it had been suggested to set



[daemon]
WaylandEnable=false



This was needed to encourage gdm to use X11 rather than Wayland. However, after testing today, I find gdm3 starts whether or not I have that setting.



Third, I'm running nvidia-driver-410. I believe this will also work with nvidia-driver-390 or nvidia-driver-415. However, after the gdm fix worked, I stopped plugging in alternative drivers.



The nvidia drivers are installed from the PPA:



$  cat graphics-drivers-ubuntu-ppa-cosmic.list
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu cosmic main
# deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu cosmic main



EDIT 2018-12-07: I forgot to mention this additional change:



in /lib/modprobe/nvidia-kms.conf, I turned off kms mode setting:



$ cat /lib/modprobe.d/nvidia-kms.conf
# This file was generated by nvidia-prime
# Set value to 0 to disable modesetting
options nvidia-drm modeset=0



I believe that was an important step in dealing with the problem that the laptop screen was not "filled up" by the X11 display.


wireless - WiFi adapter not found in Ubuntu 18.04

I have recently installed Ubuntu 18.04 in my hp 15bs 145tu laptop. All packages of Ubuntu seem to be working properly but the WiFi adapter is not found, and I can't connect to the wireless network.




How can I debug/fix this?

ubuntu touch - how do I run a mir application from a command line?

I want to run webapp-container from the local terminal on an Ubuntu Touch phone, or run it from an ssh session into the phone. I am looking for something like the DISPLAY environment variable to set to tell it where to put the user interface, but this is MIR, not X, so I can't do that. Is there a way to start Mir clients and tell them what their server is?



phablet@ubuntu-phablet:~$ webapp-container http://www.ubuntu.com
UbuntuClientIntegration: connection to Mir server failed. Check that a Mir server is

running, and the correct socket is being used and is accessible. The shell may have
rejected the incoming connection, so check its log file
Aborted (core dumped)


Do I have to do something to make the Mir socket accessible?

Wednesday, August 23, 2017

14.04 - How to upgrade JUST the kernel?




I am trying to upgrade my kernel, but I would like to avoid updating all of the packages that a sudo apt-get dist-upgrade causes. I am running Ubuntu 14.04, if that matters. Is there a way to only upgrade the kernel?



You can upgrade just the kernel by running the following command:



sudo apt-get update && sudo apt-get install linux-image-generic


If you need headers for building kernel modules as well, you can also install them like so:




sudo apt-get update && sudo apt-get install linux-generic


It will update both linux-image-generic & linux-headers-generic.


unity - bamfdaemon causing performance issues in Ubuntu 14.04

Recently I've been having performance issues (sluggish switching between workspaces, icons not being removed from tray upon closing, etc...) on my computer which runs Ubuntu 14.04.


I've found the culprit to be a process called bamfdaemon because a kill command temporarily resolves the issues.


However, after a short time, it always comes back and running a top command shows that it holds a steady 99-100% CPU.


Any ideas?

installation - Bricscad V12 on ubuntu 11.10!



i tried to install bricscad from the deb file but is for 32bit systems.So i had problems and i downloaded the .tgz file and ran tar -xvf and i was in the directory /opt/bricsys/bricscad/v12

So i managed to run bricscad with the command sudo sh bricscad.sh in the directory this.So my question is, do you have any idea of how to make a launcher or smthing so i can run the program from an easier way?I cannot find it in dash(unity) or in the desktop.



Any help will be great! Thanks



Yes, you can create the launcher you need.
Fist of all, my Ubuntu is in Spanish, so I will translate some words; I hope you understand me.



1.- Create a proper script that run the Bricscad script.



Open gedit and write this:




#!/bin/bash
cd
sh .bricscad.sh


Save the file into your personal folder (/home/your_user_name) with the name .run_cad.sh (the fist dot hides the file, only if you want to hide it).



2.- Create the launcher.




For Unity: Press the Super key (that one it usually has the MS Windows logo) and write Main Menu (this is my translation from spanish). So, you will find a program to create launchers. Select a menu, for example Graphics, and then click on the New Item button. Select an aplication type, choose a name, an icon, a comment, and for the command option write sh .run_cad.sh.



3.- Create a Unity launcher (optional).



If you want an icon on the Unity launcher, look for your app using the dash, and then drag it and drop it over the Unity laucher.



Ariel


boot - How to Speed Up Booting Time ? (Bypass Grub)

I recently installed Ubuntu 16.04 as my Default and only OS.

Whenever I boot up, A Grub Menu Appears and I need to choose a option manually.
Since every time my only option will be 'Ubuntu'
Therefore I want that My Laptop should directly boot into Ubuntu without asking it.



Is there a way to speed up this process and disable Grub?

13.10 - How can we setup Startup tasks




In Windows we can add applications/batch scripts to open automatically on startup. Is there something similar in Ubuntu, or Linux in general?




To setup tasks to run on login, use gnome-session-properties. This means you can add programs to run when you login to user account on your machine.



You can configure it like this - just add the command you want to run in the command box:
config



Very long answer on that here



To get things to run when the computer boots, use rc.local:




You can edit it with sudo nano /etc/rc.local, or gksudo gedit /etc/rc.local.



Makes sure it has this line at the start of the file:



 #!/bin/sh -e


Below that, you can place commands that will run as root when you start the computer.



Also make sure it has this line at the end:




exit 0


More on that here


grub2 - GRUB menu not appearing

I have a laptop with windows XP installed.


I installed ubuntu 13 as a dual boot and everthing appeared okay


Later on I booted with windows and since then the GRUB menu is never displayed when the machine is booted.


If I use a USB to boot ubuntu I can see the various linux and windows partitions


What should I do?


Richard

password - I can adduser and login through the Terminal but not through the GUI

What should I do in this case?



I added the user through "adduser" command. The user has a Home-Folder, but when trying to login through the GUI, it always says "wrong password"! What should I do?

performance - Debugging desktop loading delay

Something is causing my desktop to take a long time to load (~15s). I can log in, and it displays my wallpaper, but i cant see my desktop or any menus for reasonably long period of time. How can i find out whats taking so long to load?




Im using 11.10 x64

Tuesday, August 22, 2017

ati - Ubuntu lags on Alienware m15x


I have an Alienware M15x with the following specs


Intel Core i7 920M
Ati 5870M
500GB HD
4GB RAM


I've been running Ubuntu for a while on my work computer with an second generation i3, 8gb ram and a 500gb HD and without a video card without problems for months now.


But on my laptop it lags alot. I installed the ATi drivers from the website. But when I look in my system details it says:


Graphics: VESA: BROADWAY


Shouldn't it show my 5870M?



Did you ever seen a popup like this one? This is the easy way to install proprietary video drivers (I have nVidia but the procedure should be the same). Otherwise you can try the official Ubuntu page that also explains how to install Catalyst drivers. Finally, you can also look at this thread: the command line tool to call the "restricted drivers" window from the shell should be jockey-text.


11.10 - How to enable 3D acceleration under VMware workstation 8?

I saw there are similar questions, but I don't think they answer exactly my questions.



Did anyone managed to get 3D acceleration work under VMWare workstation 8? I have VMware 8.01 installed on Ubuntu 11.10. The guest I am trying is also Ubuntu 11.10.




I manually installed vmware-tools and it went well, except the X-config part was skipped as it said the distribution driver is used. The guest runs well but it seems fall back to 2D mode.



Does any one has any idea how to enable 3D acceleration under VMWare workstaion with Linux guest?

14.04 - Which one is the latest upstream kernel?



I reported a bug on Ubuntu and now the person assigned to me is asking me to test the latest upstream kernel:




could you please test the latest upstream kernel available from the
very top line at the top of the page (the release names are irrelevant
for testing, and please do not test the daily folder) following
https://wiki.ubuntu.com/Kernel/MainlineBuilds ? It will allow

additional upstream developers to examine the issue.




I've installed kernels before and used them, but by "latest upstram kernel", did he mean the latest kernel found on http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D for my particular distro(this) or this one??



They mean not the latest kernel for Ubuntu distro, but latest kernel released upstream.



I suggest testing 4.0.5 and 4.1rc6.



Officially latest released kernel is 4.0.5. But a fix may be found in release candidate.




And you see that they wrote release names are irrelevant for testing.


Ubuntu 16.04 messed sources.list

where can I find the good sources.list for 16.04.1? I messed it up and do not make a backup. Please let me know where I can find the good one?

package management - What is the standard source list file for 18.10?


I've badly damaged my package system. So I found another solution,
sudo apt-get build-dep


But when I typed sudo apt-get build-dep update-manager, I got,


E: You must put some 'source' URIs in your sources.list

Then I accessed it using the sudo nano /etc/apt/sources.list. The list was blank. Now I'm unsure on how to add more source URIs. I cannot access the software updater to change it. I've tried Synaptic Package Manager.


sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package python3 needs to be reinstalled, but I can't find an archive for it.

Update:


I have edited sources.list using @karel's answer on What is the correct output of cat /etc/apt/sources.list? and replacing bionic with cosmic.


Now when I try to launch software-properties-gtk, I'm getting:


bash: /usr/bin/software-properties-gtk: /usr/bin/python3: bad interpreter: Too many levels of symbolic links

Outputs for symbolic links of python3:


$ ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 18 May 27 20:30 /usr/bin/python3 -> /usr/bin/python3.6
$ ls -l /usr/bin/python3.6
lrwxrwxrwx 1 root root 25 May 27 16:31 /usr/bin/python3.6 -> /etc/alternatives/python3
$ ls -l /etc/alternatives/python3
lrwxrwxrwx 1 root root 18 May 27 16:31 /etc/alternatives/python3 -> /usr/bin/python3.6



Output of ls -l /usr/bin/python*:


lrwxrwxrwx 1 root root      18 May 27 23:10 /usr/bin/python -> /usr/bin/python3.2
lrwxrwxrwx 1 root root 9 Jun 7 2018 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3691008 Apr 9 05:50 /usr/bin/python2.7
lrwxrwxrwx 1 root root 18 May 27 20:30 /usr/bin/python3 -> /usr/bin/python3.6
lrwxrwxrwx 1 root root 25 May 27 16:31 /usr/bin/python3.6 -> /etc/alternatives/python3
lrwxrwxrwx 1 root root 33 Apr 9 05:59 /usr/bin/python3.6-config -> x86_64-linux-gnu-python3.6-config
-rwxr-xr-x 1 root root 4530552 Apr 9 05:59 /usr/bin/python3.6m
lrwxrwxrwx 1 root root 34 Apr 9 05:59 /usr/bin/python3.6m-config -> x86_64-linux-gnu-python3.6m-config
-rwxr-xr-x 2 root root 4804160 Apr 9 05:56 /usr/bin/python3.7
-rwxr-xr-x 2 root root 4804160 Apr 9 05:56 /usr/bin/python3.7m
lrwxrwxrwx 1 root root 16 Oct 25 2018 /usr/bin/python3-config -> python3.6-config
lrwxrwxrwx 1 root root 10 Oct 25 2018 /usr/bin/python3m -> python3.6m
lrwxrwxrwx 1 root root 17 Oct 25 2018 /usr/bin/python3m-config -> python3.6m-config


You've learned a valuable lesson today: Backup files before editing them.


sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

If you mess up the file, you can copy the backup and start again:


sudo cp /etc/apt/sources.list.bak /etc/apt/sources.list

Things to think about:



  1. /tmp files are removed on reboot. Be careful when backing up to /tmp.

  2. Be careful and ensure backed up files don't contain and leak sensitive information.




To restore your sources.list file, you can empty out the sources.list file, and then use software-properties-gtk to re-create the list. Details about this process are found in this answer, but you use the GUI to uncheck and check which sources you want. You need at least "main", and will likely want "universe" as well. After you enable these, be sure to update your database via apt update.


wireless - Have Broadcom Modem, worked prior to Ubuntu 16.04 installation

tom@tom-Vostro-1000:~$ sudo apt install firmware-b43-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package firmware-b43-installer

NVIDIA X Server Display Configuration - I don't have any resolution! (Ubuntu 13.04)

I have some problems with configuring the resolution of my screen in Ubuntu 13.04. The data of my hardware:


Acer Aspire V3-531G


Intel B970 processor (2.3GHz dual core)


NVIDIA GeForce GT 630M


My laptop has Optimus technology, hence I use Bumblebee for the nvidia driver to work properly. Bumblebee is working well, I can tun the optirun command. I start the NVIDIA Settings panel with the command:


optirun nvidia-settings -c :8

I saw this method in an other post in this site (I don't understand, what does it mean, but after so many troubles with my nVIDIA-card, I'm happy that it works).


As the Control Panel opens, and I try to change the screen resolution, I'm unable to do it, because the monitor isn't detected. I don't have the "Display" panel, hence I don't have the possibility to change the resolution. Here I link the image:
http://imgur.com/h9zybeE&GDoCVPu


Hope you can fix this error!


Sincerelly:
Michael

Preseed proxy setting for local repository


I'm trying to set up a preseed configuration for Ubuntu 14.04 network installation from the example on the official documentation. I am affected by the proxy bug on choose-mirror. I'm using an apt-cacher-ng proxy. Due to this, adding a local repository fails, as the key cannot be downloaded through the apt-cacher-ng proxy. Usually I get an error about the key itself. Then I tried using a random gpg key from the mirror specified in apt-cacher-ng backend (in.archive.ubuntu.com, in this case). The error about the key vanished (at least the related prompt didn't appear), but the local repository was still not added, even though I had set:


d-i debian-installer/allow_unauthenticated boolean true

Using my campus mirror directly, thus avoiding the proxy, throws up an error about grub-pc failing to install (perhaps due to some problem with the mirror?).
What can I do use both the cacher and the local repository together? I can think of the following possibilites:



  1. apt-cacher-ng has an option to let some domains/urls slide, instead of outright rejecting them.

  2. debian-installer has a way to use the local repo without a key.

  3. debian-installer has a question for more specific proxy settings (e.g., only for apt (ideal), no_proxy lists, etc.).

  4. Install one package by itself (which contains the key for the repository and a sources.list.d entry), before d-i starts installing packages.

  5. wget the key and the list entry directly and add it, do apt-get update and other package installation via script in post install.

  6. Find some way to fix the grub-pc error when using the local campus mirror directly.



As such, I am using a workaround. The proxy I have set in preseeding is an HTTP proxy, so naturally HTTPS and FTP connections are unaffected. However, the installer does not support HTTPS as a transport mechanism (possibly apt-transport-https has to be installed somehow). So the option that remains is setting up an FTP server for the signing key, which I did using vsftpd. I didn't want the apt-cacher to do any work for the local repository, so I set up vsftpd to serve as an FTP repository as well.


11.10 - Can&#39;t boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...