All posts by admin

How To Download & Install Launchpad & PPA Programs/Files Super Easy

One morning my Ubuntu installation stopped . I’m now feel a lot more comfortable with linux distributions but at the time I was freaking out.

For this example, I will be installing the .deb file of Conky Manager by Tony George which is an awesome system load manager that displays real-time system load, CPU & RAM usage.

When you want to use PPA or any other .deb based application,

Install a .deb file from PPA or another random website

Make a folder in your Downloads or Documents folder called Debs.

Move the .deb file that you downloaded to that folder.

Right click on the .deb file, select “Open with GDebi Package Installer”.

Click “Install Package” (may need sudo password)

This will install all relevant dependencies too.

This method does not fill your /etc/apt/sources.list with a whole heap of random URLs.

To uninstall a .deb file at a later date

Go back to the folder called Debs that we created earlier.

Right click, “Open with GDebi Package Installer”.

Click “Remove Package”.

How To Update Flash on Firefox & Iceweasel Debian or Ubuntu

“This plugin is vulnerable and needs to be updated”

Yes, flash is notoriously vulnerable and is updated almost weekly because it’s in almost everyone’s browser and is an easy target for hackers.

To update flash on Debian, open a terminal and execute:

1
sudo /usr/sbin/update-flashplugin-nonfree --install

This will download the latest flash plugin for firefox/iceweasel and install it into your browser:

Before:

Update flash on firefox or iceweasel Debian before.

After:

Update flash on firefox or iceweasel Debian after.

How To Delete The First Column In A CSV File Inside a Bash Script

You’re writing a script that maybe works with a CSV that you’ve downloaded as a cron job and want to delete the first column so that it uploads nicely somewhere else, maybe to a MySQL database.

Delete the first column:

1
sed -i 's/[^,]*,//' thespreadsheet.csv

Delete the first two columns:

1
sed -i 's/[^,]*,//' thespreadsheet.csv
1
sed -i 's/[^,]*,//' thespreadsheet.csv

How To Increase PHP File Upload Limit on CentOS 7

How To Increase PHP File Upload Limit on CentOS 7 with one line of bash.

SSH into your server as root and execute the following command:

1
replace "upload_max_filesize = 2M" "upload_max_filesize = 20M" -- /etc/php.ini && service httpd restart

That will replace your 2mb upload limit with a 20mb upload limit and it will restart the web server so changes to php.ini are made:

Done.

P.S. you can verify your new maximum PHP file upload size is by executing:

1
grep upload_max_filesize /etc/php.ini

Sample output:

1
upload_max_filesize = 20M

Universal way to increase PHP Upload Limit:

SSH into your server as root. Use vi or nano to edit the php.ini file:

1
vi /etc/php.ini

Press / and type upload_max
(Pressing backslash (/) allows you to search a file while editing with Vi)

You should see:

1
upload_max_filesize = 2M

Press i and change that value to 20M
(Pressing “i” allows you to insert type in characters while editing with Vi)

1
upload_max_filesize = 20M

To exit Vi, press Esc and type

1
:x

and hit enter.

Now either

1
reboot

your server or restart httpd:

1
service httpd restart

Your PHP upload limit is now 20mb.

Brightness Keys Not Working Debian: Xfce Function F5 & F6 Fix

All the other Fn + F1 thru F12 keys were working except for Fn + F5 & Fn + F6.

Open keyboard settings and find Application Shortcuts.

Add a new shortcut with the following command:

Reduce brightness by 10%:

1
xbacklight -10

I used the keyboard shortcode Alt + (-), meaning the minus key on my numpad.

Increase brightness by 10%:

1
xbacklight +10

I used the keyboard shortcode Alt + (+), meaning the plus key on my numpad.

My laptop keyboard has a number pad so this is pretty comfortable, but if you don’t have a numpad, you’ll need to choose a different unused combination.

WARNING: Don’t try and set the keyboard as Alt F4 and Alt F5 because are already bound to “close the window”…

My Hotkey & Keyboard Shortcut Setup Linux

SUPER FAST KEYBOARD SHORTCUTS:

Command:

1
xfce4-appfinder

Shortcut:
Left Windows Key

Solution:
Opens Application Finder so you can type in the first few letters of any application and hit enter.

MY PERSONAL KEYBOARD SHORTCUTS

Command:

1
galculator

Shortcut:
Crtl + Alt + G

Solution:
Super fast calculator opening


Command:

1
gedit

Shortcut:
Crtl + Alt + Y

Solution:
Open a new text file


To be continued…

WiFi Network Not Showing Up Linux: Personal Hotspot Not Listed Debian/Ubuntu

I was using a small MiFi router for a while and when I would come back inside, more often than not the network would not be found again even though I was sitting right next to my computer.

The same would happen with iPhone Hostpot Wifi not showing up even though it was right next to me. If the WiFi disconnects and can’t be found again for a few minutes, the fastest way to jump start the WiFi network list is below.

A solution to hard reset the WiFi network list on Debian, Ubuntu, Mint or other distros is as follows:

1
sudo service network-manager restart

This command will restart network manager and force search for nearby WiFi networks.

However, instead of typing this in each time I came back inside or turned on iPhone personal hotspot, I made a launcher icon that would hard refresh the list of available networks and in turn, be able to connect to my WiFi again.

Go to the desktop, right click and create a new launcher.

Name the launcher WiFi Restart and put the command the same as the command above.

WiFi Network Manager Reset Xfce Debian Ubuntu

Save this launcher, and then drag it onto your launcher area.

Now, when your WiFi disconencts or your personal hotspot isn’t being found, just press the WiFi restart button and your network will show up again in a matter of seconds.

The icon I use is network-wireless-offline-symbolic in Status Icons.

WiFi disconnects and can't be found again icon

 

 

Ctrl + Click Not Opening Links In New Tab Fix: Middle Click Without Mouse Debian/Ubuntu

Some javascript based websites were hogging my click actions and opening links that I wanted to open in new tabs in the same window/tab.

Since I prefer using the track-pad now, I wanted a fast solution to either middle mouse click on links to open in new windows or a way to rapidly right click, open in new tab.

An awesome solution I am currently using is as follows:

xdotool is a fake keyboard & mouse input program that you can emulate clicks via the terminal.

1
sudo apt-get install xdotool

Open keyboard settings and find Application Shortcuts.

Add new shortcut with the following command:

1
xdotool click 2

For the keys, I chose:

Left Crtl + Windows key (<Primary>Super_L)

Now, when I want to open links in a new tab, I simply move my mouse and hover over links and while holding left Ctrl, I tap the left Windows key.

It’s actually much faster than middle clicking and it allows me to rapidly tap the windows key while hovering over a page full of links.

 

Fn + F10 Mute Toggle Not Unmuting Sound After Muting: Turning On PulseAudio Again Fix Debian

I read a few different solutions for fixing the sound toggle on Debian via the command line but the only solution that I could make a keyboard shortcut for was:

Hard unmute Pulse Audio in Debian, Xfce when the sound won’t come back on after muting:

1
pactl set-sink-mute 0 toggle

To set this as a keyboard shortcut

Open keyboard settings and find Application Shortcuts.

Add new shortcut with the following command:

This was a temporary fix and I will change it to Fn & F10 once I learn how to change the Fn hardcoded keys.