Tag: ubuntu

How to Install HP Printers onto Ubuntu: HP Laserjet P1005

I have an old computer and an old printer, but they still work and I’m poor, so here’s how to do it. My HP Laserjet P1005 is pretty solid and still works. Instructions are always changing, so this is only good up to 2021 Dec.

These notes How to set up HP printing on Ubuntu — HP Laserjet P1005 were the most accurate, though they date to 2009.

Acer Aspire V3-571G Dual Boot Win 7 and Kubuntu: Difficult Linux Network Config

My Aunty has an Acer Aspire V3-571G-6602 laptop that originally had Windows 7 Home on it. Then Microsoft decided she should upgrade to Windows 10, all without asking her. Her machine was slow on the reboot and looked locked up. The auto upgrade to Windows 10 and the subsequent auto upgrades persuaded her that this was not kosher, but simply wrong. I lent her an older Lubuntu system, 12 years old, while I deciphered her predicament, and she started to really like the simplicity and speed of Ubuntu. Really, she only uses a browser.

Ubuntu, VPN Gate, and Open VPN

Find the VPN at http://www.vpngate.net/en/. Filter by OpenVPN only. Look at the transfer rate. Might also see if the IP is responding.

https://www.kabatology.com/05/09/ubuntu-connect-to-vpn-gate-with-openvpn/ Download the OpenVPN file and open it. Cut out the sections between the tags, including the “begin” and “end” certificate. Create a separate directory for each gate. Save as “ca.crt”.

In Ubuntu Edit Connections > Network Connections > add > Open VPN > create. Fill in the form from top to bottom, or the form won’t work. Might want to add the domain name to the label. Choose “password”, vpn, vpn, add the location of the ca.crt file, Save, try.

Ubuntu 16.04 install WebScarab

Here I am with some idle time, found a hacking article on G&M, which led me to some pretty scary hacking tools (malware creation tools) which led me to nikto which led me to WebScarab. Yes, confusing, but I am trying to stay White Hat.

That said, I could not find much on how to install WebScarab. It is older, with no clear install instructions, other than here’s the zip file, install it. WebScarab is written in java, so you can run it from Terminal. I could not figure out how to put it into a launcher.

Generating htpasswords through SSH

If you are on Ubuntu and do not want to install htpasswd, SSH into your server

htpasswd -n id

You will be prompted, twice, for a password. The key will be generated on screen

-n: generate key on screen
id: chosen id
password: chosen pw
code will be generated, add this to password file

password file not available from FTP
Brute Force Attacks

Ubuntu 16.4 Upgrade: Small Issues

I have upgraded to Ubuntu 16.04 LTS from Ubuntu 14.04 LTS. There have been very few issues for what is essentially an engine swapout.

Wireless Lan not recognizing Old Connections

On my home wifi I hide the SSID. After the upgrade these connections do not seem to work. Or rather they worked for a while and then seemed to slowly stop working.

When I edit my hidden network connections, the old connections are there but the connect button is greyed out. I thought I had to go to my router, broadcast my SSID, get a connection, then re-hide my SSID. This did not work. It turns out there is a bug for hidden networks.

Check htaccess Deny From lines for Alpha Characters

My htaccess file is getting large as I continually ban more bad bots of the world. As it gets larger there are bound to be more mistakes. One of the mistakes can occur in “deny from” lines, which account for the vast majority of lines in the htaccess. If you add any alpha characters to the ip addresses in “deny from” lines, the Apache server will do all host lookups and try to not return IP addresses. This means that some spammers’ ip addresses will be hidden behind bogus host names. For accuracy it is best for the Apache server to return their IP addresses. Using IPs you can then do host and search lookups, find them and ban them.

Ubuntu 14.04 Chinese SunPinyin / Pinyin: Fixes

Chinese input is fun, for the warped mind that I am. Yes, it is exceptionally difficult to learn Chinese, but after that little hurdle, and significant eye strain, it is fun. Chinese input methods on Ubuntu 14.04 is somewhat confusing, as it is very easy to install, both for SunPinyin and Pinyin yet there are bugs. I installed SunPinyin, and when I could not input certain characters, also installed Pinyin. Here are the ones I found, and their fixes.

Pinyin Joe has installation instructions for Chinese, and the very many input methods. He also has a page for Ubuntu 14.04 Chinese bugs. This fixed the “学” xue bug in Pinyin, but not in SunPinyin.

Using QQ from Ubuntu

Usually I’m working in Ubuntu, so cannot use the PC version of QQ. I’ve had to either switch to Windows or use QQ International through my smartphone. Typing on my smartphone in Chinese and English is challenging and fraught with spelling mistakes. I’m having trouble accurately typing Chinese pinyin on my phone. The alternative is to use QQ with a browser.

You can use the browser version of QQ when you are on ubuntu, but I could not find any instructions on how to do this. Here is what to do: