Saturday, June 3, 2017

wireless - Active Broadcom wifi on startup

Using this answer Installing Broadcom Wireless Drivers I was able to get my Broadcom 4311 working in 16.04. However, I have to open the terminal and enter "sudo modprobe b43" every time I restart or it doesn't find any wifi sources. Where could I put this line to make it automatically run on startup?


Thanks in advance for helping a newbie.

networking - Adding a 'network' USB printer



I have a HP Deskjet 1050a printer, hence the 'network' in the title. Its a bog standard USB home printer.
I have it attached to my router (has a USB port in it). I have got it connected and working to with Win8 PC and also a MacBook Air. Can't seem to get it to add as a printer to my Xubuntu laptop(s).



It doesn't get detected automatically (not an actual network printer) and i've tried multiple options to get it working. It seems to add it but when printing a test page its saying the printer isn't connected.
Ping works fine so it can see it, just can't add it as a printer.




With Win8 I had to create a port with the IP of the printer (192.168.1.253 in this case), is there an Ubuntu alternative to do this?



GOT IT! The "lpr" got me thinking.



System Settings > Printers > Add a new printer > Network Printer (Drop down) > LPD/LPR Host or Printer.
Put the IP "192.168.1.253", then put a print queue name "queueTG582n" and bingo, one beautiful Ubuntu test page!



The router is a Technicolor TG582n, so not the most advanced one in the world.


Friday, June 2, 2017

encryption - Will changing password re-encrypt my home directory?



I need to change my user password. Do I need to take any extra steps for my encrypted home directory to become inaccessible with my old password and only accessible with my new password?



There is no need to re-encrypt your home directory, and no further steps need to be taken.



Your home directory is not directly encrypted with your password. Instead, the passphrase used to encrypt the home directory is itself encrypted with your password.



When you change your password, the home directory passphrase is re-encrypted with your new password, so you should have continued access to your files with the new password.




This is handled via PAM (Pluggable Authentication Modules), so should work with any password change tool. The exception is administrative password changes where the original password is not provided. This is expected behaviour though: if the administrator could decrypt your files without knowing your password then there would be no actual protection.



In the case you perform an administrative password change, after mounting your home directory with



ecryptfs-mount-private


and your old password, issue




ecryptfs-rewrap-passphrase ~/.ecryptfs/wrapped-passphrase


to change the unwrapping password to match your new one. This way your home directory will be auto-mounted at login, just as it used to.


12.10 - Skype doesn't work in Quantal

Since I updated to Quantal Skype doesn't work and I get this error when updating:


W:GPG error: http://ppa.launchpad.net quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F6A071ABEE5D5BA2
W:Failed to fetch http://archive.canonical.com/commercial-ppa-uploaders/skype/ubuntu/dists/quantal/main/source/Sources 404 Not Found [IP: 91.189.92.191 80]
W:Failed to fetch http://archive.canonical.com/commercial-ppa-uploaders/skype/ubuntu/dists/quantal/main/binary-amd64/Packages 404 Not Found [IP: 91.189.92.191 80]
W:Failed to fetch http://archive.canonical.com/commercial-ppa-uploaders/skype/ubuntu/dists/quantal/main/binary-i386/Packages 404 Not Found [IP: 91.189.92.191 80]
E:Some index files failed to download. They have been ignored, or old ones used instead.

package management - Apt-offline install; trying to avoid all internet queries

We have been testing the use of apt-offline to deal with the issue of updating remote machines without using an internet connection.


This procedure has worked well:
use apt-offline set (--update --install package) and get commands on the online computer, which in the same state as the offline commands, to generate the update.zip file. We then transport the zip to the offline box, run apt-offline install, and then apt-get update and finally apt-get install to install the package on the remote machine.


The only issue that seems to crop up is that as soon as we use the apt-get update and install procedures on the remote boxes, the remote boxes attempt to communicate with the online repositories... they can't, and the install still works, but we were wondering if there was away to eliminate the attempt to connect to the internet on the remote box.


We tried eliminating online sources from /etc/apt/sources.list, but in that case we can't install the packages (since there are no sources for apt-get install to look at. Is there a way to eliminate the internet queries with apt-get install (some way to make it assume that its sources are up to date?)
Thanks!

How can I edit/create new launcher items in Unity by hand?




Will Unity allow making custom launcher icons from .desktop files or via menu editing system? (Right now the launcher doesn't give the option to "keep in launcher" on all programs.



For some programs I use, I have to make custom launchers or .desktop files.



For instance, daily blender builds are generally just folders with an executable.



In basic Gnome or KDE, I can make a new menu entry with the menu editing system. Then, I can also add it to Docky either from the menu or by dragging a .desktop file to it. Unity launcher doesn't support drag and drop, so thats not a bug or anything, but when I open a .desktop file, it has unpredictable results. Most time it will not have "keep in launcher". Sometime it will have a pinnable item without the .desktop's icon, and if I pin the item to the launcher, it will not call upon the program again after closing it. I've also gotten it to just work with a .desktop file for celtx.



For 11.04 and earlier:




Unity does support custom launchers from .desktop files. To create custom launcher from a .desktop file you need to create a *.desktop file for your program.



gedit ~/.local/share/applications/name.desktop


The .desktop file should look something like this:



[Desktop Entry]
Name=the name you want shown
Comment=

Exec=command to run
Icon=icon name
Terminal=false
Type=Application
StartupNotify=true


In your file manager open your home folder and navigate to:
(You may need to press ctrl+h to show hidden files to see the .gconf directory.)




.gconf-> desktop-> unity-> launcher -> favourites


you'll see a bunch of folders starting with "app-".
you need to create a folder for your program. Use the same name.desktop you used in /usr/share/applications. Go into 1 of the folders for something that is already on the dock & copy the xml file and paste that into your new folder. Open it with your text editor and change the name of the *.desktop to your name.desktop.



Open gconf-editor (you can open gconf by running the command gconf-editor in the Terminal) & go to:



desktop-> unity-> launcher -> favorites



Double click the list on the right & add your name.desktop.



Log out & back in and you should see your launcher.
(thank you kerry_s on the Ubuntu Forums for helping with this answer)



Unity also has a feature called Lenses. By default, you have two in Unity: Applications and Files. In the future, you will be able to install and create a lot more. There is some info about that on the Ubuntu wiki: https://wiki.ubuntu.com/Unity/Lenses


dual boot - GParted resize partition Error - e2fsck: Possibly non-existent device?


Aim:


Grow / Extend Linux root and home partition using GParted on live Ubuntu


Error:


Root partition failing file system check and repair


GParted 0.25.0 --enable-libparted-dmraid --enable-online-resize
Libparted 3.2
Grow /dev/sda8 from 18.63 GiB to 48.83 GiB 00:00:04 ( ERROR )
calibrate /dev/sda8 00:00:04 ( SUCCESS )
path: /dev/sda8 (partition)
start: 427542528
end: 466604031
size: 39061504 (18.63 GiB)
check file system on /dev/sda8 for errors and (if possible) fix them 00:00:00 ( ERROR )
e2fsck -f -y -v -C 0 /dev/sda8 00:00:00 ( ERROR )
Possibly non-existent device?
e2fsck 1.43.3 (04-Sep-2016)
e2fsck: No such file or directory while trying to open /dev/sda8
========================================

System info:


Dual-boot - Linux Mint 18 + Windows 10


GParted Screenshot Link http://imgur.com/cv3N6mM


Steps I have followed:



  1. Allocated free space from windows' C drive

  2. Booted from Ubuntu live USB

  3. Launched GParted

  4. Turned swap off

  5. Moved my root partition ext4[/dev/sda8] to the left of unallocated space

  6. Right click on ext4[/dev/sda8] - Check and repair filesystem ext4[/dev/sda8]

  7. Check ext4[/dev/sda8] successful

  8. Resize/Move ext4[/dev/sda8] to 48.23 GB - Apply

  9. ERROR!


What I have found:



  1. Bad Superblock Problem?

  2. Logical Partition table problem?


Please Help!



Apparently I was able to resize the root "/" partition while my OS was running and "/" was mounted.


Root file system /dev/sda8 extended to 48.83 GB:
http://imgur.com/lINIUwn


Contrary to what I read everywhere on GParted official docs and forums, it is possible. I have restarted my system and verified it using disk-usage-analyser & gnome-disk utility.


Anyone knows how was this was possible?
I'm willing to share further details.


11.10 - Can'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 (...