Saturday, September 30, 2017

command line - Shell Script Desktop Shortcut

So I tried making a desktop shortcut which executes a very simple shell script.
But when i double click/right click->execute it, it does nothing. (or at least I think it does nothing)




heres how my shortcut and shell script looks:
Note the shortcut has "Terminal" set to 1, and i hope that means that it opens the shell script in a new terminal window.. (i have a couple terminals already open, which arent ready for usage (have scripts running))



Shortcut:



[Desktop Entry]
Version=1.0
Type=Application
Name=Test
Comment=Test

Exec=/home/(myusername)/test/test.sh
Icon=utilities-terminal
Terminal=true
StartupNotify=false
GenericName=Test


Shell Script:



#!/bin/sh

# (I tried both, /bin/bash and /bin/sh)
echo "hi"

gcc error in Ubuntu 18.04

I try to compile hello.c using gcc with -mnop-mcount option. But error occurs like below:




$ gcc -pg -mfentry -mnop-mcount -o hello hello.c
cc1: error: -mnop-mcount is not implemented for -fPIC


My gcc version is 7.3.0:



$ gcc --version
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


And my Ubuntu version is 18.04 LTS:



$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04

Codename: bionic

GCC 4.8.1 to GCC 4.6.3

i am using ubuntu 12.04. Initially ubuntu 12.04 have gcc 4.6.3 with it. I upgraded it to 4.8.1. But now one of my application that was working fine with 4.6.3 are not working with 4.8.1. I want to downgrade it to 4.6.3.

Which AMD Graphics card should I install the driver for on Ubuntu 18.04?

I have two AMD Graphics Cards on my system.



I am quite sure that the Radeon HD 7640G works better than Radeon HD 7500M/7600M Series.



I would just like to use only the 7640G and install proprietary driver from AMD site for the same.



A screenshot to about my System Info has also been provided below.




Any suggestions are most welcome.



Thank You



lspci -nn | grep -E 'VGA|Display'



00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7640G] [1002:9903]



01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7500M/7600M Series] [1002:6840]




System Information Screenshot Link

Downgrading from ubuntu 11.10 to 10.10, keeping installed programs


I recently upgraded from 10.10 to 11.04 then 11.10, and I'd like to revert back to 10.10. I understand that you cannot downgrade a version as easily as you can upgrade, and that I'll probably have to get the boot CD again and reinstall the whole thing.


I know that I can keep most of my files by saving the /home directory, so 2 questions:
Once I've gone back to 10.10, can I juts copy my old version of home over the freshly installed one?


Is there a way to keep all of my installed programs, or some sort of way of getting the new install to automatically install them? Will I have to go through the tricky setups of things like TeX all over again?


Thanks



Here’s a simple tutorial on how to backup a list of all your installed repository applications, and restore them to another machine, perhaps even the same machine after a clean installation. This can save you an incredible amount of time, especially when this task must be repeated often.


First, from a computer with all the applications preinstalled, retrieve your installed package list and redirect the output to a file called packages.txt. Save this package list somewhere so that you can use it for the restore process.


sudo dpkg --get-selections > packages.txt

To restore all the applications from your list, you must follow a three step process very carefully.


sudo dpkg --clear-selections
sudo dpkg --set-selections < packages.txt
sudo aptitude install

You will be prompted to install all the new applications in the list. Another example of what this process allows you to do is create a baseline of all the applications after a clean installation of Ubuntu. Let’s say you would like to remove any applications installed since the clean install, perform the exact same process, and any package not defined in that list will be removed.


sudo dpkg --get-selections > clean-install-package-list.txt
sudo dpkg --clear-selections
sudo dpkg --set-selections < clean-install-package-list.txt
sudo aptitude install

The very first command of “–clear-selections” marks all currently installed packages to the state “deinstall”. When you restore the list of applications using “–set-selections”, only packages ommited from the list will remain in the “deinstall” state. Aptitude will honor the deinstall state and remove the extra packages, leaving you only with packages from the list.


software installation - Upgrading from Ubuntu 14.04 to 16.04

How do I upgrade from Ubuntu 14.04 to 16.04 with the help of CD. Further, will my old programs from release 14.04 work after I upgrading to 16.04?

drivers - How to fix/diagnose GUI issues on Ubuntu 18.04/18.10?

For the past few weeks, there have been some issues with the GUI lately. I believe these issues started when I installed CUDA 9.0.



My machine:




  • GPU: GeForce GTX 1060 Mobile + Intel HD Graphics

  • OS: Ubuntu 18.10 Cosmic Cuttlefish




GUI Issues:




  1. When switching to tty1 and logging in, the login screen's mouse
    cursor is still there (doesn't occur anymore)

  2. Sometimes the, when I try to lock the screen, the display freezes on the Desktop and then a glitch occurs: the system menu keeps showing up multiple times on top of each other)

  3. When I login, the screen flashes a couple of times and lags a bit
    before rendering the desktop (I believe this is because of a new TTY is starting up for X Server, although it doesn't happen when I switch to Intel Graphics from NVIDIA X Server Settings -> PRIME Profiles)

  4. Sometimes when I logout and try to login, a "login loop" occurs where the I enter the password and the login screen keeps showing up instead of the desktop (I have to use chmod on .Xauthority to login)

  5. When I lock the screen, and close the lid (suspend) then open it again, I find myself logged out.




At first I had Ubuntu 18.04 LTS, I thought if I upgraded to Ubuntu 18.10, these issues would be fixed but nothing happened.



Other things I tried:




  1. Reinstalled the NVIDIA drivers

  2. Uncommented WaylandEnable=false line in '/etc/gdm3/custom.conf'

  3. Switched to LightDM (new issues occured so I switched back to GDM3)


  4. Reinstalled GNOME and GDM3

  5. Reinstalled X Server (using apt install --reinstall)



Is there any way to further diagnose/fix this problem? The only solution I'm thinking of is to install Ubuntu 16.04.

distro recommendation - Ubuntu or XUbuntu on old computer



We've got an old computer at home which has really been left unused for a few years. It was the 'family computer' for a few years, and it is absolutely clogged down with programs, and runs so slowly it is almost useless - I'm sure you know the type. I think we got it new in 2004, and from memory, the specs are:



512 mb RAM




40 GB harddrive



2.0 GHz processor



I'll have to double check about the graphics card, but I'm pretty sure it's less than 128 MB



Anyway, a friend recommended Ubuntu to give this old computer a new lease on life, but I just wanted to ask here if there's anything I ought to know before going ahead with this. In particular, should I use an older version of Ubuntu, or possibly XUbuntu (which I've seen people talk about here), as for me quick response is far more important than flashy icons that may lag when you click them.



I'd rather not spend any more money on hardware. As I say, this computer is effectively unused today, and if we could just restore it for lag-less web browsing and word processing I think we'd call this a success.




Thanks for your help!



Based upon your specifications, Xubuntu will be a better fit since the minimum requirement is 256Mb RAM.



RAM is the key - your processor is fine to run any version of Ubuntu.



If you can invest in some more RAM then Unity 2D will work for you. If you have a 3D Accelerated graphics card then you could also use Unity-3D or Gnome-Shell.



Xubuntu has a great compositor built-in - so you can get fairly good visual effects without the "lag". Since this is a "family" computer - I presume you previously have had MS Windows installed. You'll find the Xubuntu interface fairly similar - a panel based desktop with a "start" button and icons for open windows on the panel.




enter image description here


Friday, September 29, 2017

Dual boot Windows 7, Ubuntu 14.04 - can not load Windows

Good evening,
after installing Ubuntu 14.04 as a dual boot with till now working windows 7, I can not boot windows. When I try to, a black screen appears and tells me to insert the windows installation disc to repair it and follow another 2 instructions (but I bought my computer with pre installed Windows, so I can not go this way).
It also says:


File: \Boot\BCD
Status: 0xc0000034
The windows boot configuration data is missing required information

I already tried boot repair through Ubuntu twice, but it didn't work. (Here are the links: http://paste.ubuntu.com/8581328/, http://paste.ubuntu.com/8581369/).
The Windows OS still seems to be on the disc.
Please tell me what can I do to be able to access windows again...

backup - Ghosting Program for Ubuntu 12.10

I am looking to figure out how to set up a mass backup system for a computer network (of about 25) and am looking for a ghosting program that makes an image of the entire system for backup/recovery purposes. While clonezilla would work.. you have to manually boot us the CD for it. I am looking for a program that runs INSIDE Ubuntu that sends a system image backup off to the network server at set times, then when needed could also be used to burn the clone back to the machine. Another words- automatically and the only time I have to do anything to it is when I need to burn a backup BACK to a 'crapped' machine. Any ideas?

Thursday, September 28, 2017

where are the ubuntu-desktop settings?



I just installed the Ubuntu desktop (apt-get install ubuntu-desktop) for the first time. I guess this is Unity.




I wonder where I can find the settings. There was the "System Settings" tool right in the launcher but it only has some very basic settings - I am missing basically everything. I was searching:




  • how I can change my default mouse cursor

  • how can I setup the background so that it fades through a predefined set (or just a directory) of pictures

  • how I can change the default font and other font settings

  • where can I tweak the graphics settings (this was Compiz earlier, not sure if it still is)




Etc...



Yes, it is true that the "System settings" is too basic now. But, this will soon be fixed. For now, you can have Ubuntu tweak to do the tricks.




how I can change my default mouse cursor








how can I setup the background so that it fades through a predefined set (or just a directory) of pictures




There is one wallpaper setting which will rotates/changes the wallpaper after specified amount of time. Right click on desktop → Change desktop background and select the wallpaper which has a clock icon in it.



You can also look at this question:







how I can change the default font and other font settings




Ubuntu tweak will help there. Install it. Open it and go to Tweak tab and then Fonts settings




where can I tweak the graphics settings (this was Compiz earlier, not sure if it still is)





Ubuntu tweak has some options. You can also try compizconfig-settings-manager. But be warned, it is too advanced tool



  sudo apt-get install compizconfig-settings-manager

dual boot - Windows 7 Blue Screen then restart after loading from GRUB


I have Ubuntu dual booting Windows 7 and after repairing GRUB and a few Windows Updates, now Windows 7 just goes to blue screen upon loading from GRUB then restarts. Is there any way to fix this?


I'm using Ubuntu 12.04 32bit.


EDIT: For something I can't get them to cooperate with each other. I've reinstalled GRUB so many times it hurts, and every time I do, I can't run Win 7 from the GRUB loader - it loads to logo then restarts.. And when I run bootrec.exe /fixmbr, bootrec.exe /fixboot and bootrec.exe /rebuildbcd I can load Windows but then GRUB goes away...



I was posting this as a comment but it's too lengthy to fit, so I'm posting this as an answer. I really don't know if this will do the job, as it's usually used for Windows boot problems and not because of a BSOD.


But since you just can't boot into Windows at all without getting the BSOD, this might be worth a try. (I found these instructions years ago, and don't remember where I got them or whom to credit.) After running this, if it works and you can boot into Windows again, you'll need to boot Ubuntu from a live CD and reinstall Grub.


How to repair and reboot to Windows 7:



  1. Insert the Windows 7 System Repair DVD or Installation DVD and reboot.


  2. Select the correct keyboard input method and click "Next".


    Note: If you are using the Windows7 Install DVD then at the 'Install Now' prompt (Do not pick the Install Now option) instead choose the 'Repair your computer' option located in the lower left of the dispay.


  3. The System Repair tool will search for a valid operating system and will report that "Windows found problems with your computer's startup options. Do you want to apply repairs and restart your computer?"


  4. Click "Repair and restart" and reboot again to the Windows 7 System Repair environment.


  5. Click "Next" at the keyboard selection prompt and when the "System Recovery Options" screen appears verify that the "Use recovery tools that can help fix problems starting Windows" is selected.
    Note that on your Dual Boot system there now should be only one operating system listed. Click the "Next" button.


  6. Now from the menu list select the "Command Prompt" option.


  7. At the DOS prompt type the following three commands:


    bootrec.exe  /fixmbr
    bootrec.exe /fixboot (may return an 'Element not found' message)
    bootrec.exe /RebuildBcd

  8. Close the command prompt window and click the "Startup Repair" option.


  9. The repair process may take some time, so wait until the process completes at which point you will see two messages "Windows cannot repair this computer automatically" and "Startup Repair cannot repair this computer automatically".


    These messages are the result of the radical changes made by removing the other drive. Ignore the Send/Dont send options.


  10. Close this message window by clicking on the X in the upper right corner of the Send/Dont send window. Next click on the "View advanced options for system recovery and support" option and from the main menu once again click "Startup Repair".


    This time the repair process may only that a few seconds and when prompted "Startup Repair could not detect a problem", click "Finish" and run the "Startup Repair" option one more time, click "Finish", and then remove the System Repair DVD and click "Restart". Reboot the computer.



11.04 - What happens if Déjà Dup tries to back up to a disconnected external disc?




I have just installed Déjà Dup on my (11.04) laptop and have scheduled automatic weekly backups to an external hard disc which is not always connected to the laptop.



What will happen if a scheduled backup is attempted when the external disc is not connected?



From v14 release note:




The most visible new feature is much better support for external drives. Now Deja Dup will notice if the drive is not connected when a scheduled backup occurs, and will wait for it to be connected. It will notify you that it is waiting.



Installing guest additions Ubuntu 16.04 | Kernel configuration is invalid?

I am running Ubuntu 16.04 as a guest system in Windows 8.1 (VirtualBox) and I'm trying to install the guest additions in order to activate 3D acceleration. However, I get the following error messages:


/var/log/vboxadd-install.log


grep: /lib/modules/4.4.0-104-generic/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-104-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0

sudo sh ./VBoxLinuxAdditions.run:


Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.28 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.28 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.
You may need to restart the Window System (or just restart the guest system)
to enable the Guest Additions.

Steps I've taken:



  • Install latest Virtualbox drivers 5.2.4


  • install linux-headers-generic



How can I know if my Kernel version is supported or not? What steps could I take from here?


➜  ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
➜ ~ uname -r
4.4.0-104-generic

apt - Not able to install software on Ubuntu 12.10




I am newbie with Ubuntu.I am trying to download Okular pdf reader from Software Center but I am getting some error.
At first it was asking for installation of packages from not authenticated source,when I click on Use this source it goes and do something like



upadating cache enter image description here



Then after some time it shows me this error:
enter image description here




I read this question "Requires installation of untrusted packages?"and tried to rebuild cache as given in first answer using :



sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update



and got this output:



yogeshwardancharan@ubuntu:~$ sudo apt-get clean
[sudo] password for yogeshwardancharan:
yogeshwardancharan@ubuntu:~$ cd /var/lib/apt
yogeshwardancharan@ubuntu:/var/lib/apt$ sudo mv lists lists.old
yogeshwardancharan@ubuntu:/var/lib/apt$ sudo mkdir -p lists/partial
yogeshwardancharan@ubuntu:/var/lib/apt$ sudo apt-get clean
yogeshwardancharan@ubuntu:/var/lib/apt$ sudo apt-get update

Get:1 http://dl.google.com stable Release.gpg [198 B]
Get:2 http://dl.google.com stable Release.gpg [198 B]
Get:3 http://dl.google.com stable Release [1,347 B]
Get:4 http://ppa.launchpad.net quantal Release.gpg [316 B]
Ign http://security.ubuntu.com quantal-security Release.gpg
Get:5 http://dl.google.com stable Release [1,347 B]
Ign http://us.archive.ubuntu.com quantal Release.gpg
Get:6 http://dl.google.com stable/main i386 Packages [1,227 B]
Get:7 http://ppa.launchpad.net quantal Release.gpg [316 B]
Ign http://security.ubuntu.com quantal-security Release

Ign http://us.archive.ubuntu.com quantal-updates Release.gpg
Get:8 http://ppa.launchpad.net quantal Release [11.9 kB]
Get:9 http://dl.google.com stable/main i386 Packages [710 B]
Ign http://us.archive.ubuntu.com quantal-backports Release.gpg
Get:10 http://ppa.launchpad.net quantal Release [11.9 kB]
Ign http://us.archive.ubuntu.com quantal-proposed Release.gpg
Get:11 http://ppa.launchpad.net quantal/main Sources [4,251 B]
Ign http://us.archive.ubuntu.com quantal Release
Get:12 http://ppa.launchpad.net quantal/main i386 Packages [14.3 kB]
Ign http://us.archive.ubuntu.com quantal-updates Release

Ign http://us.archive.ubuntu.com quantal-backports Release
Ign http://us.archive.ubuntu.com quantal-proposed Release
Get:13 http://ppa.launchpad.net quantal/main Sources [16.7 kB]
Get:14 http://ppa.launchpad.net quantal/main i386 Packages [39.4 kB]
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Ign http://ppa.launchpad.net quantal/main Translation-en_US
Ign http://ppa.launchpad.net quantal/main Translation-en

Ign http://ppa.launchpad.net quantal/main Translation-en_US
Ign http://ppa.launchpad.net quantal/main Translation-en
Err http://security.ubuntu.com quantal-security/main Sources
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com quantal-security/restricted Sources
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com quantal-security/universe Sources
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com quantal-security/multiverse Sources
404 Not Found [IP: 91.189.92.201 80]

Err http://security.ubuntu.com quantal-security/main i386 Packages
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com quantal-security/restricted i386 Packages
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com quantal-security/universe i386 Packages
404 Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com quantal-security/multiverse i386 Packages
404 Not Found [IP: 91.189.92.201 80]
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Ign http://security.ubuntu.com quantal-security/main Translation-en

Ign http://security.ubuntu.com quantal-security/multiverse Translation-en_US
Ign http://security.ubuntu.com quantal-security/multiverse Translation-en
Ign http://security.ubuntu.com quantal-security/restricted Translation-en_US
Ign http://security.ubuntu.com quantal-security/restricted Translation-en
Ign http://security.ubuntu.com quantal-security/universe Translation-en_US
Ign http://security.ubuntu.com quantal-security/universe Translation-en
Err http://us.archive.ubuntu.com quantal/main Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/restricted Sources
404 Not Found [IP: 91.189.91.14 80]

Err http://us.archive.ubuntu.com quantal/universe Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/multiverse Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/main i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/restricted i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/universe i386 Packages
404 Not Found [IP: 91.189.91.14 80]

Err http://us.archive.ubuntu.com quantal/multiverse i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Ign http://us.archive.ubuntu.com quantal/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal/main Translation-en
Ign http://us.archive.ubuntu.com quantal/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal/multiverse Translation-en
Ign http://us.archive.ubuntu.com quantal/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal/restricted Translation-en
Ign http://us.archive.ubuntu.com quantal/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal/universe Translation-en

Err http://us.archive.ubuntu.com quantal-updates/main Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/restricted Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/universe Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/multiverse Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/main i386 Packages
404 Not Found [IP: 91.189.91.14 80]

Err http://us.archive.ubuntu.com quantal-updates/restricted i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/universe i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/multiverse i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Ign http://us.archive.ubuntu.com quantal-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/main Translation-en
Ign http://us.archive.ubuntu.com quantal-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/multiverse Translation-en

Ign http://us.archive.ubuntu.com quantal-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com quantal-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/universe Translation-en
Err http://us.archive.ubuntu.com quantal-backports/main Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-backports/restricted Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-backports/universe Sources
404 Not Found [IP: 91.189.91.14 80]

Err http://us.archive.ubuntu.com quantal-backports/multiverse Sources
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-backports/main i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-backports/restricted i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-backports/universe i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-backports/multiverse i386 Packages
404 Not Found [IP: 91.189.91.14 80]

Ign http://us.archive.ubuntu.com quantal-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/main Translation-en
Ign http://us.archive.ubuntu.com quantal-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/multiverse Translation-en
Ign http://us.archive.ubuntu.com quantal-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com quantal-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal-backports/universe Translation-en
Err http://us.archive.ubuntu.com quantal-proposed/restricted i386 Packages
404 Not Found [IP: 91.189.91.14 80]

Err http://us.archive.ubuntu.com quantal-proposed/main i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-proposed/multiverse i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-proposed/universe i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Ign http://us.archive.ubuntu.com quantal-proposed/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal-proposed/main Translation-en
Ign http://us.archive.ubuntu.com quantal-proposed/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal-proposed/multiverse Translation-en

Ign http://us.archive.ubuntu.com quantal-proposed/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal-proposed/restricted Translation-en
Ign http://us.archive.ubuntu.com quantal-proposed/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal-proposed/universe Translation-en
Fetched 104 kB in 1min 56s (892 B/s)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/source/Sources 404 Not Found [IP: 91.189.92.201 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/restricted/source/Sources 404 Not Found [IP: 91.189.92.201 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/universe/source/Sources 404 Not Found [IP: 91.189.92.201 80]


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/multiverse/source/Sources 404 Not Found [IP: 91.189.92.201 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80]

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.92.201 80]


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/main/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/restricted/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/universe/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/multiverse/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/restricted/source/Sources 404 Not Found [IP: 91.189.91.14 80]


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/multiverse/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/main/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/restricted/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/universe/source/Sources 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/source/Sources 404 Not Found [IP: 91.189.91.14 80]


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-proposed/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-proposed/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-proposed/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-proposed/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.14 80]

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



Then I tried to re-install Okular but again getting same errors. I have tried changing software source to Main Server and also enabled authentication for third party software sources but still no progress.



Ubuntu 12.10 is not supported any more since May 2014. You either need to update to a more recent version of Ubuntu (i.e. 14.04), or find an alternative repository. The alternative repository for 12.10 is released here (thanks @rubo77 for finding it). More information on upgrading can be found here.


Wednesday, September 27, 2017

system installation - Install Ubuntu to second hard drive without shutting down Windows

I'm using Windows 10 and I have an extra hard drive. This isn't essential, but is there a way to install Ubuntu onto that hard drive without shutting down the PC?




While we're on that train: after Ubuntu's installed on the hard disk, is it possible to run it in a virtual machine from Windows as well as boot my PC into it?



Thanks for any offerings to my chronic curiosity

wine - Cannot install Microsoft Office 2010 using PlayOnLinux


I am trying to install Microsoft Office 2010 on Ubuntu 14.04 using PlayOnLinux and I selected office 2010 from the list of programs to install on PlayOnLinux. I was fine selecting the .exe setup file for office but after I got the office popup and could install office from there but after i clicked the close button on the installer PlayOnLinux still has a loading icon saying 'Please wait while Microsoft Office 2010 is installing'
Can someone please help me?



Sometime the Windows installers called by PlayOnLinux don't quit properly.


To continue the installation, open your task manager (most likely gnome-system-monitor) and kill all remaining instances of the installer. Just search for anything related to your Windows program with .exe in the taskname. Kill all remaining installer processes.


Afterwards, PlayOnLinux may say that some error occurred. Ignore this and click Continue. Your installation should finish as intended.


Amd driver (fglrx) for ubuntu 12.04.5LTS


Begginer here.


I recently downgraded my Ubuntu to 12.04.5LTS because I wanted dual monitor support but my hd4870 cant support AMD drivers and stuff.


Once I downgraded it and tried to install the drivers something like "one or more tools required for installation are not on this system" or something.


I looked online and tried a few solutions but none of them work like.
I don't remember all that I did but these are among them.


Install headers, 32bit lib.


Log


Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers. /lib/modules/3.13.0-61-generic/build/include/linux/version.h cannot be found on this system.
One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver.
Optionally, run the installer with --force option to install without the tools.
Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.



You can not install fglrx-legacy drivers, because Ubuntu 12.04.5 has too new Xorg stack.


You can downgrade Xorg by running


sudo apt-get install xserver-xorg libgl1-mesa-glx xserver-xorg-input-all

You also need to downgrade kernel too. This can be done with


sudo apt-get install linux-generic

Then you will need to boot with kernel 3.2 using grub menu. After that remove all 3.13 kernels using Synaptic.


Then legacy drivers may be installed by


sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update
sudo apt-get install fglrx-legacy

After that you will be able to install legacy AMD drivers that support your video card.


12.04 - I want to upgrade my Ububtu to 16.04. Kindly help

How do I upgrade my Ubuntu to 16.04 ? It is now 12.04. If I upgrade the version will it delete all my installed apps ? Kindly help.

Packaging bash file .deb

How can a (with very simple instruction) make a .deb file continent some .desktop files and shell bash files

apt - Cannot install anything! Unmet dependencies. Libre Office

Please help, I've searched around loads and can't seem to find a solution that works.


I recently removed libre office and installed open office. After trying to reinstall libreoffice. I now can't install anything with apt-get


Forgive me but I'm new and I can't seem to figure out how to post big blocks of code. I get the following output when clicking "repair" in ubuntu software centre. Running Ubuntu 14.04.


image



installArchives() failed: (Reading database ... (Reading database ...
5% (Reading database ... 10% (Reading database ... 15% (Reading
database ... 20% (Reading database ... 25% (Reading database ... 30%
(Reading database ... 35% (Reading database ... 40% (Reading database
... 45% (Reading database ... 50% (Reading database ... 55% (Reading
database ... 60% (Reading database ... 65% (Reading database ... 70%
(Reading database ... 75% (Reading database ... 80% (Reading database
... 85% (Reading database ... 90% (Reading database ... 95% (Reading
database ... 100% (Reading database ... 584380 files and directories
currently installed.) Removing ure-dbg (4.4.2~rc2-0ubuntu1~trusty1)
... Removing uno-libs3-dbg (4.4.2~rc2-0ubuntu1~trusty1) ... (Reading
database ... (Reading database ... 5% (Reading database ... 10%
(Reading database ... 15% (Reading database ... 20% (Reading database
... 25% (Reading database ... 30% (Reading database ... 35% (Reading
database ... 40% (Reading database ... 45% (Reading database ... 50%
(Reading database ... 55% (Reading database ... 60% (Reading database
... 65% (Reading database ... 70% (Reading database ... 75% (Reading
database ... 80% (Reading database ... 85% (Reading database ... 90%
(Reading database ... 95% (Reading database ... 100% (Reading database
... 584319 files and directories currently installed.) Preparing to
unpack .../libreoffice-common_1%3a4.2.7-0ubuntu2_all.deb ... Unpacking
libreoffice-common (1:4.2.7-0ubuntu2) ... dpkg: error processing
archive
/var/cache/apt/archives/libreoffice-common_1%3a4.2.7-0ubuntu2_all.deb
(--unpack): trying to overwrite '/usr/bin/soffice', which is also in
package openoffice-debian-menus 4.1.1-9775 rmdir: failed to remove
/var/lib/libreoffice/share/prereg/: No such file or directory rmdir:
failed to remove /var/lib/libreoffice/share/: No such file or
directory rmdir: failed to remove /var/lib/libreoffice/program/: No
such file or directory rmdir: failed to remove /var/lib/libreoffice:
No such file or directory rmdir: failed to remove
/var/lib/libreoffice: No such file or directory Processing triggers
for shared-mime-info (1.2-0ubuntu3) ... Unknown media type in type
'all/all' Unknown media type in type 'all/allfiles' Unknown media type
in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media
type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown
media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu'
Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing
triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for
gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for
desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for
bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding
/usr/share/applications/bamf-2.index... Processing triggers for
hicolor-icon-theme (0.13-1) ... Processing triggers for
gnome-icon-theme (3.10.0-0ubuntu2) ... Errors were encountered while
processing:
/var/cache/apt/archives/libreoffice-common_1%3a4.2.7-0ubuntu2_all.deb
Error in function: dpkg: dependency problems prevent configuration of
libreoffice-l10n-ml: libreoffice-l10n-ml depends on
libreoffice-common; however: Package libreoffice-common is not
installed.


dpkg: error processing package libreoffice-l10n-ml (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-mn: libreoffice-l10n-mn
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-mn (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-mk: libreoffice-l10n-mk
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-mk (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-mr: libreoffice-l10n-mr
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-mr (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-gl: libreoffice-l10n-gl
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-gl (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-gd: libreoffice-l10n-gd
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-gd (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-ga: libreoffice-l10n-ga
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-ga (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-gu: libreoffice-l10n-gu
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-gu (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-kmr-latn:
libreoffice-l10n-kmr-latn depends on libreoffice-common; however:
Package libreoffice-common is not installed.


dpkg: error processing package libreoffice-l10n-kmr-latn
(--configure): dependency problems - leaving unconfigured dpkg:
dependency problems prevent configuration of libreoffice-l10n-ss:
libreoffice-l10n-ss depends on libreoffice-common; however: Package
libreoffice-common is not installed.


dpkg: error processing package libreoffice-l10n-ss (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-sr: libreoffice-l10n-sr
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-sr (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-sv: libreoffice-l10n-sv
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-sv (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-st: libreoffice-l10n-st
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-st (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-sk: libreoffice-l10n-sk
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-sk (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-si: libreoffice-l10n-si
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-si (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-sl: libreoffice-l10n-sl
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-sl (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-pt-br:
libreoffice-l10n-pt-br depends on libreoffice-common; however:
Package libreoffice-common is not installed.


dpkg: error processing package libreoffice-l10n-pt-br (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-nr: libreoffice-l10n-nr
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-nr (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-ne: libreoffice-l10n-ne
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-ne (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-nb: libreoffice-l10n-nb
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-nb (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-nl: libreoffice-l10n-nl
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-nl (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-nn: libreoffice-l10n-nn
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


dpkg: error processing package libreoffice-l10n-nn (--configure):
dependency problems - leaving unconfigured dpkg: dependency problems
prevent configuration of libreoffice-l10n-zu: libreoffice-l10n-zu
depends on libreoffice-common; however: Package libreoffice-common
is not installed.


graphics - Xubuntu 14.04 ATI/AMD driver problem

I'm trying to install a driver for ATI Radeon HD 7900 series.
I've read a lot of different articles, but I still cannot to do it.



For example, I've tryed almost all instructions/way from this page
https://help.ubuntu.com/community/BinaryDriverHowto/AMD



There is always only one result, after reboot Xubuntu can't start. It shows only loading screen, and I can't even open terminal by pressing Alt+Ctrl+F1!
I guess, I may to boot from LiveCD and look at starting logs.. But I don't know where starting logs are.

Tuesday, September 26, 2017

12.04 - Bricked Dell after installing


I just created a disaster I would not have thought possible. I used a USB stick to install Ubuntu 12.04 LTS alongside Windows 7 on a Dell Inspiron 560.


The install went well, except that GRUB didn't install. No problem; I rebooted to the USB stick and followed the procedure to reinstall GRUB.


Upon my next boot, I got the GRUB menu and could select Ubuntu or Windows (yay!) but Ubuntu locked up during boot (boo!)


The problem is, now rebooting achieves nothing: The Dell Logo screen doesn't appear, so I have no access to boot options, and GRUB never appears. I can't get into the Setup screen, I can't select a different boot device -- nothing! There's no video signal at all upon boot, according to my monitor.


How could a failed boot of Ubuntu cause my computer to refuse to ever output video?



The bad news is that Ubuntu triggered a bug in your BIOS. The good news is that it's easy to make the computer bootable again: all you need to do is shut the power off completely, i.e. disconnect it from wall power and remove the battery. Wait a few seconds, put the battery back, and you should be able to boot.


Figuring out the cause of the bug can be difficult. First, see if that's a one-off thing or if it's repeatable. At the Grub prompt, highlight the “Ubuntu …” line, press e, use the arrow keys to navigate to the linux /vmlinuz … line, delete the words quiet splash at the end of the linux, and press Ctrl+X to boot. If that was a freak event and your computer boots this time, it's not worth investigating further unless the bug occurs again. If the computer hangs, note the last few messages that appeared on-screen: they will be a good clue as to what is breaking. How to proceed from there depends on these messages.


software installation - How to create a .tar.gz file to install a custom application


I have written a simple program, and I made a .deb file to install it on Debian based OSs. but for other distros like Arch, I usually use a .tar.gz file (and doing :./configure, make and make install), How to make that .tar.gz file for my program ??


I can write a bash script (for example like configure) to copy my files to /usr/bin/ , /usr/share/man and /usr/share/doc. so I can install my application simply by executing that script(./configure).
but how do other .tar.gz files(applications) need to run make and make install to install ???



To generate the application distribution archive, developer uses some tools called GNU Autotools. These tools help you create the configure & Makefile which generates the distribution archive for you.


Check:



  1. Official site (autogen,autoconf, automake)

  2. Quick Tutorial


After making the correct setup, you should be able to generate the source archive using:


make dist

Notes:



  • These tools were developed primarily for use with c/c++ projects. Look for corresponding tool to use with other languages (Like Ant for Java, setup-tools for Python).

  • There are also some alternatives, example for c/c++ cmake, qmake with Qt.

  • A correct workflow, start with generic source archive .tar.gz then distribution specific packages like Debian source package and .deb/Debian binary package.


Password stopped working after upgrade to 11.10

We have been using ubuntu for over two years. Every time we download an upgrade, our password has always kept working. After downloading 11.10, The password quit working. We went to the community to get answers to retrieve. We followed the prompting to reset password and ran into problems. We made it to where it says to change the RW to RO. It gave us four lines for 11.10. All four did not have a RW at the end of the line. Then we got a message stating daemon had died. We can use the computer but cannot update or change anything without the password. Can anyone help us? We have a Compaq Presario SR2170NX with a new hard drive. We had Vista on the old hard drive and it died. When we bought new, we went with ubuntu and it works great for our needs except for iTunes and this problem.

Securely erase hard drive using the Disk Utility


I am planning on selling my laptop. So I formatted my disk using the Disk Utility and chose to overwrite the disk with zeroes.


Two questions:


Is this the same as overwriting the disk using dd?


sudo dd if=/dev/zero of=/dev/sda

And is this method secure enough so that buyers can't easily recover the previous data? Or should I take additional measures (like encrypting the disk, destroying the headers, etc.)?



Yes, the disk utility uses a method similar to the one with dd you describe, or a faster and more secure one more like:


dd if=/dev/urandom of=/dev/sda bs=1M

This introduces a lot more fuzz to the overwriting pattern than zeros only, which should be more difficult to restore but not noticeably slower to perform.


Some people claim, this is not enough and one should overwrite hard disks multiple times and with more elaborate patterns (scrub(1) can do both of that as per the other answer), but most will say once is enough, if an attacker wants to restore more than a few bits with a significant chance.


Edit: Apparently /dev/urandom peaks at ~13 MiB/s on at least two systems including mine. Therefore simonp suggested a different approach using openssl(1):


head -c 32 /dev/urandom | sudo openssl enc -rc4 -nosalt -pass stdin -in /dev/zero -out /dev/sda

Monday, September 25, 2017

installation - How to disable Fast Boot on Asus zenbook for EFI boot

I have been trying to install Ubuntu 12.04 alongside Windows 7 on my Asus ux52a Zenbook. I get the following error message:


GRUB Installation failed
The 'grub-efi-amd64-signed' package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot.


I've been trying to follow the instructions at https://help.ubuntu.com/community/UEFI, but I can't figure out how to disable FastBoot and Intel SRT. I can enter setup during POST, but I don't see these options anywhere. Anyone know where to find them?

software recommendation - Which torrent client has command line arguments to start/stop downloads?



first of all, I want to create shell script to start/stop downloads in torrent client. I don't need CLI but if you know how I can do that with CLI using shell script then it is okay.



I use jDownloader which is GUI based application but has some command line arguments as below which I use to start/stop download.



-h/--help       Show this help message
-a/--add-link(s) Add links
-co/--add-container(s) Add containers
-d/--start-download Start download

-D/--stop-download Stop download
-H/--hide Don't open Linkgrabber when adding Links
-m/--minimize Minimize download window
-f/--focus Get jD to foreground/focus
-s/--show Show JAC prepared captchas
-t/--train Train a JAC method
-r/--reconnect Perform a Reconnect
-C/--captcha Get code from image using JAntiCaptcha
-p/--add-password(s) Add passwords
-n --new-instance Force new instance if another jD is running



So I can easily start/stop download as follows,



jdownloader --start-download
jdownloader --stop-download


now I want torrent client to do that through shell script.




I use Flush to start or stop torrent downloads of running instance through terminal.



I can use these options with flush.



  --start={all,downloads,uploads}     Start torrents  
--stop={all,downloads,uploads} Stop torrents






Command line options for other torrent clients



1. Deluge have very few options



Usage: deluge-gtk [options]

Options:
--version show program's version number and exit
-h, --help show this help message and exit


Common Options:
-c CONFIG, --config=CONFIG
Set the config folder location
-l LOGFILE, --logfile=LOGFILE
Output to designated logfile instead of stdout
-L LOGLEVEL, --loglevel=LOGLEVEL
Set the log level: none, info, warning, error,
critical, debug
-q, --quiet Sets the log level to 'none', this is the same as `-L
none`



2. For Transmission



Usage:
transmission-gtk [OPTION...] [torrent files or urls]

Help Options:
-h, --help Show help options
--help-all Show all help options

--help-gtk Show GTK+ Options

GTK+ Options
--class=CLASS Program class as used by the window manager
--name=NAME Program name as used by the window manager
--screen=SCREEN X screen to use
--sync Make X calls synchronous
--gtk-module=MODULES Load additional GTK+ modules
--g-fatal-warnings Make all warnings fatal


Application Options:
-p, --paused Start with all torrents paused
--version Show version number and exit
-m, --minimized Start minimized in notification area
-g, --config-dir Where to look for configuration files
--display=DISPLAY X display to use


3. qbittorrent options




Usage:
qbittorrent --version: displays program version
qbittorrent --no-splash: disable splash screen
qbittorrent --help: displays this help message
qbittorrent --webui-port=x: changes the webui port (current: 8080)
qbittorrent [files or urls]: downloads the torrents passed by the user (optional)

security - How to install up-to-date virus scanner ClamAv in 12.04?


ClamAV is in the official security software repositories from Canonical, but on running freshclam, it reports:


ClamAV update process started at Tue Jan 21 10:31:59 2014
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.97.8 Recommended version: 0.98.1

(I have backports repo enabled, too.)


I would assume that there's little point with a virus scanner that is not up to date. I can think of two answers, I'm hoping the second is correct:



  1. Canonical don't take security seriously in this regard, you'll have to go outside the software centre to download something from elsewhere. I can't accept this from the most secure popular OS available


    EDIT: I feel me stating my opinion on Canonical's policy in the question has skewed the tone of answers. All answers say (2) but in fact answer (1): you have to fetch in code from outside Ubuntu LTS, probably because those people can accept this as fine.


  2. You clearly haven't done X. Type this or click that, and you'll get proper security updates for Ubuntu LTS from official sources.



Please advise! Thanks.



There is an option three:


3. The packagers at Canonical make a well-considered trade-off between stability and security, and you should worry less.


As the next three lines of your freshclam output most likely show (please add them to the question), your virus definitions are up to date. That's because Canonical -- or rather Debian, who do the original packaging of the package -- take security seriously.


What your freshclam output does show is that the installed software version (0.97.8) is behind the current production release (0.98.1). That's because Debian and Canonical are also serious about stability, in particular for an LTS release. You are on 12.04 for a reason, right?


To judge how well the packagers have made the stability-security trade-off, examine the ClamAV change log. I count 18 changes, 11 of which are not security-related or for different target platforms, leaving us with the following 7 potential security improvements (against an unknown number of newly introduced bugs):


 * Improvements to OLE2 extraction and scanning
* xz file type support
* bb #1570: Support ADC compression in DMG
* libclamav: Add support for scanning xar/pkg archive files.
* bb #8385: PDF ASCII85Decode zero-length fix
* libclamav: SCAN_ALL mode fixes
* bb #7436: elf64 header early exit

Trade-offs like security-stability are difficult to make, in particular for someone who isn't well informed. That's why I generally put more trust in the packagers than in my own judgment. And in case I need more certainty, I make sure that I base it on evidence rather than gut feeling.


Make ubuntu usb bootable on windows








I know there are a lot of tools to create a bootable usb for ubuntu with windows.



But I'm sure, that there was a possibility in the ubuntu installation directory. I used it some time ago, but I can't find it anymore :(



I think it was a .exe, or a .bat, any case a cmd window has opened, some things were executing and the usb was bootable. And it was in the ubuntu directory!



Is there still the possibility to do that? Does that file exist? I unfortunately can't remember.

networking - Constantly lost of the internet connection with the wifi after install Ubuntu 16.04



I have a laptop Lenovo Y700 and I installed Ubuntu 16.04 LTS and I'm having issues with the Wifi.



The wireless connection looks good but I cannot connect to Internet sometimes. To fix it, I do...



service network-manager restart


It works for some minutes but later the same problem and I have to restart again and again, and this is really annoying.




I tried the solutions given in this similar question but the problem continues.



This is the information of my PC...



##### release ###########################

Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04

Codename: xenial

##### kernel ############################

Linux 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################


Ubuntu

##### lspci #############################

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:3832]
Kernel driver in use: r8169

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]
Subsystem: Lenovo RTL8821AE 802.11ac PCIe Wireless Network Adapter [17aa:a814]

Kernel driver in use: rtl8821ae

##### lsusb #############################

Bus 001 Device 004: ID 0bda:0821 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 04f2:b512 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0480:a006 Toshiba America Inc External Disk 1.5TB
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 002 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

1: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no

##### lsmod #############################

rtl8821ae 225280 0
btcoexist 53248 1 rtl8821ae
rtl_pci 28672 1 rtl8821ae
rtlwifi 77824 2 rtl_pci,rtl8821ae

mac80211 737280 3 rtl_pci,rtlwifi,rtl8821ae
cfg80211 565248 2 mac80211,rtlwifi
wmi 20480 0

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################


enp1s0 Link encap:Ethernet HWaddr
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)

wlp2s0 Link encap:Ethernet HWaddr
inet addr:192.168.178.45 Bcast:192.168.178.255 Mask:255.255.255.0

inet6 addr: fe80::d4e4:4af1:7b11:9187/64 Scope:Link
inet6 addr: 2003:86:6676:2d00:c28c:48ef:cfeb:a014/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11509 errors:0 dropped:0 overruns:0 frame:0
TX packets:10836 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6457711 (6.4 MB) TX bytes:1833640 (1.8 MB)

##### iwconfig ##########################


lo no wireless extensions.

enp1s0 no wireless extensions.

wlp2s0 IEEE 802.11abgn ESSID:"FRITZ!Box 7362 SL"
Mode:Managed Frequency:2.412 GHz Access Point:
Bit Rate=72.2 Mb/s Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-40 dBm

Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2 Missed beacon:0

##### route #############################

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 600 0 0 wlp2s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp2s0
192.168.178.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0


##### resolv.conf #######################

nameserver 127.0.1.1
search fritz.box

##### network managers ##################

Installed:


NetworkManager

Running:

root 3742 1 1 01:01 ? 00:00:04 /usr/sbin/NetworkManager --no-daemon

##### NetworkManager info ###############

GENERAL.DEVICE: wlp2s0
GENERAL.TYPE: wifi

GENERAL.NM-TYPE: NMDeviceWifi
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8821AE 802.11ac PCIe Wireless Network Adapter
GENERAL.DRIVER: rtl8821ae
GENERAL.DRIVER-VERSION: 4.4.0-57-generic
GENERAL.FIRMWARE-VERSION: N/A
GENERAL.HWADDR:
GENERAL.MTU: 0
GENERAL.STATE: 100 (connected)
GENERAL.REASON: 0 (No reason given)

GENERAL.UDI: /sys/devices/pci0000:00/0000:00:02.3/0000:02:00.0/net/wlp2s0
GENERAL.IP-IFACE: wlp2s0
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes
GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: FRITZ!Box 7362 SL
GENERAL.CON-UUID: ac016a1a-695a-461b-adf1-cfb7dc169115

GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/0
GENERAL.METERED: no (guessed)
CAPABILITIES.CARRIER-DETECT: no
CAPABILITIES.SPEED: 72 Mb/s
CAPABILITIES.IS-SOFTWARE: no
WIFI-PROPERTIES.WEP: yes
WIFI-PROPERTIES.WPA: yes
WIFI-PROPERTIES.WPA2: yes
WIFI-PROPERTIES.TKIP: yes
WIFI-PROPERTIES.CCMP: yes

WIFI-PROPERTIES.AP: yes
WIFI-PROPERTIES.ADHOC: yes
WIFI-PROPERTIES.2GHZ: yes
WIFI-PROPERTIES.5GHZ: yes
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{0}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]: ac016a1a-695a-461b-adf1-cfb7dc169115 | FRITZ!Box 7362 SL
IP4.ADDRESS[1]: 192.168.178.45/24
IP4.GATEWAY: 192.168.178.1
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 192.168.178.1

IP4.DOMAIN[1]: fritz.box
DHCP4.OPTION[1]: requested_subnet_mask = 1
DHCP4.OPTION[2]: requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[3]: subnet_mask = 255.255.255.0
DHCP4.OPTION[4]: domain_name_servers = 192.168.178.1
DHCP4.OPTION[5]: ip_address = 192.168.178.45
DHCP4.OPTION[6]: requested_static_routes = 1
DHCP4.OPTION[7]: dhcp_server_identifier = 192.168.178.1
DHCP4.OPTION[8]: requested_time_offset = 1
DHCP4.OPTION[9]: broadcast_address = 192.168.178.255

DHCP4.OPTION[10]: requested_interface_mtu = 1
DHCP4.OPTION[11]: dhcp_rebinding_time = 756000
DHCP4.OPTION[12]: requested_domain_name_servers = 1
DHCP4.OPTION[13]: dhcp_message_type = 5
DHCP4.OPTION[14]: requested_broadcast_address = 1
DHCP4.OPTION[15]: routers = 192.168.178.1
DHCP4.OPTION[16]: dhcp_renewal_time = 432000
DHCP4.OPTION[17]: requested_domain_name = 1
DHCP4.OPTION[18]: domain_name = fritz.box
DHCP4.OPTION[19]: requested_routers = 1

DHCP4.OPTION[20]: expiry = 1484265694
DHCP4.OPTION[21]: requested_wpad = 1
DHCP4.OPTION[22]: requested_netbios_scope = 1
DHCP4.OPTION[23]: requested_ms_classless_static_routes = 1
DHCP4.OPTION[24]: requested_netbios_name_servers = 1
DHCP4.OPTION[25]: network_number = 192.168.178.0
DHCP4.OPTION[26]: requested_domain_search = 1
DHCP4.OPTION[27]: next_server = 192.168.178.1
DHCP4.OPTION[28]: ntp_servers = 192.168.178.1
DHCP4.OPTION[29]: requested_host_name = 1

DHCP4.OPTION[30]: dhcp_lease_time = 864000
DHCP4.OPTION[31]: requested_ntp_servers = 1
IP6.ADDRESS[1]: 2003:86:6676:2d00:c28c:48ef:cfeb:a014/64
IP6.ADDRESS[2]: fe80::d4e4:4af1:7b11:9187/64
IP6.GATEWAY: fe80::3a10:d5ff:fe44:ca0b
IP6.ROUTE[1]: dst = 2003:86:6676:2d00::/64, nh = fe80::3a10:d5ff:fe44:ca0b, mt = 600
IP6.DNS[1]: fd00::3a10:d5ff:fe44:ca0b
DHCP6.OPTION[1]: requested_dhcp6_domain_search = 1
DHCP6.OPTION[2]: dhcp6_name_servers = fd00::3a10:d5ff:fe44:ca0b
DHCP6.OPTION[3]: dhcp6_server_id = 0:3:0:1:38:10:d5:44:ca:b

DHCP6.OPTION[4]: requested_dhcp6_client_id = 1
DHCP6.OPTION[5]: requested_dhcp6_name_servers = 1
DHCP6.OPTION[6]: dhcp6_client_id = 0:4:1e:50:81:97:69:9e:72:c:35:a0:90:82:3a:bb:f6:fd

GENERAL.DEVICE: enp1s0
GENERAL.TYPE: ethernet
GENERAL.NM-TYPE: NMDeviceEthernet
GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
GENERAL.DRIVER: r8169

GENERAL.DRIVER-VERSION: 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION: rtl8168h-2_0.0.2 02/26/15
GENERAL.HWADDR:
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.REASON: 2 (Device is now managed)
GENERAL.UDI: /sys/devices/pci0000:00/0000:00:02.2/0000:01:00.0/net/enp1s0
GENERAL.IP-IFACE:
GENERAL.IS-SOFTWARE: no
GENERAL.NM-MANAGED: yes

GENERAL.AUTOCONNECT: yes
GENERAL.FIRMWARE-MISSING: no
GENERAL.NM-PLUGIN-MISSING: no
GENERAL.PHYS-PORT-ID: --
GENERAL.CONNECTION: --
GENERAL.CON-UUID: --
GENERAL.CON-PATH: --
GENERAL.METERED: unknown
CAPABILITIES.CARRIER-DETECT: yes
CAPABILITIES.SPEED: unknown

CAPABILITIES.IS-SOFTWARE: no
WIRED-PROPERTIES.CARRIER: off
CONNECTIONS.AVAILABLE-CONNECTION-PATHS:

SSID BSSID MODE CHAN FREQ RATE SIGNAL BARS SECURITY ACTIVE *
DIRECT-A6-HP OfficeJet 3830 Infra 1 2412 MHz 54 Mbit/s 89 ▂▄▆█ WPA2 no
HITRON-CAE0 Infra 6 2437 MHz 54 Mbit/s 87 ▂▄▆█ WPA1 WPA2 no
Vodafone Homespot Infra 6 2437 MHz 54 Mbit/s 87 ▂▄▆█ -- no
Vodafone Hotspot Infra 6 2437 MHz 54 Mbit/s 87 ▂▄▆█ -- no
FRITZ!Box 7362 SL Infra 1 2412 MHz 54 Mbit/s 82 ▂▄▆█ WPA2 yes *

WLAN-34FF25 Infra 1 2412 MHz 54 Mbit/s 80 ▂▄▆_ WPA2 no
Vodafone Hotspot Infra 1 2412 MHz 54 Mbit/s 57 ▂▄▆_ -- no
KDG-879CF Infra 1 2412 MHz 54 Mbit/s 54 ▂▄__ WPA1 WPA2 no
KD-WLAN-9154 AO Infra 1 2412 MHz 54 Mbit/s 47 ▂▄__ WPA1 WPA2 no
FRITZ!Box Fon WLAN 7360 Infra 1 2412 MHz 54 Mbit/s 47 ▂▄__ WPA1 WPA2 no
FRITZ!Box 7330 Infra 1 2412 MHz 54 Mbit/s 47 ▂▄__ WPA1 WPA2 no
Vodafone Hotspot Infra 1 2412 MHz 54 Mbit/s 44 ▂▄__ -- no
KabelBox-FEE0 Infra 1 2412 MHz 54 Mbit/s 44 ▂▄__ WPA2 no
KDG-C6833 Infra 1 2412 MHz 54 Mbit/s 40 ▂▄__ WPA1 WPA2 no


##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

##### NetworkManager.conf ###############

[main]

plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/FRITZ!Box 7362 SL]] (600 root)
[connection] id=FRITZ!Box 7362 SL | type=wifi | permissions=

[wifi] mac-address= | mac-address-blacklist= | ssid=FRITZ!Box 7362 SL
[ipv4] method=auto
[ipv6] method=auto

##### iw reg get ########################

Region: Europe/Berlin (based on set time zone)

country DE: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)

(5150 - 5250 @ 80), (N/A, 20), (N/A), NO-OUTDOOR
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(57000 - 66000 @ 2160), (N/A, 40), (N/A)

##### iwlist channels ###################

lo no frequency information.

enp1s0 no frequency information.


wlp2s0 32 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz

Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Channel 36 : 5.18 GHz
Channel 40 : 5.2 GHz
Channel 44 : 5.22 GHz
Channel 48 : 5.24 GHz
Channel 52 : 5.26 GHz

Channel 56 : 5.28 GHz
Channel 60 : 5.3 GHz
Channel 64 : 5.32 GHz
Channel 100 : 5.5 GHz
Channel 104 : 5.52 GHz
Channel 108 : 5.54 GHz
Channel 112 : 5.56 GHz
Channel 116 : 5.58 GHz
Channel 120 : 5.6 GHz
Channel 124 : 5.62 GHz

Channel 128 : 5.64 GHz
Channel 132 : 5.66 GHz
Channel 136 : 5.68 GHz
Channel 140 : 5.7 GHz
Current Frequency:2.412 GHz (Channel 1)

##### iwlist scan #######################

lo Interface doesn't support scanning.


enp1s0 Interface doesn't support scanning.

wlp2s0 Interface doesn't support scanning : Device or resource busy

##### module infos ######################

[rtl8821ae]
filename: /lib/modules/4.4.0-57-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/rtl8821ae.ko
firmware: rtlwifi/rtl8821aefw.bin
description: Realtek 8821ae 802.11ac PCI wireless

license: GPL
author: Realtek WlanFAE
srcversion: B9E24DCC76240A48AEEF94E
depends: rtlwifi,rtl_pci,btcoexist,mac80211
intree: Y
vermagic: 4.4.0-57-generic SMP mod_unload modversions
parm: swenc:Set to 1 for software crypto (default 0)
(bool)
parm: ips:Set to 0 to not use link power save (default 1)
(bool)

parm: swlps:Set to 1 to use SW control power save (default 0)
(bool)
parm: fwlps:Set to 1 to use FW control power save (default 1)
(bool)
parm: msi:Set to 1 to use MSI interrupts mode (default 1)
(bool)
parm: debug:Set debug level (0-5) (default 0) (int)
parm: disable_watchdog:Set to 1 to disable the watchdog (default 0)
(bool)
parm: int_clear:Set to 0 to disable interrupt clear before set (default 1)

(bool)

[rtl_pci]
filename: /lib/modules/4.4.0-57-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtl_pci.ko
description: PCI basic driver for rtlwifi
license: GPL
author: Larry Finger
author: Realtek WlanFAE
author: lizhaoming
srcversion: A96EBF28EBD4603749D5EC3

depends: mac80211,rtlwifi
intree: Y
vermagic: 4.4.0-57-generic SMP mod_unload modversions

[rtlwifi]
filename: /lib/modules/4.4.0-57-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtlwifi.ko
description: Realtek 802.11n PCI wireless core
license: GPL
author: Larry Finger
author: Realtek WlanFAE

author: lizhaoming
srcversion: 81DBE78DD4871E3EC5F2E9D
depends: mac80211,cfg80211
intree: Y
vermagic: 4.4.0-57-generic SMP mod_unload modversions

[mac80211]
filename: /lib/modules/4.4.0-57-generic/kernel/net/mac80211/mac80211.ko
license: GPL
description: IEEE 802.11 subsystem

srcversion: 0B114888238BEBBE8043BC5
depends: cfg80211
intree: Y
vermagic: 4.4.0-57-generic SMP mod_unload modversions
parm: minstrel_vht_only:Use only VHT rates when VHT is supported by sta. (bool)
parm: max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm: max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm: beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm: probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm: ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)


[cfg80211]
filename: /lib/modules/4.4.0-57-generic/kernel/net/wireless/cfg80211.ko
description: wireless configuration support
license: GPL
author: Johannes Berg
srcversion: FD4B9DA2F385F0531B5CB0B
depends:
intree: Y
vermagic: 4.4.0-57-generic SMP mod_unload modversions

parm: ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm: cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[rtl8821ae]
debug: 0
disable_watchdog: N
fwlps: N
int_clear: Y

ips: Y
msi: Y
swenc: N
swlps: N

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5

minstrel_vht_only: Y
probe_wait_ms: 500

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

##### modprobe options ##################


[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5

blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr

blacklist amd76x_edac
blacklist ideapad-laptop

[/etc/modprobe.d/blacklist-ideapad.conf]
blacklist ideapad_laptop

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off

alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211


[/etc/modprobe.d/libopenni-sensor-pointclouds0.conf]
blacklist gspca_kinect

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

[/etc/modprobe.d/rtl8821ae.conf]
options rtl8821ae fwlps=N


##### rc.local ##########################

exit 0

##### pm-utils ##########################

[/etc/pm/config.d/config] (644 root)
SUSPEND_MODULES="rtl8821ae"

##### udev rules ########################


##### dmesg #############################

[ 580.057551] wlp2s0: RX AssocResp from (capab=0x431 status=0 aid=5)
[ 580.148045] wlp2s0: associated
[ 2172.369033] wlp2s0: Connection to AP lost
[ 2175.368524] wlp2s0: authenticate with
[ 2175.368931] wlp2s0: send auth to (try 1/3)
[ 2175.471452] wlp2s0: send auth to (try 2/3)
[ 2175.575371] wlp2s0: send auth to (try 3/3)

[ 2175.679419] wlp2s0: authentication with timed out
[ 2188.195594] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready (repeated 4 times)
[ 2876.994331] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[ 2877.010288] r8169 0000:01:00.0 enp1s0: link down
[ 2877.010405] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[ 2877.105114] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[ 2880.173762] wlp2s0: authenticate with
[ 2880.177260] wlp2s0: send auth to (try 1/3)
[ 2880.191121] wlp2s0: authenticated
[ 2880.195454] wlp2s0: associate with (try 1/3)

[ 2880.204365] wlp2s0: RX AssocResp from (capab=0x431 status=0 aid=7)
[ 2880.264011] wlp2s0: associated
[ 2880.264042] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[ 3241.188389] wlp2s0: deauthenticating from by local choice (Reason: 3=DEAUTH_LEAVING)
[ 3261.305400] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[ 3261.311629] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[ 3261.327516] r8169 0000:01:00.0 enp1s0: link down
[ 3261.327692] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[ 3261.448825] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[ 3274.151447] wlp2s0: authenticate with

[ 3278.916185] wlp2s0: send auth to (try 1/3)
[ 3278.926662] wlp2s0: authenticated
[ 3278.928265] wlp2s0: associate with (try 1/3)
[ 3278.941799] wlp2s0: RX AssocResp from (capab=0x431 status=0 aid=5)
[ 3279.050669] wlp2s0: associated
[ 3279.050732] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready

########## wireless info END ############



Thank you very much.



I suggest that you disable power saving in Network Manager. From the terminal:



sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf


Next, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred.



In fact, in the data you submitted, we see ten networks, including the one you are connected to, that are on channel 1. In your case, I suggest, channel 6 or 12 and not 1.




Reboot the router and let us hear your report.



If this is ineffective or only partially effective, then install a better driver



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



Reboot and tell us if connectivity is improved.


Sunday, September 24, 2017

System requirements for Ubuntu 12.04.1 32bit?


Possible Duplicate:
What are the minimum system requirements for 12.04 LTS?



My PC is running windows 7 [32bit] and I was wondering if my system will support the latest Ubuntu.
My System Specifications:
Processor: Intel Core2 Duo CPU E4600 @ 2.4Ghz 2.4Ghz
RAM: 1 GB

grub2 - How to fix windows bootloader after grub install?

Ok, so that's what I did:
I installed ubuntu and when I had to chose the partitions and grub install I clicked on overwrite "windows bootloader" or something like that, now everytime I boot, grub shows ubuntu and windows, ubuntu works but if I choose windows grub send me back to itself. It's like the windows bootloader loads... grub. How can I fix that?


parted /dev/sda print
Model: ATA WDC WD3200BEVT-7 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos



Number Start End Size Type File system Flags
1 32.3kB 82.3MB 82.2MB primary fat16 diag
2 82.8MB 10.8GB 10.7GB primary ext4
3 10.8GB 317GB 307GB primary ntfs boot
4 317GB 320GB 2683MB extended lba
5 317GB 320GB 2683MB logical linux-swap(v1)

Windows part of my grub.cfg



### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 7AF84223F841DE4F
chainloader +1
}

command line - ZSH removed, cannot relogin




So I have install zsh and I didnt like it.
so I did apt-get remove zsh



From that point I cannot relogin, i click my user.. and then it just go back to the login screen. I can only login with the Guest session.



I think the problem is caused because the defualt shell on my user is zsh and it doesnt exists anymore..



How can I reinstall it from the guest session of change my users default shell for guest user?




Even trying to loging with ctrl+alt+f2/6 i type my user and password. login is success but i the thrown back to the login.



Any ideas?



The guest user is not granted the permission to run sudo or pkexec, which (unless you're root, which you're not) are required in order to change another user's shell.



So the only solution occurring to me is booting into a root shell and changing the user's shell as root:



chsh -s /bin/bash user



Where user is your user's username.


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 (...