Monday, September 30, 2019
Gentoo
Saturday, May 2, 2015
XFCE 4.12 workspace-switcher wrap
You use to be able to wrap switch virtual desktops with the mouse from both the desktop and while your mouse is hovered over the Workspace Switcher panel. For some reason wrapping is now disabled by default while the mouse is over the Workspace Switcher panel, but not when the mouse is on the desktop. To fix this read below.
First we need to open our panel preferences (right click on your panel go to Panel --> Panel Preferences.
Click on the items tab (if you have more than one panel you will need to select the the panel that your workspace switcher is on from the panel dropdown menu on top).
Hover your mouse over the 'Workspace Switcher' icon. A description will appear. Make a note on which pager number it lists. Mine is Pager-2 on Panel 1. I also have a second Workspace Switcher on Pager-22 on Panel 2.
Now close out of your panel preferences and open a new terminal.
In your terminal type this command:
%: xfconf-query -c xfce4-panel -p /plugins/plugin-2/wrap-workspaces -s true --create -t bool
**Notice the section that says 'plugin-2' change that number to the pager number we just located. Again mine is 2 and 22. Do this command for each workspace switcher you have on your panel(s).
No X restart should be necessary.
Tuesday, December 16, 2014
iPhone 5c S/MIME and openssl
Wednesday, July 10, 2013
Display the Moon current phase as wallpaper
Place this in your ~/.xinitrc file
########################################################################
## Start xfce Desktop Environment ##
########################################################################
while true; do xplanet -body moon -geometry 1024x768 -background /home/username/.xplanet/stars/stars_custom.png -glare 0.001 -output /home/username/Wallpaper/moon.xplanet.jpg -num_times 1 && /usr/bin/xfdesktop --reload; sleep 45m; done &
After you paste that, go into your xfce settings manager and tell xfce to use the jpg as a wallpaper (if it does not exist yet, run that command once in a terminal session so it can generate the file.
Note... Set the geometry to your monitor's value. The background file will not exist on your computer, if you want a background I suggest googling around a bit to find a background image you like (you do not need a background if you prefer no background image then you can remove that section of the code). Then edit that image so it is exactly the geometry of your display. The -glare 0.001 option kills the glare render during new moon and full moon. Trust me, you will want this unless you like seeing a very bright yellow glare for a few hours during full and new moon cycles.
For the moon body to work in xplanet, you will first need to download a moon map. Xplanet does not ship with moon maps... I have no idea why, it comes with almost every other planet and Sattlite in our solar system. Google around for the xplanet moon map. (if anyone finds a Deathstar map please let me know. I actually want one of the second incomplete deathstar).
(The above command is a single line command, copy paste on this blog may have added some hard returns).
**MAKE SURE YOU REPLACE 'username' WITH YOUR ACTUAL USERNAME**
Wednesday, June 5, 2013
Add all KDE crap to slackpkg blacklist
cp /etc/slackpkg/blacklist /etc/slackpkg/blacklist.old
Mount your slackware install dvd/cd/usb
Navigate to the slackware directory on the install media (you need to be inside the directory that has all the package sets a, ap, d, e, n... etc...)
Then, as root issue this command:
\ls kde | grep '\.t.z$' | rev | cut -d- -f4- | rev >> /etc/slackpkg/blacklist
note the '\' it is *NOT* a type-o! this will add all the packages inside the kde directory to the bottom of your blacklist file.
Monday, March 25, 2013
Making your user use dmesg again
[06:49:52]eh, the dmesg thing is a change that happened between 13.1 and 13.37. I personally put it back the way it was, by putting "kernel.dmesg_restrict = 0" in /etc/sysctl.conf
Thank you Urchlay from ##slackware on irc.freenode.com
Thursday, March 7, 2013
Jpilot on Slackware
Friday, September 14, 2012
Saturday, August 25, 2012
Find working process on a mounted device
Tuesday, July 31, 2012
Mass Resize Photos
Sunday, July 8, 2012
Blogilo 1.1
Truecrypt User Mount
Sunday, June 10, 2012
Boinc Slackbuild on github
Since Slackbuilds will not host my BOINC slackbuild which uses svn to download, compile sources, I created a github account and uploaded them there.
https://github.com/KaMiila/BOINC-SlackBuild
Wednesday, June 6, 2012
Disable root access on SSHD
Why slackware does not initially disable root access on SSHD is beyond me, here is how to turn it off:
login as root:
nano /etc/ssh/sshd_config
Change from:
# PermitRootLogin yes
Chang to:
PermitRootLogin no
Save and exit
Issue command:
/etc/rc.d/rc.sshd restart
**** Make sure you remove the comment (#) or nothing will change ****
Monday, June 4, 2012
Manually Configure Blogilo
Login to your blog via webpage (you may have to click on the name of your blog to get the correct url ID, copy the location)
URL = http://www.blogger.com/blogger.g?blogID=000111222333444555666
Add your username and password
username@gmail.com
Mypasswordisweak
Click on the Advanced tab
Select blogspot.com from the dropdown menu
copy just the blog id number from the url (this was the first step we did)
click OK
EDIT: This apparently is not working on slackware-current which uses Blogilo version 1.1 and KDE version 4.8.4. There is an error message: An error occured in the last transaction. Server (Atom) error: Could not regexp the id out of the result.
Enlightenment hacks
If you want to put a quicklaunch of Enligtenment's file manager on your IBar:
Right-click on the IBar --> IBar--> create new icon
Under applications type:
enlightenment_remote -efm-open-dir $HOME
Name it whatever you feel like it, choose an icon you like, click apply, save, then add the new icon to your IBar
Right-click on the IBar --> IBar --> Contents
Scroll down to the icon you created (sorted by name alphabetically)
Adding a systray for all the programs that are running:
Right-click on your shelf --> shelf bottom --> contents
click on systray
you will need to exit Enlightenment and restart it (DONT click the restart button, that will not enable it) just exit the DE and startx again.
Caution
The Enlightenment devs seem to think their software is stable or at least not beta. BEWARE IMO it is and should be in the ALPHA stage, there are tons of bugs and minor issues that will annoy you. You have been warned.
I no longer use E17 after playing around with it for only 30 minutes. Too many issues to worry about. But I continue to look at it after each new release to see if they actually fixed anything to make it useable.
Sunday, June 3, 2012
Steam
I was having a lot of issues getting some steam games woring under wine. This issue was prfesent on two machines. One a desktop, AMD with NVIDIA GPU, thebother, ASUS N35SV laptop with Sandybridge. At first I thought it was an issuewith Bumblebee not cooperating with wine and steam, but I was getting the same problems on my Desktop, so I started messing around with wine some more.
First:
Install wine it its own instance via winetricks
WINEPREFIX=/foo winetricks steam
This will probably create a steam folder in ~/.local but wecan always move it later if we want. You're choice.
Next figure out what other winetricks you need. Most likely and unfortunately you will need .NET
WINEPREFIX=/foo winetricks dotnet20
If it barfs at you about fonts, see my post on how to remove them, then run the same command again.
You will probably also need direct x drivers and service pack drivers. Install al with winetricks, if possible. I ran into an issue with servicepacks, so I had to grab them of Micro$hafts website. Just google it, or if you love Micro$haft, use Bing.
Also, steam has an option to backup and then restore your saved games. I have tested it and so-far it works. So if you dont want to spend 27+ hours redownloading over 100 gigs, then use thebackup and restore option. I did however notice an issue with backing up under wine. When it reached 100% it just hung there saying it was archiving (I forget exactly what it said) so after a few hours I checked my system tonsee if it was actualy doing anything (cpu activity, HDD activity, ram, swap) there was no action, so I looked in the folder where it was suppose to save the file. It was ther intact (from what I could tell) so I simply killed Steam, restarted and began gaming.
If games are still not playing, you might need to disable the in-game Community Overlay
Steam --> Settings --> In-Game --> Deslect the Steam Community In-Game check box. you may also need to install gecko, tehoma, and corefonts.
Monday, May 21, 2012
Slackware Community is killing their own distro
There is also a lot of sexual harassment going on in that channel, the oppers know about it, but nothing is being done about it, their answer is /ignore. Well, I disagree, when people are acting this immature on an irc network that is geared toward helping others, then these people who are trolling need to be banned or KLINED.
Slackware is losing IMO, it is losing users, good users who want to help the community but are constantly being harassed. Where is the help? Where is the community? It's ironic how the Slackers like to elevate themselves above others, thinking they are far superior is intelligence and maturity, but the reality is, they are just a bunch of immature 12 year-olds. Seriously guys, grow up!
Sunday, May 20, 2012
Laptop HDD head parking
My new ASUS laptop parked the HDD heads over 250,000 times in just 2
day, most HDD's only support 200,000 head parks over the HDD's entire
lifetime. So how do you turn this off?
First lets check the stats:
%: smartctl -a /dev/sd?
This should display everything you ever wanted to know about the HDD
Load_Cycle_Count is the number of times your HDD has parked it heads.
About 12 times per day is average, NOT over 250,000 in two days.
So how do we turn these off?
%: hdparm -B 255 /dev/sd?
This *should* stop the drive from parking the heads until you turn off
your computer.
%: hdparm -B 254 /dev/sd?
This *should* keep power management on (meaning it will still park the
heads) but not as often. I issued this command and saw an IMMEDIATE
decline in the number of head parks. (It also helped stop that annoying
whinny sound I heard everytime the drive spooled up again).
Choose your option. Turning it off completely is not bad it just uses
more power (I do not know how much more).
To make these permanant:
Check with your linux distribution on slackware I added to the bottom of
/etc/rc.d/rc.local
hdparm -B 254 /dev/sda
(of course you need to add the corresponding letter to your drive, if
its a laptop most likely its /dev/sda)
WebloggerMode
finally (if this post submits) figured out a way to post to this blog
through emacs, instead of being forced to use the website.
First, load emacs, then paste the following in the buffer
(let ((buffer (url-retrieve-synchronously
"http://tromey.com/elpa/package-install.el")))
(save-excursion
(set-buffer buffer)
(goto-char (point-min))
(re-search-forward "^$" nil 'move)
(eval-region (point) (point-max))
(kill-buffer (current-buffer))))
Then issue C-j (Command - j)
Then issue M-x (Alt - x) type "package-list-packages" (without the
quotes)
Scroll down until you find WebloggerMode press "i" scroll down to
xml-rpc press "i" then press "x" then edit your ~/.emacs file and add
"(require 'cl)" (without the quotes) to the bottom of the file, save,
restart emacs.
WebloggerMode usage commands:
M-x weblogger-setup-weblog
M-x weblogger-start-entry
;; C-x C-s -- post-and-publish current buffer to the weblog.
;; Calling weblogger-publish-entry with an prefix argument
;; (i.e. C-u C-x C-s) will prompt for which weblog
;; to use.
;; C-c C-c -- save as draft and bury the buffer.
;; C-c C-n -- post (but not publish) the current entry and
;; load the next entry.
;; C-c C-p -- post (but not publish) the current entry and
;; load the previous entry.
;; C-c C-k -- delete the current entry.
;; M-g -- synchronise weblogger.el's idea of the entries available
;; with the weblog server.
;; C-c C-t m -- edit the main template.
;; C-c C-t a -- edit the Archive Index template
;; C-c C-s s -- Change the server being used.
;; C-c C-s w -- Change the weblog.
;; C-c C-s u -- Change the user (re-login).
You’ll need the “Server Endpoint”. Here are the values for various popular weblogging platforms:
Blogger.com: http://www.blogger.com/api
Wordpress: http://BLOG-URL/xmlrpc.php
http://hexmode.wordpress.com/xmlrpc.php. http://example.com/weblog/xmlrpc.php)
LiveJournal: http://www.livejournal.com/interface/blogger/
OpenWeblog: http://www.openweblog.com/interface/blogger/
MovableType: http://CGI-URL/mt-xmlrpc.cgi
http://www.example.com/cgi-bin/mt/mt-xmlrpc.cgi
Drupal: Enable the Blogger API and use http://DRUPAL-URL/xmlrpc.php (like Wordpress).
Thanks to:
http://www.emacswiki.org/emacs/WebloggerMode
http://tromey.com/elpa
irc.freenode.com #emacs